Install Failed - Cannot find /usr/local/directadmin/conf/directadmin.conf

SASolut

Verified User
Joined
Dec 5, 2019
Messages
11
I know there's like 200 threads about this, but I can't find any with a viable fix.

I've checked my license to ensure the OS is set properly (CentOS 8) as the link the error showed suggested I do. From what I can tell, not having a resolved hostname won't stop the installation but that may have changed or I may be mistaken. Here's the final bits of my ssh output:


*************************************
* *
* All parts have been installed *
* *
*************************************

Type: systemctl restart httpd.service
## REPORT_START
Welcome to DirectAdmin version 1.59.5!
You are now about to run the install program. If DirectAdmin is already
installed, it may destroy previous data.


*** The hostname provided ('localhost') is not a valid domain ***

check the /usr/local/directadmin/scripts/setup.txt
## INSTALL_FAILED
## REPORT_END
Permissions set
Can't open /usr/local/directadmin/data/admin/services.status: No such file or directory.

System Security Tips:
http://help.directadmin.com/item.php?id=247


*********************************
*
* Cannot find /usr/local/directadmin/conf/directadmin.conf
* Please see this guide:
* http://help.directadmin.com/item.php?id=267
*
*********************************
PHP has been secured.
Restarting php-fpm72.
Job for php-fpm72.service failed because the control process exited with error code.
See "systemctl status php-fpm72.service" and "journalctl -xe" for details.

#############################################################################

After two sleepless nights I'm dead. Any ideas?
 
The error message mentioned "localhost is not a valid domain".
Run this:
Code:
cd /usr/local/directadmin
perl -pi -e 's/hostname=localhost/hostname=your.host.com/' scripts/setup.txt
./directadmin i
./directadmin p
You may also want to check the scripts/setup.txt for the ns1/ns2 entries.. as they're taken from the hostname too (ns1.localhost wouldn't be valid either).

I'll add an extra check for the even where "localhost" is used, as the hostname of the box should be something like "server.hostname.com"
If you're using "./setup.sh auto", just be sure your hostname is setup before running it.. else use the old way of calling the setup.sh like this:
Code:
./setup.sh
and it will ask you what you want to use and set it for you.

John
 
I completed your steps and it installed correctly, or at the very least it didn't return the same error.

My network was disconnected after install. I checked in nmtui and found that a second network device was created using the same name as the first. This had the proper IP address, but no gateway or DNS were set. Do you know what could have caused these issues? I was able to get network connection back, though.
 
Back
Top