WordPress knowledge sharing

Solution to WordPress prompt "Inconsistent file permissions"

Sometimes when we upgrade the WordPress blog version or upgrade plug-ins, we will be prompted that the update failed because we cannot copy some files and the upgrade has not been installed. This is usually due to inconsistent file permissions. This is generally caused by insufficient wordpress permissions.

In fact, when upgrading and updating WordPress, similar prompts are almost caused by insufficient permissions. This kind of problem is quite common.

Related reading:

Solution to WordPress background editing theme without "Update File" button

How to modify the user name and user group of a folder in Linux

Resolve the problem that WordPress plug-in updates "require access to your web server"

For example, in this article, when updating plug-ins, you will be prompted that the file permissions are inconsistent.

Use ps aux | grep nginx to find that nginx runs as www. Through ps aux | grep php, it is found that php is also run as a www user.

At this time, check that the owner and all groups of simple URLs in the plugin directory are root. Of course, the files cannot be written in.

The solution is to use the chown command to modify permissions. The specific order is

Chown – R www.www/home/wwwroot/website directory name/wp content/plugins

After modification, check the permission again and it will become www. Finally, upgrade the plug-in and prompt "Updated".

Like( zero )
Article name: Solution to WordPress Prompt "Inconsistent File Permissions"
Article link: https://www.vpsss.net/3058.html
Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself.
The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.