Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2013 20:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save angrycoffeemonster/5944826 to your computer and use it in GitHub Desktop.
# First install requirements for BREW
# Requirements
# - An Intel CPU 2
# - OS X 10.5 or higher
# - Command Line Tools for Xcode (
# or Xcode with X11 (
# - Java Developer Update (
# Install BREW
/usr/bin/ruby -e "$(/usr/bin/curl -fksSL"
# Install nginx
brew install nginx
# Create a link to autostart nginx when the system starts
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/nginx/1.0.10/org.nginx.nginx.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/org.nginx.nginx.plist
# Cancel the self-starting
launchctl unload -w ~/Library/LaunchAgents/org.nginx.nginx.plist
# Install MySQL
brew install mysql
# Configuration start MySQL
# * if this is your first install:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mysql/5.5.19/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
# * if this is an upgrade and you already have the homebrew.mxcl.mysql.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
cp /usr/local/Cellar/mysql/5.5.19/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
# m4 macros were installed to "share/aclocal".
# Homebrew does not append "/usr/local/share/aclocal"
# to "/usr/share/aclocal/dirlist". If an autoconf script you use
# requires these m4 macros, you'll need to add this path manually.
# Install PHP
brew install --without-apache --with-intl --with-fpm --with-mysql
# Configuration
mkdir /usr/local/Cellar/php/5.3.10/var/log
cp /usr/local/Cellar/php/5.3.10/etc/php-fpm.conf.default /usr/local/Cellar/php/5.3.10/etc/php-fpm.conf
mate /usr/local/Cellar/php/5.3.10/etc/php-fpm.conf
chmod -R ug+w /usr/local/Cellar/php/5.3.10/lib/php
pear config-set php_ini /usr/local/etc/php.ini
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "" >
<plist version='1.0'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment