Skip to content

Instantly share code, notes, and snippets.

@c2h2
Forked from AshikNesin/setup-lamp-ubuntu.sh
Last active April 2, 2019 03:55
Show Gist options
  • Save c2h2/f80b65c5c2b1e6f156bb6b7601cb5983 to your computer and use it in GitHub Desktop.
Save c2h2/f80b65c5c2b1e6f156bb6b7601cb5983 to your computer and use it in GitHub Desktop.
Setup LAMP Stack Ubuntu 16
# Install Apache
sudo apt-get update
sudo apt-get install apache2 -y
# Install PHP7
sudo apt-get -y install php7.2 libapache2-mod-php7.2
sudo apt-get install php7.2-cli php7.2-common libapache2-mod-php7.2 php7.2 php7.2-mysql php7.2-fpm -y
# Other packages which might be useful
sudo apt-get install php-mcrypt php7.2-soap php7.2-mbstring php7.2-intl php7.2-xml php7.2-curl php7.2-gd -y
# Install MySQL Server
sudo apt-get install mysql-server -y
# phpMyAdmin
sudo apt-get install phpmyadmin apache2-utils -y
sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo systemctl restart apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment