Update 'Apache-Installer.sh'

This commit is contained in:
bprieshof
2018-10-03 13:18:12 +02:00
parent 94f1d9af29
commit 47863937e3

View File

@@ -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 <<EOF > /etc/apache2/sites-available/"$domain.conf"
EOF
a2ensite $domain
a2dissite 000-default
a2enmod proxy
a2enmod proxy_http
a2enmod rewrite
##---------##
# PHP #