Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

New Dev Environment Setup (by Joe)

joehoyle edited this page · 9 revisions

This will set you up with the following:

  • PHP-FPM
  • Nginx
  • MySQL
  • Memcached
  • WP-CLI

Install Brew

sudo /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
echo 'export PATH="$PATH:/usr/local/sbin"' >> ~/.bashrc ; source ~/.bashrc

(See https://github.com/mxcl/homebrew/wiki/installation for changes)

Install Xcode command line tools

Get these from apple dev center or install Xcode

Install Nginx

brew install nginx  
curl https://raw.github.com/gist/3039416/271cb98a5b0b5c1763e036f238c7822a22412957/php.conf > /usr/local/etc/nginx/php.conf

Edit your nginx conf here: /usr/local/etc/nginx/nginx.conf

Install MySQL

brew install mysql
unset TEMDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
mysql.server start
/usr/local/Cellar/mysql/5.5.25/bin/mysql_secure_installation

Install PHP

brew tap josegonzalez/homebrew-php
brew install php53 --with-fpm --with-mysql

Install Memcached

brew install memcached
brew install php53-memcache

Install GIT

brew install git

Install WP-CLI

git clone --recursive git://github.com/wp-cli/wp-cli.git ~/bin/wp-cli
cd ~/bin/cli
sudo utils/dev-build
Something went wrong with that request. Please try again.