워드프레스 설치후 home디렉터리 와 파일소유자속성이 잘못되면 플러그인 업글시 ftp설정 요구된다. 서버에 ssh로 접속하여
chown -R www:www /home/wwwroot/yourname.com
상기와같이 /home/wwwroot/yourname.com을 실제사용하고있는 디렉토리로 고치고 www:www를 실제 nginx실행되고 있는 user로 고치고 위 명령어를 입력하면된다.
하기와 같이 ps -aux|grep nginx로 입력하여 nginx work process가 어느 user로 실행되였는지 확인할수 있다. 대부분 리눅스 시스템에 www혹은 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