本文共 1376 字,大约阅读时间需要 4 分钟。
第一次在ubuntu安装wordpress,更新主题时,提示
To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.
原因是php-fpm的用户并没有wordpress解压目录的写权限
ps -ef | grep "php-fpm"
结果如下:
root@ubuntu:/home/lnmp1.8# ps -ef | grep "php-fpm"root 3848 1 0 09:49 ? 00:00:00 php-fpm: master process (/usr/local/php/etc/php-fpm.conf)www 3850 3848 0 09:49 ? 00:00:00 php-fpm: pool wwwwww 3851 3848 0 09:49 ? 00:00:00 php-fpm: pool wwwwww 3852 3848 0 09:49 ? 00:00:00 php-fpm: pool wwwwww 3853 3848 0 09:49 ? 00:00:00 php-fpm: pool wwwwww 3854 3848 0 09:49 ? 00:00:00 php-fpm: pool wwwwww 3855 3848 0 09:49 ? 00:00:00 php-fpm: pool wwwwww 3856 3848 0 09:49 ? 00:00:00 php-fpm: pool wwwwww 3857 3848 0 09:49 ? 00:00:00 php-fpm: pool wwwwww 3858 3848 0 09:49 ? 00:00:00 php-fpm: pool wwwwww 3859 3848 0 09:49 ? 00:00:00 php-fpm: pool wwwwww 3891 3848 0 09:50 ? 00:00:00 php-fpm: pool wwwroot 3949 18961 0 09:56 pts/2 00:00:00 grep --color=auto php-fpm
这里用户为www
sudo chown -R www /home/wordpress/wordpress.keinder.nl
sudo chown -R www 加上部署路径
重新更新主题,插件即可转载地址:http://twclf.baihongyu.com/