简体   繁体   English

无法在Wordpress中安装插件

[英]Not able to install plugins in Wordpress

I've a wordpress hosted in Rackspace cloud server. 我在Rackspace云服务器上托管了一个wordpress The site is working fine. 该网站工作正常。 To access the wordpress admin panel i have setup FTP access to the root user. 要访问wordpress管理面板,我已经设置了root用户的FTP访问权限。 I'm able to access and create files via FTP and the wordpress admin can connect to the server via FTP. 我可以通过FTP访问和创建文件,wordpress管理员可以通过FTP连接到服务器。

But i'm not able to install new plugins from the wordpress admin panel.I'm getting the following errors. 但我无法从wordpress管理面板安装新的插件。我收到以下错误。

Downloading install package from https://downloads.wordpress.org/plugin/icon-list.0.3.zip https://downloads.wordpress.org/plugin/icon-list.0.3.zip下载安装包...

Unpacking the package… 打开包装......

Could not create directory. 无法创建目录。

Return to Plugin Installer 返回插件安装程序

First i thought it was some permission issue. 首先我认为这是一些许可问题。 But in the server i've set the permissions 777 to the wordpress project folder.But its still showing the same error. 但在服务器中我已将权限777设置为wordpress项目文件夹。但它仍然显示相同的错误。

Is there any configuration change made, to be able to install the wordpress plugins successfully. 是否进行了任何配置更改,以便能够成功安装wordpress插件。

Set the write permission for your FTP user. 设置FTP用户的write权限。

Read Wordpress file permissions from here Changing_File_Permissions 从这里Changing_File_Permissions读取Wordpress文件permissions

It's can be also a problem with web hosting configurations. 这也可能是网络托管配置的问题。 Try the FTP method. 尝试使用FTP方法。 Reference here. 参考这里。

Add the following lines in your wp-config.php wp-config.php中添加以下行

define('FS_METHOD', 'ftpext');
define('FTP_USER', 'YOUR FTP LOGIN');
define('FTP_PASS', 'YOUR FTP PASSWORD');
define('FTP_HOST', 'YOUR FTP HOST (without http:// or ftp://)');
define('FTP_SSL', false);

Another way : Your web server has write permissions, then add this to your wp-config.php file: 另一种方式:您的Web服务器具有写权限,然后将其添加到您的wp-config.php文件中:

define('FS_METHOD', 'direct');

Also, wanted to add that you must NEVER set the wp-content permission or permission of any folder to 777. 另外,想要补充的是,您必须永远不要将任何文件夹的wp-content权限或权限设置为777。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM