Hostname

floyd

Verified User
Joined
Mar 29, 2005
Messages
6,253
How come DA insists on changing hostname I have already set for myself? Every time I do an install I have to go in and reverse all the hostname changes that DA did.
 
Last edited:
I just installed a fresh server last wednesday, and DA did not change my hostname.
I did have the correct hostname I wanted in the /etc/hosts file and in the /etc/hostname file (in full not only server but server.domain.com) and DA did not change anything.
 
Just did one this morning. Completely removed my original hostname.


[root@server-38-45-64-108 ~]# cat /etc/hosts
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 localhost
38.45.64.108 server-38-45-64-108.da.direct server-38-45-64-108

[root@server-38-45-64-108 ~]# cat /etc/hostname
server-38-45-64-108
[root@server-38-45-64-108 ~]#
 
I just another fresh install and got the same thing. This is the commands I am running to do the install:

wget -O setup.sh directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh lKheQIFYLolsVBF........
 
And hostname and hosts were correct before? Very strange.
Als rebooted after setting hostname and before using the install command?

I used this command but that should make no difference.
DA_INTERACTIVE_CUSTOMBUILD=1 [email protected] DA_FOREGROUND_CUSTOMBUILD=1 ./setup.sh <licensekey>
I use the interactive since I want the choices.
Wednesday this did not work but that was my own fault because I put an options.conf file in the custombuild directory so DA would install everything I required automatically.

Last time and next time I won't use the interactive part anymore, just the options.conf file.
 
I am really looking for an answer from DirectAdmin.

I found I have to use

DA_HOSTNAME="server1.littlecreekhosting.com" bash setup.sh <licensekey>

But I had to google it to find it. None of the options are found in the client area instructions.

It is baffling that the setup script would not detect what the already set hostname is and instead change it to something we cannot really use.
 
I found I have to use
Yes but that is to force it. Normally if the hostname is setup correctly, you don't have to use that command.
I specifically asked that in the thread and fln answered me this.

Found the related answer:

None of the options are found in the client area instructions.
But some (like the hostname) are present in the docs.

However it's odd that it's happening to you and not to me 2 days earlier. You're also on Alma 9?
 
I just did a fresh OS reinstall. Here are the exact commands. You can see the host name I set up is server1.littlecreekhosting.com and it does resolve. Yet the DA install changed it. I know I can set DA_HOSTNAME="server1.littlecreekhosting.com" but according to @fln I shouldn't have to.

Code:
[root@server1 ~]# dig server1.littlecreekhosting.com

; <<>> DiG 9.16.23-RH <<>> server1.littlecreekhosting.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36256
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;server1.littlecreekhosting.com.        IN      A

;; ANSWER SECTION:
server1.littlecreekhosting.com. 14391 IN A      38.45.64.108

;; Query time: 22 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Mar 23 19:44:10 IST 2025
;; MSG SIZE  rcvd: 75

[root@server1 ~]# dig -x 38.45.64.108

; <<>> DiG 9.16.23-RH <<>> -x 38.45.64.108
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45496
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;108.64.45.38.in-addr.arpa.     IN      PTR

;; ANSWER SECTION:
108.64.45.38.in-addr.arpa. 21600 IN     PTR     server1.littlecreekhosting.com.

;; Query time: 32 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sun Mar 23 19:44:20 IST 2025
;; MSG SIZE  rcvd: 98

[root@server1 ~]# hostname
server1.littlecreekhosting.com
[root@server1 ~]# uname -n
server1.littlecreekhosting.com
[root@server1 ~]# cat /etc/hosts
127.0.0.1 server1.littlecreekhosting.com
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@server1 ~]# cat /etc/hostname
server1.littlecreekhosting.com
[root@server1 ~]# wget -O setup.sh directadmin.com/setup.sh
--2025-03-23 19:46:18--  http://directadmin.com/setup.sh
Resolving directadmin.com (directadmin.com)... 167.172.23.237
Connecting to directadmin.com (directadmin.com)|167.172.23.237|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4291 (4.2K) [application/x-sh]
Saving to: ‘setup.sh’

