From 446fc80fc45131fd27dc1a273ec78b99b3adaa5b Mon Sep 17 00:00:00 2001 From: tbergervoet Date: Wed, 3 Oct 2018 13:34:08 +0200 Subject: [PATCH] Update 'Apache-Installer.sh' --- Apache-Installer.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Apache-Installer.sh b/Apache-Installer.sh index 0fd0f0e..0d6a75f 100644 --- a/Apache-Installer.sh +++ b/Apache-Installer.sh @@ -74,6 +74,8 @@ sed -i 's/;opcache.max_accelerated_files=10000/opcache.max_accelerated_files=500 sed -i 's/;opcache.max_wasted_percentage=5/opcache.max_wasted_percentage=5/g' /etc/php/7.2/apache2/php.ini sed -i 's/;opcache.revalidate_freq=2/opcache.revalidate_freq=0/g' /etc/php/7.2/apache2/php.ini sed -i 's/; max_input_vars = 1000/max_input_vars = 10000/g' /etc/php/7.2/apache2/php.ini +sed -i 's/upload_max_filesize = 2/upload_max_filesize = 128/g' /etc/php/7.2/apache2/php.ini +sed -i 's/post_max_size = 8/post_max_size = 64/g' /etc/php/7.2/apache2/php.ini ##----------------## # PHPMyAdmin # @@ -116,6 +118,7 @@ if [ $netdata = 1 ] apt install -y netdata sed -i 's/SEND_EMAIL="YES"/SEND_EMAIL="NO"/g' /etc/netdata/health_alarm_notify.conf ufw allow 19999/tcp + sed -i 's/#netdata here/RewriteEngine On\n ProxyRequests Off\n ProxyReserveHost On\n \n Require all granted\n <\/Proxy>\n ProxyPass "\/netdata\/" "http:\/\/localhost:19999\/" connectiontimeout=5 timeout=30 keepalive=on\n ProxyPassReverse "\/netdata\/" "http:\/\/localhost:19999\/"\n #RewriteRule ^\/netdata$ http:\/\/%{HTTP_HOST}\/netdata\/ [L,R=301] #HTTP\n RewriteRule ^\/netdata$ https:\/\/%{HTTP_HOST}\/netdata\/ [L,R=301] #HTTPS/g' /etc/apache2/sites-available/"$domain.conf" # systemctl stop netdata # systemctl disable netdata fi @@ -151,7 +154,6 @@ fi # Certbot # ##-------------## -#add-apt-repository -y ppa:certbot/certbot apt install -y python-certbot-apache #certbot --apache -d $domain -d www.$domain #sed -i 's/ssl ipv6only/ssl http2 ipv6only/g' /etc/apache2/sites-available/"$domain"