Update 'README.md'
This commit is contained in:
committed by
ICT Maatwerk
parent
65597c3689
commit
6d1a83c625
@@ -20,7 +20,7 @@ chmod -R 755 /var/www
|
|||||||
# Apache + MySQL #
|
# 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
|
# mysql_secure_installation automated
|
||||||
mysqladmin -u root password "$password"
|
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')"
|
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 "GRANT ALL ON "$db_name".* TO '"$db_user"'@'localhost' IDENTIFIED BY '"$db_pass"';"
|
||||||
mysql -u root -p"$password" -e "FLUSH PRIVILEGES;"
|
mysql -u root -p"$password" -e "FLUSH PRIVILEGES;"
|
||||||
wget https://wordpress.org/latest.tar.gz -O /tmp/wp.tar.gz
|
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
|
mv /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php
|
||||||
cp -a /tmp/wordpress/. /var/www/"$domain"/html
|
cp -a /tmp/wordpress/. /var/www/"$domain"/html
|
||||||
WPSalts=$(wget https://api.wordpress.org/secret-key/1.1/salt/ -q -O -)
|
WPSalts=$(wget https://api.wordpress.org/secret-key/1.1/salt/ -q -O -)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ https://gist.github.com/TimVNL/b22cbdeea4b6f438ae5e90f75afed838
|
|||||||
|
|
||||||
Brotli voor NGINX:
|
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:
|
Werkend NGINX server block voor de reverse proxy:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user