Forked from shawnrgrimes/Localhost Wordpress Permissions
          
        
    
          Created
          October 22, 2019 13:13 
        
      - 
      
- 
        Save theloveworkshop/909cec51678f4f7c6dfb563408a3ac05 to your computer and use it in GitHub Desktop. 
    Enable updating WordPress in a local environment on OS X (Updates, Themes and Plugins)
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | On Mac OS X (Leopard+), the Apache HTTP Server runs under the user account, _www which belongs to the group _www. To allow WordPress to configure wp-config.php during installation, update files during upgrades, and update the .htaccess file for pretty permalinks, give the server write permission on the files. | |
| One way to do this is to change the owner of the wordpress directory and its contents to _www. Keep the group as staff, a group to which your user account belongs and give write permissions to the group. | |
| $ cd /<wherever>/Sites/<thesite> | |
| $ sudo chown -R _www wordpress | |
| $ sudo chmod -R g+w wordpress | |
| This way, the WordPress directories have a permission level of 775 and files have a permission level of 664. No file nor directory is world-writeable. | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment