Skip to content

Instantly share code, notes, and snippets.

@tajulasri
Last active March 25, 2020 15:35
Show Gist options
  • Save tajulasri/058af6750817f4fd61aa295e44ecca98 to your computer and use it in GitHub Desktop.
Save tajulasri/058af6750817f4fd61aa295e44ecca98 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt-get install -y python-software-properties
sudo apt-get install -y software-properties-common
sudo apt-get install -y nginx
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
apt-cache pkgnames | grep php7.2
sudo apt-get install -y php7.2-curl php7.2 php7.2-cli php7.2-common php7.2-mbstring php7.2-gd php7.2-intl php7.2-xml php7.2-mysql php7.2-zip php7.2-pdo-pgsql php7.2-dom php7.2-bcmath
sudo apt-get install -y php7.2-fpm
sudo wget https://getcomposer.org/installer && php installer && chmod +x composer.phar
sudo mv composer.phar /usr/bin/composer
composer
sudo add-apt-repository -y ppa:certbot/certbot
sudo apt-get update
sudo apt-get install -y python-certbot-nginx
sudo apt-get install -y mysql-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment