From 587963c9e857ac1c7d464c960a57fc0889cb7474 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 7 Sep 2018 12:18:01 +0000 Subject: [PATCH] Update 'Apache-Installer.sh' --- Apache-Installer.sh | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Apache-Installer.sh b/Apache-Installer.sh index 3987c40..63f145a 100644 --- a/Apache-Installer.sh +++ b/Apache-Installer.sh @@ -159,7 +159,7 @@ if [ $wordpress = 1 ] mysql -u root -p"$passwd" -e "GRANT ALL ON "$db_name".* TO '"$db_user"'@'localhost' IDENTIFIED BY '"$db_pass"';" mysql -u root -p"$passwd" -e "FLUSH PRIVILEGES;" wget https://wordpress.org/latest.tar.gz -O /tmp/wp.tar.gz - tar xzvf /tmp/wp.tar.gz /tmp + tar xzvf /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"/public_html chown -R www-data:www-data /var/www/"$domain"/public_html @@ -206,6 +206,29 @@ if ( !defined('ABSPATH') ) require_once(ABSPATH . 'wp-settings.php'); EOF fi + +#--------------------# +# WWW Folder Perms # +#--------------------# + +chown -R www-data:www-data /var/www/"$domain"/public_html + +#-------------------# +# OPCACHE GUI # +#-------------------# + +wget https://raw.githubusercontent.com/amnuts/opcache-gui/master/index.php -O /var/www/"$domain"/public_html/opcache.php + +#----------------# +# PHP.info # +#----------------# + +cat > /var/www/"$domain"/public_html/info.php <<- "EOF" + +EOF + #Edit voor https, voeg het volgende toe aan $domain-le-ssl.conf tussen DocumentRoot en ErrorLog # # Options FollowSymLinks