- Download xcode
- When download is finished, open Xcode.app in your /Applications folder and agree to the licence
- Install the Xcode command line tools:
xcode-select --install
- Download Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - Check for any conflicts or problems
brew doctor
brew tap homebrew/dupesbrew tap homebrew/phpbrew install --without-apache --with-fpm --with-mysql php56
- Update the $PATH environment variable of your shell profile. Bash Shell
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile && . ~/.bash_profile
mkdir -p ~/Library/LaunchAgentsln -sfv /usr/local/opt/php56/homebrew.mxcl.php56.plist ~/Library/LaunchAgents/launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist- Check if PHP-FPM is running
lsof -Pni4 | grep LISTEN | grep php
brew install mysqlln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgentslaunchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist- Test connection
mysql -uroot
brew install autoconfecho 'PHP_AUTOCONF="'$(which autoconf)'"' >> ~/.bash_profile && . ~/.bash_profilebrew install phpmyadmin
brew install nginx
sudo cp -v /usr/local/opt/nginx/*.plist /Library/LaunchDaemons/sudo chown root:wheel /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
mkdir -p /usr/local/etc/nginx/logsmkdir -p /usr/local/etc/nginx/sites-availablemkdir -p /usr/local/etc/nginx/sites-enabledmkdir -p /usr/local/etc/nginx/conf.dmkdir -p /usr/local/etc/nginx/sslsudo mkdir -p /var/wwwsudo chown :staff /var/wwwsudo chmod 775 /var/www
brew install composer
brew install memcachedbrew install php56-memcachedbrew install php56-memcache
gem install capifony
php -i | grep php.ini- Find to
date.timezone = "America/Sao_Paulo"
php -i | grep php.inimemory_limit = 1G
brew install npm
sudo gem install compass