Created
August 12, 2012 11:53
-
-
Save jsifalda/3331543 to your computer and use it in GitHub Desktop.
Installation nginx, PHP-FPM and MySQL on OSX Lion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First, you must install Xcode with plugin Command line tools, which you find in the Preferences -> Downloads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=/usr/local/sbin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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