setup.sh                                                                        100%[====================================================================================================================================================================================================>]   4.19K  --.-KB/s    in 0s     

2025-03-23 19:46:18 (297 MB/s) - ‘setup.sh’ saved [4291/4291]

[root@server1 ~]# chmod 755 setup.sh
[root@server1 ~]# ./setup.sh lKheQIFYLo.................

Installing dependencies...

Upgraded:
  curl-7.76.1-31.el9.x86_64                                                libcurl-7.76.1-31.el9.x86_64                                                openssl-1:3.2.2-6.el9_5.1.x86_64                                                openssl-libs-1:3.2.2-6.el9_5.1.x86_64                                               
Installed:
  tar-2:1.34-7.el9.x86_64                                                                                                                                                                                                                                                                                                   

Checking for latest build in 'current' release channel...
Downloading DirectAdmin distribution package directadmin_18cc0b260a6372c61171ec9bbc71e631efe9ce3b_linux_amd64.tar.gz...
######################################################################################################################################################################################################################################################### 100.0%
Extracting DirectAdmin package directadmin_18cc0b260a6372c61171ec9bbc71e631efe9ce3b_linux_amd64.tar.gz to /usr/local/directadmin ...

[setup.sh] Welcome to DirectAdmin installer!

[setup.sh] Using these parameters for the installation:
                License Key: lKheQIFYLolsV.............
                 DA_CHANNEL: current
                   DA_EMAIL:
             DA_ADMIN_USER :
         DA_ADMIN_PASSWORD :
                DA_HOSTNAME:
                 DA_ETH_DEV:
                     DA_NS1:
                     DA_NS2:
                DA_SKIP_CSF: no
      DA_SKIP_MYSQL_INSTALL: no
         DA_SKIP_SECURE_PHP: no
      DA_SKIP_AUTO_TLS_CERT: no
        DA_SKIP_CUSTOMBUILD: no
  DA_FOREGROUND_CUSTOMBUILD: no

[setup.sh] Starting installation...
* Installing pre-install packages ....
Error in <unknown> scriptlet in rpm package libgcc

Upgraded:
  ca-certificates-2024.2.69_v8.0.303-91.4.el9_4.noarch   cronie-1.5.7-12.el9_5.x86_64     cronie-anacron-1.5.7-12.el9_5.x86_64   device-mapper-9:1.02.198-2.el9.x86_64   device-mapper-libs-9:1.02.198-2.el9.x86_64   e2fsprogs-1.46.5-5.el9.x86_64                    e2fsprogs-libs-1.46.5-5.el9.x86_64             
  file-5.39-16.el9.x86_64                                file-libs-5.39-16.el9.x86_64     glibc-2.34-125.el9_5.3.x86_64          glibc-common-2.34-125.el9_5.3.x86_64    glibc-gconv-extra-2.34-125.el9_5.3.x86_64    glibc-minimal-langpack-2.34-125.el9_5.3.x86_64   iproute-6.2.0-6.el9_4.x86_64                   
  iproute-tc-6.2.0-6.el9_4.x86_64                        libcom_err-1.46.5-5.el9.x86_64   libgcc-11.5.0-5.el9_5.x86_64           libgomp-11.5.0-5.el9_5.x86_64           libss-1.46.5-5.el9.x86_64                    libstdc++-11.5.0-5.el9_5.x86_64                  procps-ng-3.3.17-14.el9.x86_64                 
  python-unversioned-command-3.9.21-1.el9_5.noarch       python3-3.9.21-1.el9_5.x86_64    python3-libs-3.9.21-1.el9_5.x86_64     rsyslog-8.2310.0-4.el9.x86_64           rsyslog-logrotate-8.2310.0-4.el9.x86_64      selinux-policy-38.1.45-3.el9_5.noarch            selinux-policy-targeted-38.1.45-3.el9_5.noarch 
  unzip-6.0-58.el9_5.x86_64                              xfsprogs-6.4.0-4.el9.x86_64     
Installed:
  annobin-12.65-1.el9.x86_64                        cpp-11.5.0-5.el9_5.x86_64                        dwz-0.14-3.el9.x86_64                              ed-1.14.2-12.el9.x86_64                                  efi-srpm-macros-6-2.el9_0.noarch                      emacs-filesystem-1:27.2-11.el9_5.1.noarch         
  fonts-srpm-macros-1:2.0.5-7.el9.1.noarch          gcc-11.5.0-5.el9_5.x86_64                        gcc-c++-11.5.0-5.el9_5.x86_64                      gcc-plugin-annobin-11.5.0-5.el9_5.x86_64                 ghc-srpm-macros-1.5.0-6.el9.noarch                    git-2.43.5-2.el9_5.x86_64                         
  git-core-2.43.5-2.el9_5.x86_64                    git-core-doc-2.43.5-2.el9_5.noarch               glibc-devel-2.34-125.el9_5.3.x86_64                glibc-headers-2.34-125.el9_5.3.x86_64                    go-srpm-macros-3.6.0-3.el9.noarch                     info-6.7-15.el9.x86_64                           
  kernel-headers-5.14.0-503.33.1.el9_5.x86_64       kernel-srpm-macros-1.0-13.el9.noarch             libdatrie-0.2.13-4.el9.x86_64                      libmpc-1.2.1-4.el9.x86_64                                libpkgconf-1.7.3-10.el9.x86_64                        libstdc++-devel-11.5.0-5.el9_5.x86_64             
  libthai-0.1.28-8.el9.x86_64                       libtirpc-1.3.3-9.el9.x86_64                      libxcrypt-devel-4.4.18-3.el9.x86_64                llvm-libs-18.1.8-3.el9.x86_64                            lua-srpm-macros-1-6.el9.noarch                        mailcap-2.1.49-5.el9.noarch                       
  make-1:4.3-8.el9.x86_64                           ocaml-srpm-macros-6-6.el9.noarch                 openblas-srpm-macros-2-11.el9.noarch               patch-2.7.6-16.el9.x86_64                                perl-4:5.32.1-481.el9.x86_64                          perl-Algorithm-Diff-1.2010-4.el9.noarch           
  perl-Archive-Tar-2.38-6.el9.noarch                perl-Archive-Zip-1.68-6.el9.noarch               perl-Attribute-Handlers-1.01-481.el9.noarch        perl-AutoLoader-5.74-481.el9.noarch                      perl-AutoSplit-5.74-481.el9.noarch                    perl-B-1.80-481.el9.x86_64                       
  perl-Benchmark-1.23-481.el9.noarch                perl-CPAN-2.29-3.el9.noarch                      perl-CPAN-DistnameInfo-0.12-23.el9.noarch          perl-CPAN-Meta-2.150010-460.el9.noarch                   perl-CPAN-Meta-Requirements-2.140-461.el9.noarch      perl-CPAN-Meta-YAML-0.018-461.el9.noarch         
  perl-Carp-1.50-460.el9.noarch                     perl-Class-Struct-0.66-481.el9.noarch            perl-Compress-Bzip2-2.28-5.el9.x86_64              perl-Compress-Raw-Bzip2-2.101-5.el9.x86_64               perl-Compress-Raw-Lzma-2.101-3.el9.x86_64             perl-Compress-Raw-Zlib-2.101-5.el9.x86_64         
  perl-Config-Extensions-0.03-481.el9.noarch        perl-Config-Perl-V-0.33-4.el9.noarch             perl-DBM_Filter-0.06-481.el9.noarch                perl-DB_File-1.855-4.el9.x86_64                          perl-Data-Dumper-2.174-462.el9.x86_64                 perl-Data-OptList-0.110-17.el9.noarch             
  perl-Data-Section-0.200007-14.el9.noarch          perl-Devel-PPPort-3.62-4.el9.x86_64              perl-Devel-Peek-1.28-481.el9.x86_64                perl-Devel-SelfStubber-1.06-481.el9.noarch               perl-Devel-Size-0.83-10.el9.x86_64                    perl-Digest-1.19-4.el9.noarch                     
  perl-Digest-MD5-2.58-4.el9.x86_64                 perl-Digest-SHA-1:6.02-461.el9.x86_64            perl-Digest-SHA1-2.13-34.el9.x86_64                perl-DirHandle-1.05-481.el9.noarch                       perl-Dumpvalue-2.27-481.el9.noarch                    perl-DynaLoader-1.47-481.el9.x86_64               
  perl-Encode-4:3.08-462.el9.x86_64                 perl-Encode-Locale-1.05-21.el9.noarch            perl-Encode-devel-4:3.08-462.el9.x86_64            perl-English-1.11-481.el9.noarch                         perl-Env-1.04-460.el9.noarch                          perl-Errno-1.30-481.el9.x86_64                   
  perl-Error-1:0.17029-7.el9.noarch                 perl-Exporter-5.74-461.el9.noarch                perl-ExtUtils-CBuilder-1:0.280236-4.el9.noarch     perl-ExtUtils-Command-2:7.60-3.el9.noarch                perl-ExtUtils-Constant-0.25-481.el9.noarch            perl-ExtUtils-Embed-1.35-481.el9.noarch           
  perl-ExtUtils-Install-2.20-4.el9.noarch           perl-ExtUtils-MM-Utils-2:7.60-3.el9.noarch       perl-ExtUtils-MakeMaker-2:7.60-3.el9.noarch        perl-ExtUtils-Manifest-1:1.73-4.el9.noarch               perl-ExtUtils-Miniperl-1.09-481.el9.noarch            perl-ExtUtils-ParseXS-1:3.40-460.el9.noarch       
  perl-Fcntl-1.13-481.el9.x86_64                    perl-File-Basename-2.85-481.el9.noarch           perl-File-Compare-1.100.600-481.el9.noarch         perl-File-Copy-2.34-481.el9.noarch                       perl-File-DosGlob-1.12-481.el9.x86_64                 perl-File-Fetch-1.00-4.el9.noarch                 
  perl-File-Find-1.37-481.el9.noarch                perl-File-HomeDir-1.006-4.el9.noarch             perl-File-Path-2.18-4.el9.noarch                   perl-File-Temp-1:0.231.100-4.el9.noarch                  perl-File-Which-1.23-10.el9.noarch                    perl-File-stat-1.09-481.el9.noarch               
  perl-FileCache-1.10-481.el9.noarch                perl-FileHandle-2.03-481.el9.noarch              perl-Filter-2:1.60-4.el9.x86_64                    perl-Filter-Simple-0.96-460.el9.noarch                   perl-FindBin-1.51-481.el9.noarch                      perl-GDBM_File-1.18-481.el9.x86_64               
  perl-Getopt-Long-1:2.52-4.el9.noarch              perl-Getopt-Std-1.12-481.el9.noarch              perl-Git-2.43.5-2.el9_5.noarch                     perl-HTTP-Tiny-0.076-462.el9.noarch                      perl-Hash-Util-0.23-481.el9.x86_64                    perl-Hash-Util-FieldHash-1.20-481.el9.x86_64     
  perl-I18N-Collate-1.02-481.el9.noarch             perl-I18N-LangTags-0.44-481.el9.noarch           perl-I18N-Langinfo-0.19-481.el9.x86_64             perl-IO-1.43-481.el9.x86_64                              perl-IO-Compress-2.102-4.el9.noarch                   perl-IO-Compress-Lzma-2.101-4.el9.noarch         
  perl-IO-Socket-IP-0.41-5.el9.noarch               perl-IO-Socket-SSL-2.073-2.el9.noarch            perl-IO-Zlib-1:1.11-4.el9.noarch                   perl-IPC-Cmd-2:1.04-461.el9.noarch                       perl-IPC-Open3-1.21-481.el9.noarch                    perl-IPC-SysV-2.09-4.el9.x86_64                   
  perl-IPC-System-Simple-1.30-6.el9.noarch          perl-Importer-0.026-4.el9.noarch                 perl-JSON-PP-1:4.06-4.el9.noarch                   perl-Locale-Maketext-1.29-461.el9.noarch                 perl-Locale-Maketext-Simple-1:0.21-481.el9.noarch     perl-MIME-Base64-3.16-4.el9.x86_64               
  perl-MIME-Charset-1.012.2-15.el9.noarch           perl-MRO-Compat-0.13-15.el9.noarch               perl-Math-BigInt-1:1.9998.18-460.el9.noarch        perl-Math-BigInt-FastCalc-0.500.900-460.el9.x86_64       perl-Math-BigRat-0.2614-460.el9.noarch                perl-Math-Complex-1.59-481.el9.noarch             
  perl-Memoize-1.03-481.el9.noarch                  perl-Module-Build-2:0.42.31-9.el9.noarch         perl-Module-CoreList-1:5.20210320-3.el9.noarch     perl-Module-CoreList-tools-1:5.20210320-3.el9.noarch     perl-Module-Load-1:0.36-4.el9.noarch                  perl-Module-Load-Conditional-0.74-4.el9.noarch   
  perl-Module-Loaded-1:0.08-481.el9.noarch          perl-Module-Metadata-1.000037-460.el9.noarch     perl-Module-Signature-0.88-1.el9.noarch            perl-Mozilla-CA-20200520-6.el9.noarch                    perl-NDBM_File-1.15-481.el9.x86_64                    perl-NEXT-0.67-481.el9.noarch                     
  perl-Net-1.02-481.el9.noarch                      perl-Net-Ping-2.74-5.el9.noarch                  perl-Net-SSLeay-1.94-1.el9.x86_64                  perl-ODBM_File-1.16-481.el9.x86_64                       perl-Object-HashBase-0.009-7.el9.noarch               perl-Opcode-1.48-481.el9.x86_64                   
  perl-POSIX-1.94-481.el9.x86_64                    perl-Package-Generator-1.106-23.el9.noarch       perl-Params-Check-1:0.38-461.el9.noarch            perl-Params-Util-1.102-5.el9.x86_64                      perl-PathTools-3.78-461.el9.x86_64                    perl-Perl-OSType-1.010-461.el9.noarch             
  perl-PerlIO-via-QuotedPrint-0.09-4.el9.noarch     perl-Pod-Checker-4:1.74-4.el9.noarch             perl-Pod-Escapes-1:1.07-460.el9.noarch             perl-Pod-Functions-1.13-481.el9.noarch                   perl-Pod-Html-1.25-481.el9.noarch                     perl-Pod-Perldoc-3.28.01-461.el9.noarch           
  perl-Pod-Simple-1:3.42-4.el9.noarch               perl-Pod-Usage-4:2.01-4.el9.noarch               perl-Safe-2.41-481.el9.noarch                      perl-Scalar-List-Utils-4:1.56-462.el9.x86_64             perl-Search-Dict-1.07-481.el9.noarch                  perl-SelectSaver-1.02-481.el9.noarch             
  perl-SelfLoader-1.26-481.el9.noarch               perl-Socket-4:2.031-4.el9.x86_64                 perl-Software-License-0.103014-12.el9.noarch       perl-Storable-1:3.21-460.el9.x86_64                      perl-Sub-Exporter-0.987-27.el9.noarch                 perl-Sub-Install-0.928-28.el9.noarch             
  perl-Symbol-1.08-481.el9.noarch                   perl-Sys-Hostname-1.23-481.el9.x86_64            perl-Sys-Syslog-0.36-461.el9.x86_64                perl-Term-ANSIColor-5.01-461.el9.noarch                  perl-Term-Cap-1.17-460.el9.noarch                     perl-Term-Complete-1.403-481.el9.noarch           
  perl-Term-ReadLine-1.17-481.el9.noarch            perl-Term-Size-Any-0.002-35.el9.noarch           perl-Term-Size-Perl-0.031-12.el9.x86_64            perl-Term-Table-0.015-8.el9.noarch                       perl-TermReadKey-2.38-11.el9.x86_64                   perl-Test-1.31-481.el9.noarch                     
  perl-Test-Harness-1:3.42-461.el9.noarch           perl-Test-Simple-3:1.302183-4.el9.noarch         perl-Text-Abbrev-1.02-481.el9.noarch               perl-Text-Balanced-2.04-4.el9.noarch                     perl-Text-Diff-1.45-13.el9.noarch                     perl-Text-Glob-0.11-15.el9.noarch                 
  perl-Text-ParseWords-3.30-460.el9.noarch          perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch     perl-Text-Template-1.59-5.el9.noarch               perl-Thread-3.05-481.el9.noarch                          perl-Thread-Queue-3.14-460.el9.noarch                 perl-Thread-Semaphore-2.13-481.el9.noarch         
  perl-Tie-4.6-481.el9.noarch                       perl-Tie-File-1.06-481.el9.noarch                perl-Tie-Memoize-1.1-481.el9.noarch                perl-Tie-RefHash-1.40-4.el9.noarch                       perl-Time-1.03-481.el9.noarch                         perl-Time-HiRes-4:1.9764-462.el9.x86_64           
  perl-Time-Local-2:1.300-7.el9.noarch              perl-Time-Piece-1.3401-481.el9.x86_64            perl-URI-5.09-3.el9.noarch                         perl-Unicode-Collate-1.29-4.el9.x86_64                   perl-Unicode-LineBreak-2019.001-11.el9.x86_64         perl-Unicode-Normalize-1.27-461.el9.x86_64       
  perl-Unicode-UCD-0.75-481.el9.noarch              perl-User-pwent-1.03-481.el9.noarch              perl-autodie-2.34-4.el9.noarch                     perl-autouse-1.11-481.el9.noarch                         perl-base-2.27-481.el9.noarch                         perl-bignum-0.51-460.el9.noarch                   
  perl-blib-1.07-481.el9.noarch                     perl-constant-1.33-461.el9.noarch                perl-debugger-1.56-481.el9.noarch                  perl-deprecate-0.04-481.el9.noarch                       perl-devel-4:5.32.1-481.el9.x86_64                    perl-diagnostics-1.37-481.el9.noarch             
  perl-doc-5.32.1-481.el9.noarch                    perl-encoding-4:3.00-462.el9.x86_64              perl-encoding-warnings-0.13-481.el9.noarch         perl-experimental-0.022-6.el9.noarch                     perl-fields-2.27-481.el9.noarch                       perl-filetest-1.03-481.el9.noarch                 
  perl-if-0.60.800-481.el9.noarch                   perl-inc-latest-2:0.500-20.el9.noarch            perl-interpreter-4:5.32.1-481.el9.x86_64           perl-less-0.03-481.el9.noarch                            perl-lib-0.65-481.el9.x86_64                          perl-libnet-3.13-4.el9.noarch                     
  perl-libnetcfg-4:5.32.1-481.el9.noarch            perl-libs-4:5.32.1-481.el9.x86_64                perl-local-lib-2.000024-13.el9.noarch              perl-locale-1.09-481.el9.noarch                          perl-macros-4:5.32.1-481.el9.noarch                   perl-meta-notation-5.32.1-481.el9.noarch         
  perl-mro-1.23-481.el9.x86_64                      perl-open-1.12-481.el9.noarch                    perl-overload-1.31-481.el9.noarch                  perl-overloading-0.02-481.el9.noarch                     perl-parent-1:0.238-460.el9.noarch                    perl-perlfaq-5.20201107-4.el9.noarch             
  perl-ph-5.32.1-481.el9.x86_64                     perl-podlators-1:4.14-460.el9.noarch             perl-sigtrap-1.09-481.el9.noarch                   perl-sort-2.04-481.el9.noarch                            perl-srpm-macros-1-41.el9.noarch                      perl-subs-1.03-481.el9.noarch                     
  perl-threads-1:2.25-460.el9.x86_64                perl-threads-shared-1.61-460.el9.0.1.x86_64      perl-utils-5.32.1-481.el9.noarch                   perl-vars-1.05-481.el9.noarch                            perl-version-7:0.99.28-4.el9.x86_64                   perl-vmsish-1.04-481.el9.noarch                   
  pkgconf-1.7.3-10.el9.x86_64                       pkgconf-m4-1.7.3-10.el9.noarch                   pkgconf-pkg-config-1.7.3-10.el9.x86_64             pyproject-srpm-macros-1.12.0-1.el9.noarch                python-srpm-macros-3.9-54.el9.noarch                  python3-pyparsing-2.4.7-9.el9.noarch             
  qt5-srpm-macros-5.15.9-1.el9.noarch               quota-1:4.09-2.el9.x86_64                        quota-nls-1:4.09-2.el9.noarch                      redhat-rpm-config-208-1.el9.noarch                       rust-srpm-macros-17-4.el9.noarch                      sombok-2.4.0-16.el9.x86_64                       
  systemtap-sdt-devel-5.1-4.el9_5.x86_64            zip-3.0-35.el9.x86_64                           

*
*****************************************************

Checking quotas...
Running quotacheck
done
quotaon: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated. You can enable the feature by unmounting the file system and running 'tune2fs -O quota <device>'.
Done quotacheck

System Security Tips:
  https://docs.directadmin.com/operation-system-level/securing/general.html#basic-system-security

Welcome to DirectAdmin version 1.674!

Here is the information given:
Admin User:         admin
Admin Email:        [email protected]
Update channel:     current
Network Device:     eth0
Server IP:          38.45.64.108
Server IP Netmask:  /22
Server Hostname:    server-38-45-64-108.da.direct
Name Servers:
        ns1.server-38-45-64-108.da.direct
        ns2.server-38-45-64-108.da.direct

2025/03/23 19:47:33 error runtime selinux disabling error=exit status 1
ip.list written successfully
./data/admin/next_ticket.number written correctly
tickets.list written successfully
Admin admin is being created by root.
secure_access_group='access' did not exist (9999). Creating it and adding defaults.
Admin user created

Trying to issue automatic TLS certificate for "server-38-45-64-108.da.direct". This might take some time.
exec ["/usr/local/bin/lego" "--accept-tos" "[email protected]" "--key-type=ec256" "--server=https://acme-v02.api.letsencrypt.org/directory" "--path=/usr/local/directadmin/data/.lego" "--http" "--domains=server-38-45-64-108.da.direct" "run" "--no-bundle" "--preferred-chain=ISRG Root X1"]

