Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.