Page 1 of 1

weird issue: corrupt php files

Posted: Mon Jul 19, 2010 3:46 am
by tvanerp
I have this strange and annoying issue on my web server. I tried googling for it, but I got no usefull results.

Sometimes it seems that php feels get corrupted all by themselves. When I request the script in a browser I get a 500 error. When I open the script in an editor the contents are all fine and when I save the file again the error is gone. It happens with different files, but seems to happen with one specific file (used in different websites) more ofte than with others.

I have no clue what's causing this and hopw to solve it. Any help or leads would be appreciated.

Kind regards,
tijs

Re: weird issue: corrupt php files

Posted: Mon Jul 19, 2010 3:58 am
by breun
Anything in Apache's error_log for the domain?

Are you using PHP opcode caches (APC, eAccelerator, XCache, etc.) or things like that? You might want to try turning those off and see if the problem goes away.

Re: weird issue: corrupt php files

Posted: Mon Jul 19, 2010 8:23 am
by tvanerp
I'm using eAccelerator, I'll disable it and see what happens.

Thanks for the fast reply