After installing WordPress, if the home directory and file owner properties are incorrect, ftp configuration is required when plug-in is updated. you can Connect to the server with ssh

chown -R www:www /home/wwwroot/yourname.com

As above, change /home/wwwroot/yourname.com to the directory you are actually using, change www:www to the user running nginx and enter the above command.

You can check as which user the nginx work process was executed by entering ps -aux|grep nginx as follows. Most Linux systems have www or www-data.

root@test:/home/wwwroot#ps -aux|grep nginx
root      248911  0.0  0.4  20480  4228 ?        Ss   Jan20   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
www       250603  0.0  2.7  42096 27264 ?        S    Jan20   0:03 nginx: worker process
www       250604  0.0  2.7  41808 27088 ?        S    Jan20   0:00 nginx: worker process
Spread the love
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x