diff --git a/NGINX-Installer.sh b/NGINX-Installer.sh index e17618c..57f1dab 100644 --- a/NGINX-Installer.sh +++ b/NGINX-Installer.sh @@ -356,7 +356,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"/html chown -R www-data:www-data /var/www/"$domain"/html @@ -402,4 +402,26 @@ if ( !defined('ABSPATH') ) #define('WP_REDIS_PORT', '6379'); require_once(ABSPATH . 'wp-settings.php'); EOF -fi \ No newline at end of file +fi + +#--------------------# +# WWW Folder Perms # +#--------------------# + +chown -R www-data:www-data /var/www/"$domain"/html + +#-------------------# +# OPCACHE GUI # +#-------------------# + +wget https://raw.githubusercontent.com/amnuts/opcache-gui/master/index.php -O /var/www/"$domain"/html/opcache.php + +#----------------# +# PHP.info # +#----------------# + +cat > /var/www/"$domain"/html/info.php <<- "EOF" + +EOF \ No newline at end of file