Portal Home > Knowledgebase > Articles Database > Httpd Suddenly Stop
Httpd Suddenly Stop
Posted by nabeelamjad, 11-26-2009, 05:57 AM |
my server httpd suddenly stoped at yesterday night and i know it very lately and because of that there is a big down time on my server,
when i login to server then see that httpd is not running on top. so i decided to start it again i used this command
service httpd start
but it does not start after executing this command in past this command also working fine so there should be some thing wrong with http .
so i ask some one and he used this command /scripts/restartsrv httpd and he said to me that he did refresh my httpd then httpd start.
How can i get rid of this down time again in future is there any thing wrong with httpd which still present on the server .
And also will you please identify the different between these two command .?
|
Posted by ksv2nash, 11-26-2009, 06:17 AM |
HI,
When u restart httpd then have you got any error?
And when u give /scripts/restartsrv httpd then it restart process from cpanel
<>
Last edited by bear; 11-26-2009 at 09:11 AM.
|
Posted by JohnCS, 11-26-2009, 06:30 AM |
Check your error log and also /var/log/messages
run this command /etc/init.d/httpd configtest
and see any error in your httpd config.
Apache may also stop due to overload RAM/CPU.
/scripts/restartsrv is a script made my cPanel which also use the service httpd restart command
|
Posted by inspiron, 11-26-2009, 07:20 AM |
tried restarting apache with,
#/etc/init.d/httpd stop
#/etc/init.d/httpd start
|
Posted by nabeelamjad, 11-26-2009, 07:49 AM |
Thu Nov 26 16:45:41 2009] [warn] NameVirtualHost 111.111.111.11 has no VirtualHosts
Syntax OK
get this out put when used this command
/etc/init.d/httpd configtest
|
Posted by ksv2nash, 11-26-2009, 08:00 AM |
Hi,
Just have a look at
tail /usr/local/apache/logs/error_logs
and have to did any changes in your virtual host in httpd.conf?
<>
Last edited by bear; 11-26-2009 at 09:11 AM.
|
Posted by ramsh, 11-27-2009, 02:35 PM |
Check the previos entries in the apache error log and identify the problem happened in it. Try to kill all the current apache process then try to start it again.
|
Posted by hD-Scott, 11-27-2009, 06:03 PM |
This happened to one of our servers just last night. All it took was a server restart and everything went back to normal. No virtual hosts were actually harmed or lost in the process.
I will admit though when I did try to restart httpd and I got a list of sites including the server itself with no virutal hosts, I did have a panic. Nothing scarier at 3 in the morning! LOL
Anyway, a simple restart did the trick.
|
Posted by krishna0312, 11-29-2009, 02:54 PM |
Hello,
You will need the optimize apache.
|
Posted by VIPoint, 11-29-2009, 03:28 PM |
Is there any certain time that the service stops.. maybe any process is causing the service shutdown?
|
Posted by ksv2nash, 11-30-2009, 03:35 AM |
Hi,
use this for delete all dead apache process
ipcs -s | grep nobody | perl -e 'while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}'
|
Posted by kdmitchell, 11-30-2009, 11:46 PM |
Speaking of your httpd.conf file. Did you look at that yet and if not, you should do so. Check out what your maxserver variable is as it might be set to high and no maxclient limit set at all. That can contribute to httpd killing your memory and causing this issue.
|
Posted by mellow-h, 12-01-2009, 12:18 AM |
If it was a panic, you should investigate further by analyzing /var/log/messages, panics are not usual and caused by the crash.
|
Add to Favourites Print this Article
Also Read