Created
January 17, 2017 13:17
-
-
Save jrodriguez-ifuelinteractive/a3e6a6d7442ce245d026b3ffca46c4f2 to your computer and use it in GitHub Desktop.
Ubuntu 1.14.x Lamp Stack Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get -qq update | |
sudo apt-get install -y python-software-properties | |
sudo apt-get install -y build-essential | |
sudo apt-get install -y zip | |
sudo apt-get install -y apache2 | |
sudo apt-get install -y curl | |
#MySQL | |
sudo apt-get update | |
export DEBIAN_FRONTEND=noninteractive | |
sudo -E apt-get -q -y install mysql-server | |
#PHP | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get -qq update | |
sudo apt-get install -y php5.6 php5.6-cli | |
sudo apt-get install -y php5.6-mysql | |
sudo apt-get install -y php5.6-simplexml | |
sudo apt-get install -y php5.6-mcrypt | |
sudo apt-get install -y php5.6-gd | |
sudo apt-get install -y php5.6-curl | |
sudo apt-get install -y php5.6-soap | |
#Apache Config | |
sudo rm /etc/apache2/sites-enabled/000-default.conf | |
sudo ln -sf /vagrant/scripts/apache/virtual_host.conf /etc/apache2/sites-enabled/virtual_host.conf | |
sudo rm /etc/apache2/envvars | |
sudo ln -sf /vagrant/scripts/apache/envvars /etc/apache2/envvars | |
sudo a2enmod rewrite | |
sudo service apache2 restart | |
#MongoDB | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 | |
echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list | |
sudo apt-get update | |
sudo apt-get install -y mongodb-org | |
sudo service mongod restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment