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


Posted

in

by

Comments

One response to “[WordPress] Fix: Cannot update WordPress to new version (Cannot create directory)”

  1. Alprazolam Avatar
    Alprazolam

    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 Reply

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