internal server errors, etc.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jkashu
Forum Commoner
Posts: 45
Joined: Tue Jan 30, 2007 12:00 pm

internal server errors, etc.

Post 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...
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: internal server errors, etc.

Post 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".
(#10850)
jkashu
Forum Commoner
Posts: 45
Joined: Tue Jan 30, 2007 12:00 pm

Post by jkashu »

the site has been working for weeks, why would all the permissions change? What about the internal server errors?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post 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.
Post Reply