Hi.
I'm using APC 3.0.17 with PHP 5.2.5 on Linux.
I'm suffering some "white page of death" APC errors, and I'm trying to investigate the reasons. But:
1) I don't find any APC support forum.
2) I don't find any APC error log. I'm browsing Apache error log (with PHP 'E_ALL' activate) and don't see any line about it.
Any suggestion is welcome. Thank you very much.
How to log APC Cache errors?
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: How to log APC Cache errors?
Errors specific to APC or just errors from PHP in general? The latter certainly show in your logs (provided logging is turned on). I'm not aware of anything which logs errors internal to the APC cache itself. We've had the white page errors before (a lot actually) so we just habitually reload apache when we roll out a new package to be on the safe side.
Re: How to log APC Cache errors?
specific to APCChris Corbyn wrote:Errors specific to APC or just errors from PHP in general?
Sorry, could you please explain it with other words? I'm not sure about which your solution is.Chris Corbyn wrote: We've had the white page errors before (a lot actually) so we just habitually reload apache when we roll out a new package to be on the safe side.
When do you reload Apache? Each time you change the PHP scripts?
Thank you very much for your answer.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: How to log APC Cache errors?
Yeah I mean everytime code gets changed on our production servers we reload apache. We don't change code on our production servers much except for when a new version of our application gets launched (by "we" I mean my employer). Basically we extract our new package version then immediately restart apache. We do a bit more than that but that's not related to the APC issue.guarriman wrote:Sorry, could you please explain it with other words? I'm not sure about which your solution is.
When do you reload Apache? Each time you change the PHP scripts?
Thank you very much for your answer.
EDIT | I should stress that this would be really impractical if your setup involves live-editing code on the server. If it does I'd seriously re-think your deployment process. We try to make a release once every few days and that release will include a small number of useful changes. Release early, release often... but don't make production code your development code. That would cause havoc with APC too.