How to Solve WordPress “Could Not Create Directory” Error

After moving my site to Linode, I encountered an issue with WordPress not being able to create a directory for both new plugin installation and update. I guess everyone encounters this issue once when using a VPS or cloud hosting. This article shows my steps to fix this issue.

Here is what the error looks like:

Update theme
Install new plugin

Change ownership of site web directory to web server

/var/www/html folder is where I store my website. You can change it to where your website is stored.

Set wp-content directory permission

Permission can be set easily with this command line.

sudo find /var/www/html/wp-content -type d -exec chmod 775 {} \;

If you are using an FTP client like FileZilla, just right-click on the wp-content folder and choose “File permissions…” to set chmod.

Leave a Comment

Your email address will not be published. Required fields are marked *


Scroll to Top

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close