Forum Moderators: phranque
-bash-2.05b# /usr/local/apache/bin/apachectl configtest
Syntax error on line 954 of /usr/local/apache/conf/httpd.conf:
DocumentRoot must be a directory
-bash-2.05b# /usr/local/apache/bin/apachectl start
Syntax error on line 956 of /usr/local/apache/conf/httpd.conf:
ServerAlias only used in <VirtualHost>
/usr/local/apache/bin/apachectl start: httpd could not be started
-bash-2.05b#
I've been in and modified to what I thought was correct, but nothing has been physically changed unless the upload hosed it. Seems conflicting to me?
Welcome to WebmasterWorld!
If you are editing httpd.conf on a Windows machine, make sure to use the Unix line-ender (Linefeed) only. If you have no better choice, use "Save As" in MS Word, and select "US-ASCII" encoding with "LF-Only" line-enders.
We had another thread [webmasterworld.com] on file-format-related problems recently, and the symptoms were even more obscure.
Jim