weird issue: corrupt php files

Support/Development for PHP
tvanerp
Forum User
Forum User
Posts: 21
Joined: Thu Apr 24, 2008 4:58 am

weird issue: corrupt php files

Unread post 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
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: weird issue: corrupt php files

Unread post 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.
Lemonbit Internet Dedicated Server Management
tvanerp
Forum User
Forum User
Posts: 21
Joined: Thu Apr 24, 2008 4:58 am

Re: weird issue: corrupt php files

Unread post by tvanerp »

I'm using eAccelerator, I'll disable it and see what happens.

Thanks for the fast reply
Post Reply