简体   繁体   中英

Not able to install plugins in Wordpress

I've a wordpress hosted in Rackspace cloud server. The site is working fine. To access the wordpress admin panel i have setup FTP access to the root user. I'm able to access and create files via FTP and the wordpress admin can connect to the server via FTP.

But i'm not able to install new plugins from the wordpress admin panel.I'm getting the following errors.

Downloading install package from 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.

Is there any configuration change made, to be able to install the wordpress plugins successfully.

Set the write permission for your FTP user.

Read Wordpress file permissions from here Changing_File_Permissions

It's can be also a problem with web hosting configurations. Try the FTP method. Reference here.

Add the following lines in your 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:

define('FS_METHOD', 'direct');

Also, wanted to add that you must NEVER set the wp-content permission or permission of any folder to 777.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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