UNMP (Unix Nginx MySql PHP53, PHP-FPM)

  • brew tap mirocow/homebrew-nginx
  • brew tap homebrew/dupes
  • export PHP_AUTOCONF="/usr/local/bin/autoconf"
  • export PHP_AUTOHEADER="/usr/local/bin/autoheader"
  • sudo chown -R me:admin /usr/local
  • brew install php53 --with-mysql --with-fpm php53-zenddebugger php53-memcache php53-gearman php53-apc php53-mcrypt
  • brew install nginx-full
  • 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