Update 'README.md'

This commit is contained in:
tbergervoet
2018-10-09 15:19:31 +02:00
committed by ICT Maatwerk
parent 65597c3689
commit 6d1a83c625
2 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ chmod -R 755 /var/www
# Apache + MySQL #
##--------------------##
apt install -y apache2 mysql-server-5.7 libapache2-mod-proxy-html
apt install -y apache2 mysql-server-5.7
# mysql_secure_installation automated
mysqladmin -u root password "$password"
mysql -u root -p"$password" -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1')"
@@ -162,7 +162,7 @@ if [ $wordpress = 1 ]; then
mysql -u root -p"$password" -e "GRANT ALL ON "$db_name".* TO '"$db_user"'@'localhost' IDENTIFIED BY '"$db_pass"';"
mysql -u root -p"$password" -e "FLUSH PRIVILEGES;"
wget https://wordpress.org/latest.tar.gz -O /tmp/wp.tar.gz
tar xzvf /tmp/wp.tar.gz -C /tmp
tar xzf /tmp/wp.tar.gz -C /tmp
mv /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php
cp -a /tmp/wordpress/. /var/www/"$domain"/html
WPSalts=$(wget https://api.wordpress.org/secret-key/1.1/salt/ -q -O -)

View File

@@ -6,7 +6,7 @@ https://gist.github.com/TimVNL/b22cbdeea4b6f438ae5e90f75afed838
Brotli voor NGINX:
https://www.enovate.co.uk/blog/2017/02/28/how-to-brotli-compression-with-nginx
https://www.howtoforge.com/tutorial/how-to-install-nginx-with-brotli-compression-on-ubuntu-1804/
Werkend NGINX server block voor de reverse proxy: