Skip to content

Instantly share code, notes, and snippets.

@ercanertan
Last active October 16, 2017 12:43
Show Gist options
  • Save ercanertan/4f3709aa2995cc569ddb451d10b645a2 to your computer and use it in GitHub Desktop.
Save ercanertan/4f3709aa2995cc569ddb451d10b645a2 to your computer and use it in GitHub Desktop.
Mac OSX Apache Setup
Find username
$ id
Go /etc/apache2/users/ and edit or create username.conf like below
<Directory "/Users/username/Sites/">
AddLanguage en .en
AddHandler perl-script .pl
PerlHandler ModPerl::Registry
Options Indexes MultiViews FollowSymLinks ExecCGI
AllowOverride None
Require host localhost
</Directory>
$ sudo apachectl restart
#############################
Install Mcrypt
#############################
$ brew install php71-mcrypt
Add this line to /private/etc/php.ini (if not exist copy from php.ini.default ):
# PHP 7 (check your version mcrypt)
extension="/usr/local/Cellar/php71-mcrypt/7.1.10_16/mcrypt.so"
$ sudo apachectl restart
Upgrade Mcrypt using Homebrew
brew reinstall -fs php71-mcrypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment