Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress plugin install: Could not create directory

Tags:

php

wordpress

ftp

I'm using WordPress on centos 6.

I try to install a plugin. But I got this error:

Installing Plugin: bbPress 2.5.9 Downloading install package from https://downloads.wordpress.org/plugin/bbpress.2.5.9.zip…

Unpacking the package…

Could not create directory.

How can I resolve this?

P/S: I run this command:

sudo -u root touch /var/www/html/wordpress/wp-content/plugins/test.txt 

and it works. But I still get that error.

like image 646
furyfish Avatar asked May 11 '16 08:05

furyfish


1 Answers

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

chown -R www-data:www-data your-wordpress-directory 
like image 100
asb14690 Avatar answered Oct 16 '22 03:10

asb14690