1) 无法安装插件或者上传插件无法创建目录
I can connect my vps ip with putty ,hostname is a.b.c.d , ftp user is root ,password is password .
None of connection type (ftp or ftps) can add a new plugin .
Failed to connect to FTP Server
Connection Information
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.
解决方案
Wordpress will prompt you for FTP credentials if it does not have permission to write the files it needs to. If you log in via putty and run the following command (assuming this is an Ubuntu droplet) it will set the files to be owned by the user that the web service is run as and should resolve the problem.
sudo chown -Rf www-data.www-data /var/www/html/wordpress
https://www.digitalocean.com/community/questions/why-i-can-t-install-a-new-plugin-on-my-wordpress
网友评论