1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 File Permissions (CHMOD vs. suEXEC)

Discussion in 'XenForo Questions and Support' started by tts, Apr 5, 2012.

  1. tts

    tts Member

    To use XenForo, I'm aware that the /data and /internal_data directories (including subdirectories) must be set to chmod 777.

    Here's my questions:

    (a) Can files within those directories be set to 644?

    (b) Can I use suEXEC to avoid having such loose permissions?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The directories can be either 777 or 755 depending on your server configuration. The files inside can be as low as 644. Again it depends on your server configuration.
  3. tts

    tts Member

    I have my permissions set to chown root:web where "web" is a group of developers (not www-data). So, Apache will run as the third user (everyone).

    Does XenForo just need read + execute for /data and /internal_data?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It needs write too. XenForo writes avatars and attachments to those directories. If the web server is running as 'everyone' then you would use 777. If it's running as the owner then you can use 755. That's what suPHP is good for.

Share This Page