Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

WordPress Media Library and Updates Not Working in OSX

July 7, 2011 2 Comments

When creating a WordPress set up on OSX using the regular personal file sharing framework that OS X provides,  the files are shared from the ~/Username/Sites directory. On an initial set up, the ownership of these files is set to the current logged in user whereas WordPress would prefer a different owner of the files.

WordPress will function out of the box ok until you need to upgrade WordPress itself or plugins at which point it  will complain about server connections, and when you try and add new images via the media library it will error on permissions and fail to upload.

wordpress-upgrade-permissions-error

wordpress-upgrade-permissions-error

 

wordpress-media-library-permissions-error

wordpress-media-library-permissions-error

The user permissions and ownership need to be changed, setting the commands below to the directory that contains the WordPress installation will fix both issues, the first command changes the ownership recursively to _www and the second one gives write permssions so WordPress and you can changes files in the directories:

sudo chown -R  _www ~/Sites/wordpressinstalldirectory
sudo chmod -R g+w ~/Sites/wordpressinstalldirectory

Cats: macOS, Tech, WordPress Tags: chown, media, OSX, owner, permissions, upgrade

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Copyright © 2023· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2023 · gee on Genesis Framework · WordPress · Log in