XF 1.1 File Permissions (CHMOD vs. suEXEC)

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?
 
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.
 
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?
 
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.
 
Top Bottom