Syntax error on line 21 of /etc/httpd/conf/extra/httpd-vhosts.conf: Could not open configuration file /etc/httpd/conf/ips.conf:

If you've just finished a DirectAdmin install and are trying to start apache, but you get the error:

Syntax error on line 21 of /etc/httpd/conf/extra/httpd-vhosts.conf: Could not open configuration file /etc/httpd/conf/ips.conf: No such file or directory

this means that the ips.conf is missing.   The cause is usually that the DirectAdmin install didn't actually finish.

To finish the install, type:

cd /usr/local/directadmin
./directadmin i
./directadmin p

which is the last step of the DA install.  Likely something with this step is failing, hence the ips.conf isn't created.  Address whatever error is displayed, then run it again to complete the install.

The usual causes are incompatible binaries (see the link below) or invalid options set in the /usr/local/directadmin/scripts/setup.txt.

Another cause would be if something in custombuild didn't compile correctly.  Type the following:

cd /usr/local/directadmin/custombuild
./build all d

and check for errors in the last few pages of output if it stops prematurely.


Was this article helpful?

mood_bad Dislike 1
mood Like 0
visibility Views: 8652