CoenR
By:
CoenR

Wordpress can't update theme/plugins, can upload images

December 26, 2014 6.7k views

I followed exactly all steps in the following tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-nginx-on-ubuntu-14-04

I also read the comments where various command are stated like:

sudo chgrp -R www-data /var/www/html

But after trying any of those I still am not able to upload theme files, or download plugins. Media works fine, but for plugins and themes I'd really prefer to use the options within the dashboard.

I keep receiving the pop-up that I have to enter my ftp credentials or SSH info.

Also another thing I noticed in the guide: Shouldn't we remove the wordpress which we downloaded to our user account? Now we basically have two wordpress installs and the zip file on the server. Seems wasted space, but I'm not full expert on it, so should we remove this?

I hope someone can help, thanks

4 comments
  • After writing:

    sudo chown www-data:www-data /var/www/html/ -R
    

    it seemed to fix the problem. However would this impose any security issues?

  • no security issues with using www-data:www-data

    You might want to also run:

    sudo chmod -R 774 /var/www/html
    
  • Thanks this worked. However I do have another question. If I now log in through ftp I can no longer edit anything. How could I make this work that wordpress remains working at the dashboard, but also ftp?

  • Worked for me! Thanks!

1 Answer

This question was answered by @CoenR:

After writing:

sudo chown www-data:www-data /var/www/html/ -R

it seemed to fix the problem. However would this impose any security issues?

View the original comment

Have another answer? Share your knowledge.