PDA

View Full Version : Starting httpd: Syntax error on line 279


brainz
5th August 2007, 04:00
Hi Guys,

Problem with my webserver the httpd will not starts and when i try to start it i get this....

# /etc/init.d/httpd start
Starting httpd: Syntax error on line 279 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory

and what is on line 279 is as follows..

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html <--- line 279"

Please if anyone has any suggestions..

regards brainz

brainz
5th August 2007, 04:59
Hi Guys,

I Sorted this one on my own i must be getting good at it...

What i did is this well this error i got..

# /etc/init.d/httpd start
Starting httpd: Syntax error on line 279 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory

Told me that in the /var/www/ folder the html folder what missing and from my backup server i checked and yes there was a html folder in that directory that was empty...

So when i recovered this folder i got this error message...

Starting httpd: Warning: DocumentRoot [/var/www/sharedip] does not exist
Syntax error on line 108 of /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf:
SSLCertificateFile: file '/var/www/web1/ssl/www.domain.com.crt' does not exist or is empty

so what i did is goto ispconfig control panel for the main site and rescreated the the ssl certificate....

Then the httpd server started normally.....

Thankgod now i got time to relax on a sunny sunday morning..

regards
brainz

brainz
5th August 2007, 05:04
there is only one question but...

why was the html folder in /var/www deleted and why was the www.domain.com.crt deleted or empty...

could this be because the recently upgraded ispconfig to the latest stable...

Anyone want to contribute please feel free to....

regards
brainz

till
5th August 2007, 10:12
The ISPConfig update does not delete /var/www and there has nothing changed in the code that generates or deletes the websites from 2.2.14 to 2.2.15. Do you have any records in your database in isp_isp_web where web_host and web_domain are both empty?

brainz
5th August 2007, 10:23
Hi till,

Thanks for the response...

Just checked what you requested i checked and in the ispconfig database all is complete... there are no web_host and web_domain that are empty...

regards
brainz