httpd failed @ Wed Dec 14 02:40:37 2005. A restart was attempted automagicly.

dev.null

Well-Known Member
May 27, 2003
89
2
158
I get these about every 8 - 9 minutes. There doesn't appear to be any real problem with httpd at all.

/etc/init.d/httpd configtest shows that the config is just fine

service httpd stop
service httpd startssl


both run just fine.

I do watch "ps ax | grep httpd" and httpd has about 10 process that run just fine until a script that restarts http fires up and forces the kill and restart of httpd.

Why does (is it cPanel?) the system think that httpd has stopped and "restart" it?

How can I stop if from happening (unless it's really necessary)?

Thanks!
 

dev.null

Well-Known Member
May 27, 2003
89
2
158
Update on the info. I think I know what is causing the failure. One of the IPs assigned on the server runs a different service on port 80 (something we have to run on that port so 99% of all firewalls will allow our application to connect through them). It's not http-based.

I think every 8/9 minutes cpanel checks port 80 for http response and doesn't get on off of that IP and thinks httpd is dead, and forces the restart.

How can I still have this IP setup on my server but not have cpanel check it for http on port 80? I think that will stop the problem.

Thanks!
 

dev.null

Well-Known Member
May 27, 2003
89
2
158
Fixed

OK, the cpanel scripts check for connectivity on localhost port 80 to see if the web server is still there. I had modified httpd.conf to force apache to only listen to the IPs I wanted it to, avoiding the one IP that was being used by another applicationon port 80.

So the fix was to re-edit httpd.conf and put a 'Listen 127.0.0.1:80' in the mix.

Hope this helps someone else coming along...