Skip to content

Instantly share code, notes, and snippets.

@gravitano
Forked from JeffreyWay/install.sh
Last active August 29, 2015 13:57
Show Gist options
  • Save gravitano/9755074 to your computer and use it in GitHub Desktop.
Save gravitano/9755074 to your computer and use it in GitHub Desktop.
LAMP on Ubuntu 14.04
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 ppa:ondrej/php5-5.6
sudo add-apt-repository ppa:git-core/ppa
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-json php5-memcached memcached
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
# Install Postgresql
sudo apt-get install postgresql postgresql-contrib php5-pgsql
# Restart Apache
sudo service apache2 restart
# Install Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment