I've been getting some problems with PHP pages on Apache. Things were working just fine, and then, on some pages, they produce a 500 Internal Server Error. It seems totally random which pages do this.
I FTP into the directory and look at the permissions- 644. Thinking maybe the perms need to allow execution (although 644 works on other php files) I attempt to change perms on the file through FTP to enable execution, and get this error: "550 Could not change perms on oldnewsletters.php: Bad file descriptor"
If I view and then save the text of the file, delete the original and then re-upload it (the SAME text), without changing anything, it works just fine. This is happening all at once across several sites on a single dedicated server, and I'm wondering if somehow the server is corrupting. I've never experienced this before.
The quic fix of re-uploading works fine for now, but I'm wondering how it happed in the first place. All of the pages worked just fine before, nothing was changed.
Is this a common problem with Apache? I realize the forum is for PHP, but assume that maybe some other PHP developers have experienced this in the past and cold shed some light. Any ideas?
Thanks
Frizzo