Skip to content

Instantly share code, notes, and snippets.

@SumonMSelim
Last active December 12, 2019 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SumonMSelim/8b25e8f6cb8378ec244f3f0780bb17de to your computer and use it in GitHub Desktop.
Save SumonMSelim/8b25e8f6cb8378ec244f3f0780bb17de to your computer and use it in GitHub Desktop.
Install PHP 7, MySQL and nginx
# install necessary softwares & update dependencies
sudo apt-get update
sudo apt-get install -y software-properties-common curl git
sudo apt-get dist-upgrade
# install php 7.2
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2
# install more php modules and extensions
sudo apt-get install php7.2-curl php7.2-gd php7.2-imap php7.2-intl php7.2-mbstring php7.2-mcrypt php7.2-mysql php7.2-xml php7.2-zip
sudo apt-get install php7.2-fpm
# check you php version
php -v
# install latest nginx version
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update
sudo apt-get install nginx
# check nginx version
nginx -v
# install mysql
sudo apt-get install mysql-server
# check mysql version
mysql --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment