Last active
July 14, 2018 01:02
-
-
Save amb101/bccdfed14948959ed64d8b27efbcfae9 to your computer and use it in GitHub Desktop.
LAMP Stack
This file contains hidden or 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
## Update Packages | |
apt-get update | |
## Upgrade Packages | |
apt-get upgrade | |
## Git | |
apt-get install -y git | |
## Apache | |
apt-get install -y apache2 | |
## Enable Apache Mods | |
a2enmod rewrite | |
##Add Onrej PPA Repo | |
apt-add-repository ppa:ondrej/php | |
apt-get update | |
## Install PHP | |
apt-get install -y php7.2 | |
## PHP Apache Mod | |
apt-get install -y libapache2-mod-php7.2 | |
## Restart Apache | |
service apache2 restart | |
## PHP Mods | |
apt-get install -y php7.2-common | |
apt-get install -y php7.2-mcrypt | |
apt-get install -y php7.2-zip | |
## Set MySQL Pass | |
debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
## Install MySQL | |
apt-get install -y mysql-server | |
## PHP-MYSQL lib | |
apt-get install -y php7.2-mysql | |
## Restart Apache | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment