The problem I am having is that Apache seems to stop serving pages after 1-2 hours of operation, but it doesn't actually crash. Restarting it "fixes" the problem temporarily, but then it stops serving once more. This started happening last week and I have not been able to find a permanent solution. Nothing changed in the config, and it has been working fine for over a year now.
From the apache error log:
PHP Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0
I've been getting this a lot. On some sites using file-based session management for PHP, I get the "unable to initialize storage module" PHP error. This seems to be related. Apparently this is an open bug within PHP...because nobody has posted a clear solution. There is plenty of disk space available and the memory in my server is plentiful. My main concern is making sure apache serves pages, and secondary is the session issue.
If anyone can help me fix this, I'd much appreciate it. Thanks!
From the sound of it apache isnt crashing. How many of these open sessions do you have as opposed to your max server setting for apache? If its only started in the last week, perhaps you have someone running a script with a fairly high timeout setting for sessions and this is your problem?
I thought that might be it and I checked up, but apache's processes are all in check. You're right tho, apache wasn't crashing - it was just not serving pages.
Disabling eAccelerator seems to have fixed the problem of not serving pages, but it doesn't make a lot of sense, because I've been using eA for the past month or so (after switching from turck 2.4.6) with no issues. Now all of the sudden it causes apache to hang.