Skip to content

Instantly share code, notes, and snippets.

@jsifalda
Created August 12, 2012 11:53
Show Gist options
  • Save jsifalda/3331543 to your computer and use it in GitHub Desktop.
Save jsifalda/3331543 to your computer and use it in GitHub Desktop.
Installation nginx, PHP-FPM and MySQL on OSX Lion
# First, you must install Xcode with plugin Command line tools, which you find in the Preferences -> Downloads
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
brew install mysql
unset TMPDIR
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.20/bin/mysql_secure_installation
curl -O https://raw.github.com/ampt/homebrew-php/master/Formula/php53.rb
mv php53.rb `brew --prefix`/Library/Formula
brew install php53 --with-mysql --with-fpm
brew install nginx
export PATH=/usr/local/sbin:$PATH
curl -O https://raw.github.com/ampt/homebrew-php/master/Formula/php53.rb
mv php53.rb `brew --prefix`/Library/Formula
brew install php53 --with-mysql --with-fpm
brew install nginx
curl -O https://raw.github.com/ampt/homebrew-php/master/Formula/php53.rb
mv php53.rb `brew --prefix`/Library/Formula
brew install php53 --with-mysql --with-fpm
brew install nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment