Fix could not create directory when update plugin in WordPress
chown -R www-data:www-data your-wordpress-directory
chown -R www-data:www-data your-wordpress-directory
1 |
find /usr/share/nginx/html/ -name "*" | xargs perl -pi -e 's|googleapis.com|lug.ustc.edu.cn|g' |
Also, it can replace ajax or other sub-domains of “googleapi”
1. You should change define(‘WPLANG’,’zh_CN’) to define(‘WPLANG’,”) in wp-config.php
2. Delete the wp-content/language folder
3. Change your timezone to New York
4. Change your timezone to Utc xx
Note: If you don’t follow the step 4 you will receive the language update, and if you download a plugin, the language will back to the origin language.