Created
April 4, 2018 09:49
-
-
Save bspavel/837b5d7de6d0c0c01a67ad7aae19367d to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
#https://ayesh.me/Ubuntu-PHP-7.2 | |
#http://linux-notes.org/ustanovka-mysql-na-debian-ubuntu-linux-mint/ | |
#https://www.digitalocean.com/community/tutorials/apache-ubuntu-14-04-lts-ru | |
#https://stackoverflow.com/questions/3940909/configure-apache-to-listen-on-port-other-than-80 | |
#https://www.tecmint.com/change-default-mysql-mariadb-port-in-linux/ | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install -y git vim mc | |
sudo apt-get install -y mysql-server mysql-client | |
sudo apt-get install -y apache2 | |
sudo service mysql start | |
sudo service apache2 start | |
#install php7.2 | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt update | |
sudo apt-get install -y apt-transport-https lsb-release ca-certificates | |
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' | |
sudo apt-get update | |
sudo apt-get install -y php7.2 php7.2-common php7.2-cli php7.2-fpm libapache2-mod-php7.2 | |
sudo apt-get install -y php7.2-xml php7.2-zip php7.2-soap php7.2-mysql | |
sudo apt-get install -y php7.2-curl php7.2-gd php7.2-intl php7.2-mbstring php7.2-xmlrpc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment