Apache stops responding to HTTP requests every few days
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Apache stops responding to HTTP requests every few days
I've had a VPS running Ubuntu 9.10 x64 server, hosting 3 websites of mine for a few months now. This problem has been happening for a while.
Every once in a while, probably every 2 or 3 days, I'll wake up in the morning, and apache won't be responding, no web pages will load.
/etc/init.d/apache2 status, reports that apache is functioning properly. Every time I simply have to restart the daemon and things run fine for another few days.
I thought maybe it was a memory issue, so I lowered the MaxClients in the prefork module from 50 to 30 a few days ago, but the same thing is still happening. My VPS has 512MB of ram, burstable to 1GB, and according to Virtuozzo, there was only one night of high traffic where I even came close to that soft limit.
I've checked my syslog, and there's absolutely nothing in there about apache. I've checked apache's error.log as well, and there's nothing in there that would indicate a problem either.
I know the description of this problem is pretty vague, but whatever info may help diagnose this problem, please, ask me and I'll get the info. I'm lost here... no clue where to look.
When I self-hosted, I found that, as my little site went from having one or two visitors to have three or four visitors, the size of the log files became an issue. I fixed that by writing a script to stop the server, gzip the logs, and restart the server at 4:00 a. m. every day.
This was a little personal website and blog which I was hosting using the XAMPP stack with all security enabled. Because it was XAMPP, the logs were not in /var, but in /opt/lampp/var.
(Admittedly, this was on an older computer without lots of RAMS, but it did the job for three years.)
Is it possible the problem is in "incompatible packages"..? as in mixing U-910 OS with evolved forum softwares and peripherals meant for more advanced Linux OS's..?
I found that U-910 was always a little unstable in a few obscure problem areas.. It's probably why those running U-1004 & U-1010 aren't having those http troubles... Is why I switched from Ubuntu-910 to Fedora... Check it out for yourself.. You'll quickly find that Fedora is twice as good as Ubuntu... To my experiences, Ubuntu feels like it's a "twisted Stonehenge religion".. Fedora feels like it breathes and beats with you, without any non-OS garbage in your face.. Fedora feels like it's built on love and skill and respect and pride... And, If you must take it up a notch, there's always "Scientific (RH) Linux"... What's the reasoning to maintain an irritating OS, when "Fedora-gold" is a click away just for the taking..?
After the updates, go into package mgr, and install "Yumex".. Then have a pardy in Yumex Groups... But be extremely careful to not uncheck any groups.. that uninstalls crucial parts of the OS faster than you can utter "oops!"...
Before you install Fedora, save your treasures to CD's, then run DBAN autonuke to get rid of that buggy little indelible Ubuntu partition that Linux and Windows OS installs can't format...
Add your forum, then tell us that all the PC glitches just up and vanished...
Last edited by cosmicbrat; 12-29-2010 at 10:44 AM.
When I self-hosted, I found that, as my little site went from having one or two visitors to have three or four visitors, the size of the log files became an issue. I fixed that by writing a script to stop the server, gzip the logs, and restart the server at 4:00 a. m. every day.
This was a little personal website and blog which I was hosting using the XAMPP stack with all security enabled. Because it was XAMPP, the logs were not in /var, but in /opt/lampp/var.
(Admittedly, this was on an older computer without lots of RAMS, but it did the job for three years.)
Well, looks like the access log for my largest website is a good 262MB! Yikes. When I first setup the server, I wrote a script to purge the log files, but I never tested it out or set the cron job for it... I guess I forgot about it. I'll try wiping out the log files and see if that does anything.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.