Skip to content

Instantly share code, notes, and snippets.

@billsuxx
Last active December 12, 2015 14:20
Show Gist options
  • Select an option

  • Save billsuxx/2adcdb1b6449ced779d8 to your computer and use it in GitHub Desktop.

Select an option

Save billsuxx/2adcdb1b6449ced779d8 to your computer and use it in GitHub Desktop.
mac
# stop apache
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
brew install \
mc \
git \
homebrew/php/php55-opcache \
php55-apcu \
php55-memcache \
php55-memcached \
nodejs \
nginx \
ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
mkdir -p /usr/local/etc/nginx/logs
mkdir -p /usr/local/etc/nginx/sites-available
mkdir -p /usr/local/etc/nginx/sites-enabled
mkdir -p /usr/local/etc/nginx/conf.d
sudo mkdir -p /var/www
sudo chown :staff /var/www
sudo chmod 775 /var/www
ln -sfv /usr/local/opt/php55/homebrew.mxcl.php55.plist ~/Library/LaunchAgents/
curl -L https://gist.github.com/frdmn/7853158/raw/php-fpm -o /usr/local/etc/nginx/conf.d/php-fpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment