-
Restart the computer in Recovery mode (hold down Cmd-R). Open Terminal and run:
$ csrutil disable
-
Restart the computer normally.
-
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>HOME</key> <string>/Library/WebServer/Documents</string> </dict>
-
Restart the computer again in Recovery mode. Open Terminal and run:
$ csrutil enable
-
Restart the computer normally.
Forked from srayhunter/configure-apache-path-environment-variable-on-macosx.md
Last active
January 4, 2019 12:01
-
-
Save starlightsys/938f251b51488cb0391ae8f6e2140c57 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