Skip to content

Instantly share code, notes, and snippets.

@mayconvm
Forked from anonymous/Install phpbrew
Last active September 24, 2015 19:16
Show Gist options
  • Save mayconvm/85a5dbc64712408cf697 to your computer and use it in GitHub Desktop.
Save mayconvm/85a5dbc64712408cf697 to your computer and use it in GitHub Desktop.
#!/usr/bash
phpbrew lookup-prefix homebrew
sudo apt-get install apache2-dev
sudo apt-get install apache2
sudo chmod -R oga+rw /usr/lib/apache2/modules
source /etc/apache2/envvars
sudo apt-get install php5-dev
sudo apt-get install libmcrypt-dev
sudo apt-get install libicu-dev
sudo apt-get install php5-intl
sudo apt-get install libbz2-dev bzip2 libxml2-dev
sudo apt-get install libreadline-dev libxslt-dev
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
sudo mv phpbrew /usr/bin/phpbrew
phpbrew init
echo 'source ~/.phpbrew/bashrc' >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment