[WordPress] Fix: Cannot update WordPress to new version (Cannot create directory)

Just run this command in terminal:

chown -R www-data:www-data /var/www
find /var/www/ -type d -exec chmod 755 {} \;
find /var/www/ -type f -exec chmod 644 {} \;

Note that if your WordPress is in the other place than /var/www, make sure to change the path in command above before running.

Also published on Medium.

Join the Conversation

1 Comment

  1. You cannot update 0.98 on a centos 5 cpanel server. the only way is to update centos, which means moving to a new server and that costs a lot of money and downtime and other associated problems.

Leave a comment

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