Tom Pyles

Well-Known Member
Apr 26, 2002
254
0
316
Just started getting the e-mails that apache is failing on one server. I tried restarting in WHM and I'm getting the following

Can't connect at /scripts/restartsrv line 197, line 86046.


Any ideas on how to get apache back up?
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
Try restarting apache from SSH:

/etc/rc.d/init.d/httpd start

If apache doesn't start, this will spit out the errors. If you can't figure it out from there, paste the error here for us to see.
 

steven

Active Member
Sep 9, 2001
39
0
306
Check your error_logs and also run the apachectl configtest to see if that shows any issues.

-Steven
 

Tom Pyles

Well-Known Member
Apr 26, 2002
254
0
316
Thanks for the fast responses. I started with the
/etc/rc.d/init.d/httpd start

and it told me (pid 15298) already running...seems to have come back up. I don't know what that was all about. I'm downloading the logs to look them over.
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
What error did you get when you restarted and it didn't come up?
 

Tom Pyles

Well-Known Member
Apr 26, 2002
254
0
316
[Fri Jan 3 23:38:53 2003] [warn] NameVirtualHost 66.246.**.*:80 has no VirtualHosts
[Fri Jan 3 23:38:53 2003] [warn] NameVirtualHost 66.246.**.*:80 has no VirtualHosts
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
Try commenting out the entry in httpd.conf then restart apache.
 

Website Rob

Well-Known Member
Mar 23, 2002
1,501
1
318
Alberta, Canada
cPanel Access Level
Root Administrator
I get those errors all the time &has no VirtualHosts& and has never been a problem -- since it is only a warning. Could this have something to do with the Apache 10 minute restart bug that Cpanel has?
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
[quote:278e587d66][i:278e587d66]Originally posted by Website Rob[/i:278e587d66]

I get those errors all the time &has no VirtualHosts& and has never been a problem -- since it is only a warning. Could this have something to do with the Apache 10 minute restart bug that Cpanel has?[/quote:278e587d66]

I have never experienced the 10 minute restart, but I regularly clean up my httpd.conf files, so perhaps this is the cause? I don't see how it would cause it to fail however.

In regards to the thread starters problem. There might be something more, perhaps some part of the httpd.conf file has gone corrupt? Might be wise to go through and do some cleaning up as well.
 

Website Rob

Well-Known Member
Mar 23, 2002
1,501
1
318
Alberta, Canada
cPanel Access Level
Root Administrator
You mean, in: /usr/local/apache/logs/error_log you don't see something like:

[notice] SIGUSR1 received. Doing graceful restart

every 10 minutes???

There are more than a few threads (on this Forum) about this problem. Pray tell how you managed to solve it, as it seems, most of us have no idea what is causing it.
 

michaeln

Member
Nov 20, 2001
18
0
301
If you compiled php4.2.3 with GD 2.0.2 or greater you will find a few Segmentation faults in apache as well as apache will fail at various times throughout the day. Sometimes it will start right back up and somethimes it will not.

However I solved this problem by recompiling php 4.2.3 with GD 1.8
Haven't had any more problems out of Apache since.
 

mesranet

Well-Known Member
May 6, 2002
133
0
316
Hi All,

Lately i found lot of Segmentation fault on my error_log, that was happen after i run the /scripts/easyapache and select GD and downgrade php 4.3 to 4.2, what suppose i do, from the previous post telling about recompile php with GD 1.8, anybody can guide me how to recompile it.

Please help