- 
Edit the Apache2 plist file with whatever editor you like (example using vim):
$ sudo vim /System/Library/LaunchDaemons/org.apache.httpd.plist - 
Add the following to the the plist file:
<key>EnvironmentVariables</key> <dict> <key>PATH</key> <string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string> </dict> - 
Restart Apache2
$ sudo /usr/sbin/apachectl stop $ sudo /usr/sbin/apachectl start 
        
          
            Forked from srayhunter/configure-apache-path-environment-variable-on-macosx.md
          
        
    
          Last active
          August 29, 2015 14:25 
        
      - 
      
 - 
        
Save bdone/5944dd3c3d3356c0babe to your computer and use it in GitHub Desktop.  
    Configure Apache on Mac OSX with Environment Variables
  
        
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment