XF 2.1 chmod settings for src folder and zip install addons

electrogypsy

Well-known member
Hey there, just curious if the src folder needs to have certain permissions set (i.e. 0755 or 0777) for zip addon installs to work? i often get error messages when installing addons via zip archive:

Code:
"Not all files are writable (example: src/addons/SV/ConversationEssentials/hashes.json). Cannot continue."

works fine via FTP though. thanks in advance!
 
In general files and directories should be 0644 and 0755 respectively.

The /data and /internal_data directories should be:
0666/0777 if PHP runs as "nobody" (the web server user)
0644/0755 if it runs as "your" user (suPHP for example)

0644/0755 only works if PHP is running as the user that owns the file (generally with cpanel setups).

If running PHP with mod_php, PHP will run as the same user as Apache, which will typically be "nobody" or "httpd", system dependent.
 
cool, thanks for the detailed info! I'm actually running a LEMP stack (centminmod), not sure if that makes any difference.

I recently had this issue, also using centminmod. this post helped me fix it:

The simplest way would be to find the user that PHP is running as and chown -R user * from the root of your XF installation. This will fix your issue.

"lsof -i" will tell you what user the php-fpm process is running as, in our case the user is "nginx". Hope this helps other people searching
 
Back
Top Bottom