FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » What are correct file permissions for 3.04? (I have everything on 666/777, can't be right?)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Lockups with 500 error is caused by permissions [message #168858 is a reply to message #168854] Tue, 30 July 2013 05:59 Go to previous messageGo to previous message
cpreston is currently offline  cpreston   United States
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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem importing data before upgrading the forum (2.7.6->)
Next Topic: Maillist.php works from command line but not postfix pipe
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 21:38:18 GMT 2024

Total time taken to generate the page: 0.03955 seconds