I have something flaky going on with some php source files that has me stumped. Today, we released a test version of code to a server running Centos. 'Releasing' for us is pulling a zip down from subversion, unzipping it and setting config files to work on that server. Immediately after release, the code was working.

At some point today, one of the modules started causing problems. Whenever it was included, we would get white pages. I renamed the module directory, and copied a backup of it from the previous release over. White pages gone.

The key thing is, no code changed in this module in this release. If I do a diff between the bad directory and the backup, no differences are found. If I copy the bad one back over, the white pages resume.

If I ftp the 'bad' files down to my windows computer, they run fine. No white pages.

There are no permissions differences between the 'bad' module and the good one.

So, if the permissions are the same, diff says there's no difference, and the same files work on another machine, what else should I be looking at?

Amy

link|improve this question
Demons? Have you tried a priest? – Phoshi Jul 19 '10 at 20:54
I know you said permissions, but did you check ownership? Usually an ownership problem will bark at you for not having sufficient rights, but that's the only idea I've got... – elmugrat Jul 19 '10 at 21:07
ownership is the same for both the bad files and the good. More weirdness: I started putting in print statements in the bad code to see where things went wrong. Found one include file that seemed to be doing it. Put a single print statement in it, then removed it, and now, what were the 'bad' files are working again. If the file were corrupt, I wouldn't expect to be able to open it or 'fix' it in this manner. Could APC be having something to do with this? Amy – Amy Anuszewski Jul 20 '10 at 13:20
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.