Apache Won't Start - No Errors

AJStiles

Member
Nov 7, 2005
7
0
151
WHM 10.8.0 cPanel 10.8.2-R119
RedHat 7.3 i686 - WHM X v3.1.0

Apache won't start on my box and I can't find any errors relating to the problem.

/usr/local/bin/apachectl configtest gives my "Syntax OK"
/usr/local/bin/apachectl start gives me "httpd started"
/usr/local/bin/apachectl restart gives me "httpd not running, trying to start" "httpd started"

However, it isn't started, no processes found, no errors in error_log.

Any ideas?
 

AJStiles

Member
Nov 7, 2005
7
0
151
As noted in the original post, configtest returns "Syntax OK".

Laus is not installed. "error: package laus is not installed".

Thanks for trying.

Adam
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,221
4
193
Minneapolis, MN
AJStiles said:
Nothing is written to /var/log/messages when I attempt to start (or restart) apache.
check the validity of httpd.conf syntax:
/sbin/service httpd configtest
You also need to make sure that laus is not installed on your server:
rpm -e laus
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,221
4
193
Minneapolis, MN
AJStiles said:
As noted in the original post, configtest returns "Syntax OK".

Laus is not installed. "error: package laus is not installed".
There must be something stopping or blocking Apache, could be a corrupted module and/or a library.
 

AJStiles

Member
Nov 7, 2005
7
0
151
Yes - I can do a full rebuild using WHM or /script/easyapache.

Here's the end result:

Code:
/etc/rc.d/init.d/httpd start: httpd started
Attempting to restart httpd 	
Waiting for httpd to restart....
.
finished.
httpd status
httpd has failed, please contact the sysadmin.
 

neonix

Well-Known Member
Oct 21, 2004
124
2
168
Hi,

Did you install Zend?..I had a similar problem and Zend was the culprit..,
 

AJStiles

Member
Nov 7, 2005
7
0
151
No zend. I tried installing it, that didn't help either. Commented it out in php.ini, attempted to start Apache. No dice.
 

moogle

Well-Known Member
Apr 7, 2003
94
0
156
Long shot, but did you try rebooting?

I know sometimes when this comes up rebooting kills off whatever the problem was and allows apache to start again.
 

bhd

Well-Known Member
Sep 20, 2003
149
2
166
JNB ZA
cPanel Access Level
Root Administrator
We had exactly the same problem on a RHE server. I looked everywhere, every log file I could find and nothing was out of the ordinary.

Eventually we fixed it by running easyapache with the advanced (7) option and checked the "download modules even if they are up to date" and all was fine.
 

AJStiles

Member
Nov 7, 2005
7
0
151
Rebooting took care of it... should have tried that earlier. I wish I knew what the problem was though. Thanks for you help all.

Adam
 

Stephanie_R

Active Member
Mar 1, 2004
36
0
156
That quite often happens when apache has stale PID's or a socket is still open.

Even when ps -ef|grep httpd shows no processes the socket can still be held open.

/etd/init.d/httpd stop
killall httpd (till no process killed)
/etc/init.d/httpd startssl


If the server has resin installed you should also check in /tmp for a file named:
localhost_6802 and remove it.

Just a couple of ideas, but you may have already tried these at the time.
 

adinet

Member
Jun 27, 2005
5
0
151
Stephanie_R said:
That quite often happens when apache has stale PID's or a socket is still open.

Even when ps -ef|grep httpd shows no processes the socket can still be held open.

/etd/init.d/httpd stop
killall httpd (till no process killed)
/etc/init.d/httpd startssl


If the server has resin installed you should also check in /tmp for a file named:
localhost_6802 and remove it.

Just a couple of ideas, but you may have already tried these at the time.

Had the same problem, this worked for me :) thanks