2025/03/23 19:49:06 error issuing automatic server host name TLS certificate error=fork/exec /usr/local/bin/lego: no such file or directory
CustomBuild installation has started, you may check the progress using the following command:
        tail -f /var/log/directadmin/custombuild.1742739546.13535.YWxsAA.log
A message will be sent in the DirectAdmin panel when background installation is finished.
The following information has been set:
  Admin username:     admin
  Admin password:     TQzuVdy..............
  Admin email:        [email protected]
  Server Hostname:    server-38-45-64-108.da.direct

If you cannot connect to the login URL, then it is likely that a firewall is blocking port 2222. Please see:
  https://docs.directadmin.com/directadmin/general-usage/troubleshooting-da-service.html#cannot-connect-to-da-on-port-2222

To login now, follow this URL:
  http://server-38-45-64-108.da.direct:2222/api/login/url?key=rDuznLPf_..........

[root@server1 ~]#
 
127.0.0.1 server1.littlecreekhosting.com
That is might be the mistake, most likely causing the issue. Unless you masked this. But if this is real, then it's wrong.
Never ever set your hostname as localhost.

I don't know if hostname -f would also give the correct output.

Anyway this should be in /etc/hosts file:
Code:
127.0.0.1 localhost.localdomain localhost
xx.xx.xx.xx server1.littlecreekhosting.com
where xx.xx.xx is your server ip.
 
Richard thanks for your help. It was @fln who said what was used was "uname -n" and that does give the correct output.

However fixing the hostname seems to have resolved the issue. The question is why did it matter since DA supposedly doesn't check this. At least @fln didn't say it did.

This is a VPS created by Virtualizor and it put the hostname in there set as localhost. I will report it to them.
 
At least @fln didn't say it did.
Yes. Somewhere (I thouht in the docs or an earlier post) it was sayd uname -a and hostname -f should be used to test.

It might be that it is checked nowadays as DA is trying to make everything more according to how it's officially should be done. Which would then also mean the localhost should not point to the FQDN hostname.

But good thing you posted all output so we could find the real cause of the issue. Hopefully Virtualizor will fix things so they will create it in a normal way too.
 
Back
Top