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
weird issue: corrupt php files
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Re: weird issue: corrupt php files
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.
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.
Lemonbit Internet Dedicated Server Management
Re: weird issue: corrupt php files
I'm using eAccelerator, I'll disable it and see what happens.
Thanks for the fast reply
Thanks for the fast reply