• 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)

#1
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?
 

Jake Bunce

XenForo moderator
Staff member
#2
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
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?
 

Jake Bunce

XenForo moderator
Staff member
#4
Does XenForo just need read + execute for /data and /internal_data?
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.