Support » Fixing WordPress » Background updates are not working as expected macOS host

  • Resolved ngreeves

    (@ngreeves)


    I am setting up a new WP server hosted on macOS 10.14.5. I am having trouble with the required permissions on some of the WP files.
    Site Health plugin has revealed the following issues.

    My question is How do I make these files writable by WordPress? I do not have WordPress as a user on the Mac.

    Error Some files are not writable by WordPress:
    xmlrpc.php
    wp-blog-header.php
    readme.html
    wp-signup.php
    index.php
    wp-cron.php
    wp-config-sample.php
    wp-login.php
    wp-settings.php
    license.txt
    wp-mail.php
    wp-links-opml.php
    wp-load.php
    wp-includes/class-wp-user-query.php
    wp-includes/l10n.php
    wp-includes/date.php
    wp-includes/images/blank.gif
    wp-includes/images/down_arrow.gif
    wp-includes/images/spinner.gif
    wp-includes/images/media/interactive.png

    I have observed that other have seen similar problems but none of them were specific to macOS.

    Thanks for any suggestions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    It seems file and folder permission problem. you read this guide:
    https://www.chriswrites.com/how-to-change-file-permissions-using-the-terminal/
    Thanks
    Sujan

    Thread Starter ngreeves

    (@ngreeves)

    Hi,
    Thanks for your reply. I know how to change file permissions and ownership but I don’t know which user should own these files and what the permissions should be.

    I only have my own username (the WordPress installation is in Sites), Staff as a group and Everyone to choose from.

    I need to make these files “writable by WordPress” apparently.

    Further suggestions would be welcome.

    Nick

    Thread Starter ngreeves

    (@ngreeves)

    I found a solution which worked for me. https://slickmedia.co.uk/blog/glenns-blog/fix-mamp-pro-issues-updating-uploading-wordpress-localhost/

    I added _www as a read/write owner on wp-content.

    1.As before we follow Step 1 above to remove the need for FTP when updating plugins, themes etc
    2. Select the folder that you need to allow www access to. For example for uploading (as per this requiremrnt) select the ‘wp-content’ folder
    3. On you mac hit ‘cmd + i’ (Command I) which brings up the file info and ‘Sharing & Permissions’ and here you will see the users that can access the folder. Given that you have a permissions issue with uploads what you probably won’t see is the Owner ‘_www’ as used by MAMP
    4. Unlock the padlock (bottom right) and authenticate if necessary and click the plus ‘+” button in the bottom left corner whilst also holding down Option (‘alt’). This will show you the system users and groups (rather than just the standard user with just the + button click)
    5. Scroll down towards the bottom and select ‘World Wide Web Server’. There are 2 and the are the Owner and Group for www. Select them both and click ‘Select’. They will now appear in your folder permissions.
    6. Set the Owner _www (one head) to ‘Read & Write’ and set the Group _www (2 heads) to ‘Read Only’ as per the below:

    You will now have sufficient Apache www user read/write access to upload to your WordPress site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Background updates are not working as expected macOS host’ is closed to new replies.