Nginx + backup + chown problems??

ShinJii

Verified User
Joined
Mar 20, 2014
Messages
224
Hi,
I moved to X server from Y and i backuped my user from Y to X with all configs and /home/ (domains etc.) it all works except one thing - I couldn't edit files through FileZilla - 553 permissions error....

I thought maybe there's something wrong with owner and I did command
Code:
chown -R userX:groupX /home/userX/domains/
but then CSS and JS stopped working on my website... (403 error) then I did
Code:
chmod 755 -R /home/userX/domains/domain.com/public_html
but still nothing (with css and js)...

It only repaired that I can edit files through FileZilla..... but then I go to
Code:
/etc/nginx/nginx.conf
and did
Code:
user root;
now it works (css/js and edit files)... but I don't know what I messed up and how to repair it? On server Y it everything was working without problems... I feel I did it wrong on server X :D and for example every new update of Nginx kill my nginx.conf and I have to again write there "user root;" - what to do?! Help :)
 
Hi,
I moved to X server from Y and i backuped my user from Y to X with all configs and /home/ (domains etc.) it all works except one thing - I couldn't edit files through FileZilla - 553 permissions error....

I thought maybe there's something wrong with owner and I did command
Code:
chown -R userX:groupX /home/userX/domains/
but then CSS and JS stopped working on my website... (403 error) then I did
Code:
chmod 755 -R /home/userX/domains/domain.com/public_html
but still nothing (with css and js)...

It only repaired that I can edit files through FileZilla..... but then I go to
Code:
/etc/nginx/nginx.conf
and did
Code:
user root;
now it works (css/js and edit files)... but I don't know what I messed up and how to repair it? On server Y it everything was working without problems... I feel I did it wrong on server X :D and for example every new update of Nginx kill my nginx.conf and I have to again write there "user root;" - what to do?! Help :)

Code:
chown -R ftp:ftp path
 
Last edited:
Hello,

You should not run NGINX as root.

In order to correct permissions you need to run /usr/local/directadmin/scripts/set_permissions.sh:

Code:
 /usr/local/directadmin/scripts/set_permissions.sh user_homes
 
Hello,

You should not run NGINX as root.

In order to correct permissions you need to run /usr/local/directadmin/scripts/set_permissions.sh:

Code:
 /usr/local/directadmin/scripts/set_permissions.sh user_homes

Thank you! :)
 
Back
Top