Last active
March 31, 2020 18:32
-
-
Save emersonmx/e54fed23bca5fbe9da31d3b75a5053d5 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 | |
apt-get update | |
apt-get install -y software-properties-common | |
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php | |
LC_ALL=C.UTF-8 add-apt-repository -y ppa:certbot/certbot | |
apt-get update | |
apt-get install -y git vim curl wget apache2 libapache2-mpm-itk | |
a2enmod expires ext_filter headers proxy proxy_fcgi proxy_http \ | |
request rewrite ssl vhost_alias | |
apt-get install -y php5.6 php5.6-bcmath php5.6-cgi php5.6-cli php5.6-curl \ | |
php5.6-dev php5.6-enchant php5.6-fpm php5.6-gd php5.6-gmp php5.6-intl \ | |
php5.6-json php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-opcache \ | |
php5.6-pgsql php5.6-pspell php5.6-readline php5.6-soap php5.6-sqlite3 \ | |
php5.6-tidy php5.6-xml php5.6-xmlrpc php5.6-xsl php5.6-zip | |
sed -i -e 's/short_open_tag = Off/short_open_tag = On/' \ | |
-e 's/post_max_size = 8M/post_max_size = 32M/' \ | |
-e 's/upload_max_filesize = 2M/upload_max_filesize = 32M/' \ | |
-e 's#;date.timezone =#date.timezone = America/Sao_Paulo#' \ | |
/etc/php/5.6/cli/php.ini | |
sed -i -e 's/short_open_tag = Off/short_open_tag = On/' \ | |
-e 's/post_max_size = 8M/post_max_size = 32M/' \ | |
-e 's/upload_max_filesize = 2M/upload_max_filesize = 32M/' \ | |
-e 's#;date.timezone =#date.timezone = America/Sao_Paulo#' \ | |
/etc/php/5.6/fpm/php.ini | |
a2enconf php5.6-fpm | |
apt-get install -y php7.1 php7.1-bcmath php7.1-cgi php7.1-cli php7.1-curl \ | |
php7.1-dev php7.1-enchant php7.1-fpm php7.1-gd php7.1-gmp php7.1-intl \ | |
php7.1-json php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-opcache \ | |
php7.1-pgsql php7.1-pspell php7.1-readline php7.1-soap php7.1-sqlite3 \ | |
php7.1-tidy php7.1-xml php7.1-xmlrpc php7.1-xsl php7.1-zip | |
sed -i -e 's/short_open_tag = Off/short_open_tag = On/' \ | |
-e 's/post_max_size = 8M/post_max_size = 32M/' \ | |
-e 's/upload_max_filesize = 2M/upload_max_filesize = 32M/' \ | |
-e 's#;date.timezone =#date.timezone = America/Sao_Paulo#' \ | |
/etc/php/7.1/cli/php.ini | |
sed -i -e 's/short_open_tag = Off/short_open_tag = On/' \ | |
-e 's/post_max_size = 8M/post_max_size = 32M/' \ | |
-e 's/upload_max_filesize = 2M/upload_max_filesize = 32M/' \ | |
-e 's#;date.timezone =#date.timezone = America/Sao_Paulo#' \ | |
/etc/php/7.1/fpm/php.ini | |
a2enconf php7.1-fpm | |
apt-get install -y php7.2 php7.2-bcmath php7.2-cgi php7.2-cli php7.2-curl \ | |
php7.2-dev php7.2-enchant php7.2-fpm php7.2-gd php7.2-gmp php7.2-intl \ | |
php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-pgsql \ | |
php7.2-pspell php7.2-readline php7.2-soap php7.2-sqlite3 php7.2-tidy \ | |
php7.2-xml php7.2-xmlrpc php7.2-xsl php7.2-zip | |
sed -i -e 's/short_open_tag = Off/short_open_tag = On/' \ | |
-e 's/post_max_size = 8M/post_max_size = 32M/' \ | |
-e 's/upload_max_filesize = 2M/upload_max_filesize = 32M/' \ | |
-e 's#;date.timezone =#date.timezone = America/Sao_Paulo#' \ | |
/etc/php/7.2/cli/php.ini | |
sed -i -e 's/short_open_tag = Off/short_open_tag = On/' \ | |
-e 's/post_max_size = 8M/post_max_size = 32M/' \ | |
-e 's/upload_max_filesize = 2M/upload_max_filesize = 32M/' \ | |
-e 's#;date.timezone =#date.timezone = America/Sao_Paulo#' \ | |
/etc/php/7.2/fpm/php.ini | |
a2enconf php7.2-fpm | |
apt-get install -y python-certbot-apache | |
curl -sS https://getcomposer.org/installer | php && \ | |
mv composer.phar /usr/local/bin/composer && \ | |
composer self-update | |
sudo useradd -s /bin/bash -U -m dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment