Wordpress Plugin - Can't Create Directory

January 3, 2016 802 views
WordPress LAMP Stack PHP CentOS

Hi All,

I have successfully installed Wordpress on my LAMP server, however, I can't seem to update plugins. I am getting the following error:

Could not create directory

Additionally, I have already placed the following instruction in the wp-config file:


Any ideas?

1 comment
  • I have exactly same problem.
    has been added to wp-config file. I am still unable to install, remove or update plugins and themes. CentOS & LAMP setup step by step from DigitalOcean tutorial.
    Any help will be much appreciated.

1 Answer

Most probably permisison issues. Try :
sudo chown -R apache:apache /var/www/html/*

  • Default user is www-data in debian/ubuntu.
    It's better to check user with ps aux | grep apache while apache is running.
    You can also check user/group info at httpd.conf.

  • That was it. Thanks :)

Have another answer? Share your knowledge.