• Hi all,

    I have a WP install on a Ubuntu box, it’s been working perfectly fine but there’s some recent strange issues being encountered. I can’t seem to upgrade or update and of the plugins or theme.

    For eg, when I load the all in one wp migration plugin, I see this err: Please make sure that storage directory /var/www/siteurl/wp-content/plugins/all-in-one-wp-migration/storage has read and write permissions.

    When I try to update other plugins, it prompts me for FTP login credentials which it never did in the past.

    I see all of the files and folders owned by root. Shouldn’t it be owned by a different account, like www-data?

    Looking for advice, who should be the owner of all folders and what are the recommended permissions? I may need to reset everything, and would like to ensure it’s hardened also.

    Thanks!

    • This topic was modified 2 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • I see all of the files and folders owned by root. Shouldn’t it be owned by a different account, like www-data?

    Yes, if www-data is the user the webserver runs as.

    Did you install the site or transfer files to the server with the root account? That would explain the root ownership.

    Changing File Permissions

    Hardening WordPress

    Thread Starter ddzc

    (@ddzc)

    Thanks for your help, I got it fixed.

    First to fix the ftp prompt, I had to add this code in wp-config

    define(‘FS_METHOD’, ‘direct’);

    Then, to fix the permissions, I had to change the owner, I ran:
    sudo chown -R www-data:www-data /var/www/site

    This repaired everything, all is working well again!

    Glad you got it sorted.

    If you have a second to spare, kindly mark your topic as RESOLVED.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issues with WP Permissions’ is closed to new replies.