[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.