Re: Lockups with 500 error is caused by permissions [message #168858 is a reply to message #168854] |
Tue, 30 July 2013 05:59 |
|
cpreston
Messages: 160 Registered: July 2012 Location: Oceanside
Karma:
|
Senior Member |
|
|
What suphp does is allow you to run php scripts as if they are being executed by the user that owns the files. Before suphp, such scripts would run as "nobody," which had a lot of issues, or were forced to run as root, which is BAAAD.
In an suphp/Apache based server, your website runs as a user that you log in as, and your scripts run as that user. So, in order to protect your user from running code it isn't familiar with, they protect the permissions of the files. That way, some other user can't overwrite the files with something else, causing your user to run some other script. Make sense?
I'm running FUDforum on a suphp server, and have no issues. All files are 644 and all directories are 755. This is how FUDforum did things during the install. Not sure how your permissions got messed up. As I read the lines of code you mentioned, they would only get called in certain circumstances. The last three are making a directory if it doesn't exist. In most cases, those directories would exist.
I've had web-based installs (like FUDforum) fail when I copied the files as root or my permissions were off when I copied them. Make sure all the files that get unzipped from the install file are 644 and all the directories are 755, and all should be well.
|
|
|