Question

How to change WP file permissions (Unable to update theme due to "permission denied")

Posted December 21, 2018 1.2k views
WordPressDigitalOceanUbuntu 16.04

Hi,

I am trying to update my Genesis theme but I keep getting an error about “inconsistent permissions”. So I tried to change permission for themes in my wp-content directory from 644 to 755, but it gives me the following error:

“Failure to write attributes of…
Permission denied. Please contact your hosting service provider”

I know I have to change user permission somehow, but I am not that server savvy to know what to do.

Now, I have updated themes and plugins before many times, but never had this issue. And I know I haven’t changed anything recently (except switching to HTTPS from HTTP), so I am lost as to what the issue is.
I would appreciate any help.

Thanks very much in advance.

Saeed

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hey friend,

Try setting ownership to the web server user. Let’s say, for example, that www-data is the web server user and /var/www is your Wordpress directory. In that example, the command would be:

chown -R www-data. /var/www

Jarland

Submit an Answer