Page 1 of 1

internal server errors, etc.

Posted: Fri Mar 02, 2007 2:29 pm
by jkashu
I have been working on a fairly complex php driven site that involves user accounts, login, uploading files, etc.

Everything was working fine, until last night. I was playing with an upload script (this may or may not be relevant), but I went to one page of the site and it showed an internal server error. After that, most of the pages started showing errors.

I undid the changes to the upload script (like I said, I don't know if it is relevant), but the errors continued.

Now, I get errors occasionally, plus the permissions are all messed up. Any scripts that write to files, upload files, or create files (or directories) come up with a permission denied error....

Any thoughts?

The web hosting company has not been much help...

Re: internal server errors, etc.

Posted: Fri Mar 02, 2007 2:49 pm
by Christopher
jkashu wrote:Any thoughts?
It sounds like you need to fix the permissions. The webserver does not seem to have read or write access where necessary. You can change file/directory permissions via an admin panel sometimes, also via FTP sometimes, and if you have shell access then use "chmod".

Posted: Fri Mar 02, 2007 3:05 pm
by jkashu
the site has been working for weeks, why would all the permissions change? What about the internal server errors?

Posted: Fri Mar 02, 2007 3:55 pm
by Christopher
jkashu wrote:the site has been working for weeks, why would all the permissions change?
I don't know.
jkashu wrote:What about the internal server errors?
If the webserver cannot read the file it will give an error.

Posted: Fri Mar 02, 2007 4:14 pm
by nickvd
If you can access the raw error logs, you may be able to determine the cause of the error.

My first thought is that the uploading script that you were playing around with changed the permissions of a folder that it was either not supposed to, or that it was configured wrong.