Skip to content

Instantly share code, notes, and snippets.

@ksomemo
Created November 6, 2014 01:50
Show Gist options
  • Save ksomemo/3e8061e1b11d72433c99 to your computer and use it in GitHub Desktop.
Save ksomemo/3e8061e1b11d72433c99 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd ~/bin
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
phpbrew init
source ~/.phpbrew/bashrc # and add this command to ~/.XXshrc
phpbrew lookup-prefix homebrew
brew install postgresql
phpbrew install 5.3.29 \
+default +dbs +debug \
+apxs2=/usr/local/Cellar/httpd22/2.2.29/bin/apxs
phpbrew switch 5.3.29
# phpbrew off # when using system php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment