• Welcome to XF2 Addons. You can buy my Premium membership for $35 per year, and this gives you access to download any or ALL of the 275+ add-ons that I have developed for Xenforo 2.x. In addition, Premium members will get technical support. Once the Premium membership has expired you can continue to use the installed addons on your forum as long as you like.

Linux ls and chown commands


Andy

Administrator
If you're experiencing an issue where you cannot upgrade your XenForo software due to a "The files are not writable" error message, this is typically a situation where the directories and files are not owned by the correct user and group.

To check the user and group where your XenForo is installed do this:

1. Go to the terminal of your server.
2. Navigate to the directory your XenForo is installed.
3. Type the following:

ls -l

You should see something like this:

1577395442821.jpg


Notice how the third and fourth column indicate xf2addons, this represents the user and group on my server.
 

Andy

Administrator
The problem I often see is the User or Group will be owned by "root" and this will cause problems when you try to upgrade the XenForo software. To fix this issue you use a command called chown.

Warning: usng the chown command incorrectly can break your server.

Example:

chown -R xf2addons:xf2addons /home/xf2addons/public_html
 

gerryvz

Member
Hi Andy,

This was really helpful -- I've been meaning to do this for a while on my own forum. I had most of my forum-related files owned by "root" -- I changed this to my normal day to day admin account. The group was already OK. So when the next XF update comes, I'll see if the "one-click" function finally works for me.

Thanks for pushing me over the edge to do this :)

--Gerry
 

Andy

Administrator
A good way of knowing which is the correct user and group is to navigate to the data/attachments/0 directory and do the ls -l command.
 

Andy

Administrator
Hi Gerry,

So in your case run the chown -R command like this:

chown -R 500eadmin:500eadmin /var/www/html/500eadmin/public_html/forums
 
Thread starter Similar threads Forum Replies Date
Andy Main forum 3
Andy Server Information 0
Top