Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created January 6, 2013 13:00
Show Gist options
  • Save amitaibu/4466978 to your computer and use it in GitHub Desktop.
Save amitaibu/4466978 to your computer and use it in GitHub Desktop.
Travis-CI install php-cgi
- sudo apt-get install apache2 php5-cgi
- sudo a2enmod actions
- sudo a2enmod rewrite
- echo "export PATH=/home/vagrant/.phpenv/bin:$PATH" | sudo tee -a /etc/apache2/envvars > /dev/null
- echo "$(curl -fsSL https://gist.github.com/raw/7d3f066f33816cc1cdf2/c1f827dc4ad5388e5e84bae813292dda45d1bc1e/gistfile1.txt)" | sudo tee /etc/apache2/conf.d/phpconfig > /dev/null
- echo "$(curl -fsSL https://gist.github.com/raw/ddd37eb98c65b78a54c5/ce7d03a39a9730908b4ea0481c27fe518b58bf6c/gistfile1.txt)" | sed -e "s,PATH,/home/travis/drupal,g" | sudo tee /etc/apache2/sites-available/default > /dev/null
- echo "$(curl -fsSL https://gist.github.com/raw/4466898/c1e72e82c9af18c7bb54d86cb425aa1b3a55f59f/gistfile1.txt)" | sudo tee /etc/apache2/conf.d/php-cgi.conf > /dev/null
- sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment