diff --git a/Apache-Installer.sh b/Apache-Installer.sh index f3a01fe..0fd0f0e 100644 --- a/Apache-Installer.sh +++ b/Apache-Installer.sh @@ -20,7 +20,7 @@ chmod -R 755 /var/www # Apache + MySQL # ##--------------------## -apt install -y apache2 mysql-server-5.7 +apt install -y apache2 mysql-server-5.7 libapache2-mod-proxy-html # mysql_secure_installation automated mysqladmin -u root password "$password" mysql -u root -p"$password" -e "UPDATE mysql.user SET Password=PASSWORD('$password') WHERE User='root'" @@ -57,6 +57,9 @@ cat < /etc/apache2/sites-available/"$domain.conf" EOF a2ensite $domain a2dissite 000-default +a2enmod proxy +a2enmod proxy_http +a2enmod rewrite ##---------## # PHP #