at some point apache seems to hang up and not serve requests anymore or they take forever.
i checked the error log. doesnt show any errors
when i do apachctl stop and start apache again it works again
Apache crash/hangup doesnt serve requests
apache-2.2
Best Answer
WHAT DO YOUR ERROR LOGS SAY?
Chances are your httpd.conf file needs to be tuned. That being said let's get started.
Virtually almost always httpd.conf is located @ the same place - I am hoping you are comfortable with shell as well as the editor of your choice... I will use NANO in this explanation..
First complete this command:
Next use the following command to open the original httpd.conf file in your editor:
Then use "Control-W" to open the search command and type Timeout - you should see something similar to this
Change that to
Press the Control-X key and then save the file overwriting the original
Finally - restart Apache using:
Following the aformentioned directions - you can also edit a few other settings:
Be Sure to only do one change at a time to make sure each works... slow is better than major changes and major crashes
Search for the following section: prefork MPM (or just prefork )
and change to something one of the following - based upon the level of your server:
basic level servers (small resources):
Medium level servers (medium resources):
Larger level servers (larger resources):
Anyhow - these should be a decent start - of course you will want to continue to fine tune to get the best solution.
Happy Editing :-)
did this help you? be sure to vote on this answer