Title: coreyb's Replies | WordPress.org

---

# coreyb

  [  ](https://wordpress.org/support/users/coreyb/)

 *   [Profile](https://wordpress.org/support/users/coreyb/)
 *   [Topics Started](https://wordpress.org/support/users/coreyb/topics/)
 *   [Replies Created](https://wordpress.org/support/users/coreyb/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/coreyb/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/coreyb/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/coreyb/engagements/)
 *   [Favorites](https://wordpress.org/support/users/coreyb/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Plugin and theme upgrades on Mac Server](https://wordpress.org/support/topic/plugin-and-theme-upgrades-on-mac-server/)
 *  Thread Starter [coreyb](https://wordpress.org/support/users/coreyb/)
 * (@coreyb)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-and-theme-upgrades-on-mac-server/#post-1801003)
 * Thank you ipstenu!
 * After some research I found that if one sets up the “sharing points” properly
   with users and group permissions in the Workgroup Manager, Mac Server puts the
   ftp user in the “staff” group without any indication.
 * So, where one keeps their vhosts or the wordpress directory the ownership will
   be set to either `root:_www`, `_www:_www` or `username:_www` it needs to be changed
   to `_www:staff`
 * eg. `# chown -R _www:staff wordpress`
 * Thanks for everyone’s help
 * -C
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Plugin and theme upgrades on Mac Server](https://wordpress.org/support/topic/plugin-and-theme-upgrades-on-mac-server/)
 *  Thread Starter [coreyb](https://wordpress.org/support/users/coreyb/)
 * (@coreyb)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-and-theme-upgrades-on-mac-server/#post-1801001)
 * Okay, so I thought I would update and see if anyone has a workaround that I have
   not thought of.
 * I found that if one adds the `define('FS_METHOD', 'ftpsockets');` instead of `
   define('FS_METHOD','direct');` and the FTP_USER is set to “root” the system works.
   However I don’t like using my root user to do things like this.
 * Is there a way to get wordpress to use the vhost directory user’s user to move
   the files into place? They get downloaded okay it is just in the transfer to 
   the plugins directory that the problem arises.
 * -C
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unable to add or update themes/plugins, WP 2.9.2 on Mac OS X Server](https://wordpress.org/support/topic/unable-to-add-or-update-themesplugins-wp-292-on-mac-os-x-server/)
 *  [coreyb](https://wordpress.org/support/users/coreyb/)
 * (@coreyb)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/unable-to-add-or-update-themesplugins-wp-292-on-mac-os-x-server/#post-1462958)
 * Thanks for the advice sacredpath. 🙂 I have rechecked all the permissions and
   everything seems to be set and working correctly.
 * I did add an error check on the system, and contrary to my thoughts, it seems
   the hiccup is happening at or close to the mkdir function. 🙁
 * I am having a hard time tracing it past line 238 in wp-admin/includes/class-wp-
   upgrader.php. It may also be failing at the point of transfer, because the ownership
   mkdir is using may be different than the FTP user that was used to fetch the 
   files…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unable to add or update themes/plugins, WP 2.9.2 on Mac OS X Server](https://wordpress.org/support/topic/unable-to-add-or-update-themesplugins-wp-292-on-mac-os-x-server/)
 *  [coreyb](https://wordpress.org/support/users/coreyb/)
 * (@coreyb)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/unable-to-add-or-update-themesplugins-wp-292-on-mac-os-x-server/#post-1462955)
 * I am certain that this is not an ownership (or even a permissions) problem, as
   evidenced by the fact that blog admins are able to upload images to the other
   directories within wp-content (using WP admin) as well as auto-upgrade the installation
   of WP with the exact same system set ownership/permissions without trouble.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unable to add or update themes/plugins, WP 2.9.2 on Mac OS X Server](https://wordpress.org/support/topic/unable-to-add-or-update-themesplugins-wp-292-on-mac-os-x-server/)
 *  [coreyb](https://wordpress.org/support/users/coreyb/)
 * (@coreyb)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/unable-to-add-or-update-themesplugins-wp-292-on-mac-os-x-server/#post-1462952)
 * Well, I am having the exact same issue. I switched our server environment to 
   Mac about 6 months ago and have been having this problem since. Before I was 
   on CentOS and it seems like it may have been happening on that OS as well, but
   I cannot remember for sure…
 * Here is an example of the standard error message for indexing and tag purposes.
   😉
 *     ```
       Downloading install package from http://wordpress.org/extend/themes/download/some-theme.zip…
       Unpacking the package…
       Installing the theme…
       Could not create directory. /Path-to-blog/wp-content/themes/some-theme/
       Theme install failed.
       ```
   
 * It also happens on plugin updates and installs, but strangely not the full WP
   version updates.
 * Anyway, I have checked the following with no luck. I am running PHP 5.3.1 on 
   Mac OSX 10.6.3 Server. Yes, safe mode is OFF and permissions are set right (I
   have tried 775 and 777 on everything inside and including the wp-content directory.)
   The ownership should be correct set to root:_www, but just for kicks and giggles,
   I tried it with [username]:_www. The directories do have extended attributes (
   which is standard on Mac OSX Server since 10.5)
 * The full apache path I am using is:
    `/Library/Webserver/vhosts/blogname/wp-content`
   phpinfo() indicates that the full server path, according to apache, is `/Library/
   Webserver/Documents` The ftp path is: `/blogname/wp-content` However, the FTP
   path is what WP is using to direct any uploads.
 * Images seem to be uploading just fine, and even the temp files are showing up
   in the upgrade directory the way they should. Also, the system is removing the
   files it requires removed when doing an update, but the problem seems to lie 
   in moving and/or creating a directory from within the WP admin. I believe the
   problem is the “mv” function (wherever that is in the code) that WP uses to place
   the files created in the /wp-content/upgrade/somefile.tmp/somefile directory 
   to their final location, not the mkdir function that is being focused on throughout
   the Internet.
 * Anyway, I am hoping that someone smarter than I can weigh in on this. I am happy
   to experiment to figure it out and report, just let me know.

Viewing 5 replies - 1 through 5 (of 5 total)