OdinsHat
6/25/2014 - 4:25 PM

Quick instructions/script okn installing LEMP stack via homebrew

Quick instructions/script okn installing LEMP stack via homebrew

#!/bin/sh
### Install LEMP Stack on OSX Mavericks

# Make sure xcode CLI tools installed
xcode-select --install

# Install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

# Install nginx
brew install nginx
cd /usr/local/etc/nginx
mkdir conf.d

# Install MySQL
brew install mysql

# Install PHP 5.5
brew tap josegonzalez/php
brew tap homebrew/dupes
brew install php55 --with-fpm --without-apache --with-debug --with-mysql

pear install PHP_CodeSniffer
ln -s /usr/local/Cellar/php55/5.5.13/bin/phpcs /usr/local/bin/phpcs