Install PHP 7, MySQL and nginx
This file contains 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
# 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