Why can't the plugin overwrite a file? What are the necessary permissions?

The Unix systems (that includes Linux in all its flavors and distributions) have for each file permissions and ownership (read more here).

We've seen many times that when a website is moved from one hosting provider to another, while the permissions are correct the ownership of a file is not correctly kept, or viceversa. For example, a file will have the correct write permissions but the file owner will be "guest" instead of "www-data". This means that trying to replace a file when using a plugin like Enable Media Replace or ShortPixel Image Optimizer will fail.

The solution to this is usually to contact your hosting provider, after moving a website from one host to another, and make sure that all your files have both the correct ownership and the correct permissions. Once this is fixed you'll be able to replace files using plugins like the ones mentioned before.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us