Configure Apache Environment Variable on Mac OS 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):