Skip to content

Instantly share code, notes, and snippets.

@rodleviton
Forked from JeffreyWay/install.sh
Last active January 20, 2018 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodleviton/9887820 to your computer and use it in GitHub Desktop.
Save rodleviton/9887820 to your computer and use it in GitHub Desktop.
cd /vagrant
mkdir html
sudo apt-get update
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get install -y vim curl python-software-properties
sudo add-apt-repository -y ppa:ondrej/php5
sudo apt-get update
sudo apt-get install -y php5 apache2 libapache2-mod-php5 php5-curl php5-gd php5-mcrypt php5-readline mysql-server-5.5 php5-mysql git-core php5-xdebug
cat << EOF | sudo tee -a /etc/php5/mods-available/xdebug.ini
xdebug.scream=1
xdebug.cli_color=1
xdebug.show_local_vars=1
EOF
sudo a2enmod rewrite
sudo sed -i "s/error_reporting = .*/error_reporting = E_ALL/" /etc/php5/apache2/php.ini
sudo sed -i "s/display_errors = .*/display_errors = On/" /etc/php5/apache2/php.ini
sudo sed -i "s/disable_functions = .*/disable_functions = /" /etc/php5/cli/php.ini
sudo service apache2 restart
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
@AbsoluteBreeze
Copy link

Thanks for this - To get this working on my parallels/vagrant Ubuntu 14.04 vm - I had to perform this before line 7:

sudo apt-get install software-properties-common

This is because add-apt-repository command is missing in Ubuntu 14.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment