Skip to content

Instantly share code, notes, and snippets.

@OdinsHat
Created June 25, 2014 16:25
Show Gist options
  • Save OdinsHat/740c61965e662937482a to your computer and use it in GitHub Desktop.
Save OdinsHat/740c61965e662937482a to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment