Update 'Apache-Installer.sh'
This commit is contained in:
@@ -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 #
|
||||
|
||||
Reference in New Issue
Block a user