I have a production Linux/Apache2/PHP4 web server that's not working quite right. Every once in a while (something like once every few thousand requests), Apache serves the PHP source of a page instead of executing it and serving the result. Note that this only happens very occasionally; over 99% of the time it works just like it should. So it's not a run-of-the-mill "you forgot to turn on PHP" problem. I've tried searching Google and this forum, but all I seem to be able to find is basic configuration stuff that would prevent PHP from working at all.
I don't see anything in Apache's logs or syslog that would indicate a problem. The Apache logs do show that when this happens, the size of the content served is equal to the PHP source's size. But if there's any other clue in the logs, I haven't found it.
This happens in multiple web browsers and in cron jobs that we use lynx to execute, so it's not specific to a certain browser.
If anyone can help at all, I'd appreciate it.
Linux 2.6.18-amd64
Apache 2.2.3
PHP 4.4.4
Thanks,
gomtuu
Apache2 serves PHP source sometimes
Moderator: General Moderators