Wordpress plugin install: Could not create directory Wordpress plugin install: Could not create directory wordpress wordpress

Wordpress plugin install: Could not create directory


You only need to change the access permissions for your WordPress Directory:

chown -R www-data:www-data your-wordpress-directory


You can fix this by using the following commands. You should first be in the root folder of Wordpress.

sudo chown -R www-data:www-data wp-content/plugins/sudo chmod 775 wp-contentsudo chown -R www-data:www-data wp-content/


The user that is running your web server does not have permissions to write to the directory that Wordpress is intending to create the plugin directory in. You should chown the directory in question to the user that is running Wordpress. It is most likely not root.

In short, this is a permissions issue. Your touch command is working because you're using it as root, and root has global permissions to write wherever it wants.