WordPress Plugin update "Could not create directory"
-
Today I update my WordPress to 4.3 version. After that, a few of my plugins requires me to update them. Unfortunately, I got error message like below:
http://downloads.wordpress.org/plugin/plugin-1.0.1.zip…
Unpacking the update…
Could not create directory. /wp-content/upgrade/plugin.tmp
Return to Plugins pageFYI, I run my WordPress blog on cloud server from DigitalOcean. So I have SSH access to run command through console. If you have SSH access too, you can follow my step by step solution.
Honestly, before i figure out this solution, it’s very frustrated. No clue when I Google it. But, finally it can be solved.
First, you have to give access for webserver to access the WordPress installation directory. My WordPress installation is /var/www/wordpress and it might be different with yours, so you need to match it.
Run this command via SSH console/terminal:
chown -R www-data:www-data /var/www/wordpressafter that, you need to set directory permissions as follow:
sudo find /var/www/wordpress/ -type d -exec chmod 755 {} \; sudo find /var/www/wordpress/ -type f -exec chmod 644 {} \;Congratulations! Now you can update your plugins or even update your WordPress core.
The topic ‘WordPress Plugin update "Could not create directory"’ is closed to new replies.