Categories
WordPress

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

Categories
WordPress

[WordPress] วิธีแก้ปัญหา Inconsistent Permission ตอน Update WordPress ด้วย DirectAdmin

Categories
WordPress

[WordPress] วิธีแก้ปัญหา Update ไม่ได้สักทีเพราะ Permission inconsistent / denied ด้วย SSH