XenForo Tutorials

One-click upgrades with Ubuntu

Submitted by Yondu, , Thread ID: 197754

Yondu
Marry Poppins Y'all
Administrators
Level:
34
Reputation:
190
Posts:
1.51K
Likes:
329
Credits:
3.47K
12-02-2021, 09:11 PM
#1
After some time searching yesterday I finally found a solution that will let me do both upload files via SFTP and give nginx the correct permissions to allow one-click upgrades, install/upgrade from the archive.

In ubuntu the group that nginx operates under is www-data so the trick is to add your user "demo" to the group www-data (since www-data is a group)

add user "demo" to group "www-data" (below replace demo with your username)

Code:
sudo usermod -a -G www-data demo

set permissions for user group www-data

Code:
sudo chgrp -R www-data /var/www/html

Followed by

Code:
sudo chmod -R g+w /var/www/html

Now you can modify files as "demo" via SFTP and your Xenforo installation can modify files without requesting credentials.

You should be able to figure out what your nginx process operates under on your distro and make it work.

Hope it helps those confused and don't fully understand Linux user permissions!

*** Commands/Code was taken from a comment on one o digitalocean community questions and re-worded here for XF resources. Don't quite remember the link for proper credits.
[Image: wsUuw16j6oyxLLRnnK.gif]

RE: One-click upgrades with Ubuntu

BadWasabee
Lurker
Level:
0
Reputation:
0
Posts:
9
Likes:
0
Credits:
9
24-06-2021, 06:26 PM
#2
Thank you! this was essential to setting up my dedi.

Users browsing this thread: 1 Guest(s)