Last active
November 19, 2017 09:48
-
-
Save Ambalus/4625b93f16e3c59bcea79e1f0baec10b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/env bash | |
| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| sudo apt-get install mysql-server | |
| mysql_secure_installation | |
| # sudo apt-get install -y python-software-properties | |
| # sudo add-apt-repository -y ppa:ondrej/php | |
| # sudo apt-get update -y | |
| apt-get install php7.1-cli php7.1-cgi php7.1-fpm php7.1-common php7.1-curl php7.1-gd \ | |
| php7.1-gd php7.1-json php7.1-mysql php7.1-odbc php7.1-ldap php7.1-soap php7.1-xml php7.1-zip php7.1-xsl php7.1-mcrypt | |
| sudo apt-get install phpmyadmin | |
| #sudo apt-get install nginx htop mc | |
| sudo apt-get install apache2 libapache2-mod-php7.1 | |
| # sudo nano /etc/php/7.1/fpm/php.ini | |
| # cgi.fix_pathinfo=0 | |
| sudo sed -i "s/;cgi.fix_pathinfo=.*/cgi.fix_pathinfo=0/" /etc/php/7.1/fpm/php.ini | |
| # sudo nano /etc/php/7.1/fpm/pool.d/www.conf | |
| sudo sed -i "s/listen = .*/listen = 127.0.0.1:9000/" /etc/php/7.1/fpm/pool.d/www.conf | |
| curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment