Portal Home > Knowledgebase > Articles Database > httpd failed
httpd failed
Posted by webhostbeginner, 05-25-2008, 02:31 AM |
Hello,
my apache crashed and I trying to restart apache from SSH,
when I run "service httpd start" I didn't get any message and I come back yo command prompt, but the httpd is down yet
what should I do ?
|
Posted by tanfwc, 05-25-2008, 02:40 AM |
Which control panel are you using or you are using plain server?
|
Posted by eth1, 05-25-2008, 09:16 AM |
What does the Apache error_log say ?
tail -f /usr/local/apache/logs/error_log
|
Posted by gnusys, 05-25-2008, 11:55 AM |
Run a Syntax check on the config file
`which httpd` -t
Edit Apache httpd config file and change LogLevel to debug
LogLevel debug
Restart httpd and check the logs
|
Posted by RoseHosting, 05-26-2008, 01:26 AM |
Yes, please tell us what does your "apache" error_log say. It should be located in your "/var/log/httpd" directory.
|
Posted by helpyoulinux, 05-26-2008, 08:08 AM |
try this one, and paste the result here.
/etc/init.d/httpd restart; tail -f /etc/httpd/logs/error_log
|
Posted by webhostbeginner, 05-27-2008, 04:18 AM |
Thanks for answers,
I rebuild the apache and the problem solved.
Thanks in advanced.
|
Posted by webhostbeginner, 06-24-2008, 07:55 PM |
Hello,
I have this problem again !
when I checked the Log file I get this message : Unable to open logs
What should I do ?
I get Syntax OK when I run apachectl configtest
Last edited by Christian; 06-26-2008 at 02:20 AM.
Reason: merged
|
Posted by Lsupport, 06-26-2008, 01:29 AM |
It may be either a permission issue or ulimit issue. Can you see errors like "Too many open files in system" in the apache error logs. If yes, try increasing the ulimit value. Use command ulimit -n 4096 for the same.
If that seems to work, add 'ulimit -n 4096' in the apache init script also.
|
Posted by david510, 06-26-2008, 06:19 AM |
Have a check if the log file size is huge. If it goes above 2 gb apache fails to start.
|
Posted by jtonsupport, 06-26-2008, 07:39 AM |
SSH to your server and try to restart httpd service. See what errors it throws on the screen. If that doesnt show anything, look up the httpd logs at /var/log/httpd/error_log. It will show you the problem and the problem can be corrected as soon it can be tracked.
|
Add to Favourites Print this Article
Also Read
IIS7 vs Linux (Views: 741)
Dinix.Com (Views: 790)