iNetter

Member
Oct 28, 2003
13
0
151
Allright here's the situation:

Apache keeps crashing about every 5 minutes, and the only way I can get it to start backup again is by using the command: 'service httpd startssl' or by rebooting the server; nothing else works. Some errors I'm receiving when trying to start it other ways are:

Code:
/etc/init.d/httpd restart: configuration broken, ignoring restart
/etc/init.d/httpd restart: (run 'apachectl configtest' for details)
I ran httpd configtest, and here is what it showed:

Code:
Warning: DocumentRoot [/home/***/public_html] does not exist
Warning: DocumentRoot [/home/***/public_html/blog] does not exist
Warning: DocumentRoot [/home/***/public_html/loiterer] does not exist
Warning: DocumentRoot [/home/***/public_html/sysdesign] does not exist
Warning: DocumentRoot [/home/***/public_html/ziceco] does not exist
Warning: DocumentRoot [/home/***/public_html/boyibbs.2ya.com] does not exist
Warning: DocumentRoot [/home/***/public_html/oyibbs.2ya.com] does not exist
Syntax error on line 1833 of /usr/local/apache/conf/httpd.conf:
Invalid command 'SSLEnable', perhaps mis-spelled or defined by a module not included in the server configuration
The thing is, I have never messed with the httpd.conf file. The only thing I've done is ran easyapache from WebHostManager just as I always have. I'm beginning to think easyapache isn't very reliable for upgrading Apache. Can anyone help me please? Thank you.
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
Looks as though a few accounts were removed from your server, but were not removed from httpd.conf. Have a look in that file for those entries the configtest showed. Make sure they are no longer hosted on the server and remove or comment the lines ( comment for now, and do the homework might be best ).
 

iNetter

Member
Oct 28, 2003
13
0
151
Ok I just did that, now how about this:

Code:
Syntax error on line 1833 of /usr/local/apache/conf/httpd.conf:
Invalid command 'SSLEnable', perhaps mis-spelled or defined by a module not included in the server configuration
I know I'm not supposed to remove the line 'SSLEnable'.
 

nickn

Well-Known Member
PartnerNOC
Jun 15, 2003
616
1
168
The problem appears to be that chkservd is trying to use start instead of startssl..

You shoud use the command:

/usr/local/apache/bin/apachectl startssl

Check yoru chkservd file for apache, make sure it's using the appropriate command.
 

Sinewy

Well-Known Member
May 15, 2004
364
1
168
Sydney, Australia
cPanel Access Level
DataCenter Provider
in turn chkservd comes back to the /scripts dir and fires up /scripts/restartsrv_httpd, one or the other. i don't have a ssh logged in to check at the moment.

if the problem persists,

run this command:
cat /etc/chkserv.d/apache

paste the results here.
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
As his error states: Check that the mod_ssl module actually exists and is loaded.

Make sure that this is still in your httpd.conf
Code:
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
That will cause that error every single time. If it is not there, try adding it and restarting if still fails you will need to re-run easyapache and ensure SSL Module is selected.
 

rafko

Registered
Mar 30, 2004
1
0
151
Please help!

I have the same problem. I done everything was mentioned here and my apache is steel not working. Do you have any other suggestins?!?
 

bjarne

Well-Known Member
Mar 23, 2002
135
0
316
I would try:

service httpd start

/usr/local/apache/bin/apachectl start

/usr/local/apache/bin/apachectl startssl

One of these commands shuld work. The fact there are som webroots not present shuld not stop apache from starting.

You may consider compiling apache with no ssl in apache, that will solve some problems at times with apache.