Forum Moderators: phranque
Starting httpd: [Failed]
or
Reloading httpd: not reloading due to configuration syntax error.
When I check the httpd.conf file (httpd configtest), it comes back with
Syntax OK.
The default settings in the httpd.conf file were to have DocumentRoot etc located under /var/www/html. The DocumentRoot is set to /home/httpd/html, similarly for Alias icon (/home/httpd) etc.
Now this has all worked fine in the past (apache 1.3 and 2.0.54), now
for seemingly no reason it won't start.
I've tried moving everything back to the default configuration - apache starts however none of the virtual hosts work (they resolve, but I end up getting a forbidden error). Only the original server pages are displayed.
I've done a strace when staring httpd, and it reports an error on line 265, which corresponds to the DocumentRoot argument, the error states that the DocumentRoot is not a directory - which is completely untrue (file /home/httpd/hml reports /home/httpd/html: directory)
The /home/httpd directory and all subdirectories are owned by apache
(group apache).
I'm completely baffled as to the cause of the problem.
Any advice/suggests are clearly welcome at this stage.
Below is my httpd.conf file (without comments ie grep -v "#" httpd.conf).
Regards,
Malcolm
<snip>
NameVirtualHost 203.***.86.65
<VirtualHost 203.***.86.65>
ServerAdmin evans@example.com.au
ServerName www.example.com.au
UserDir public_html
ErrorLog logs/www.example.com.au-error_log
TransferLog logs/www.example.com.au-access_log
</VirtualHost>
<VirtualHost 203.***.86.65>
ServerName www.ctawa.example2.au
DocumentRoot /home/httpd/www.ctawa.example2.au
ServerAdmin mark@example.com.au
ErrorLog logs/www.ctawa.example2.au-error_log
TransferLog logs/www.ctawa.example2.au-access_log
UserDir disabled
</VirtualHost>
[edited by: jdMorgan at 3:18 am (utc) on Mar. 17, 2006]
[edit reason] No code dumps, please. Obscured specifics per TOS. [/edit]