diff --git a/Main-Install-Script.sh b/Main-Install-Script.sh index 4efc236..31f60c4 100644 --- a/Main-Install-Script.sh +++ b/Main-Install-Script.sh @@ -482,18 +482,6 @@ ln -s /etc/nginx/sites-available/$domain /etc/nginx/sites-enabled/ sed -i 's/#cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.2/fpm/php.ini systemctl reload nginx -fi - - - - #-------------------# - # PHPMYADMIN # - #-------------------# - ln -s /usr/share/phpmyadmin /home/admin/web/"$domain"/public_html - cd /home/admin/web/"$domain"/public_html - ls -l - mv phpmyadmin database - fi #--------------------# @@ -586,47 +574,25 @@ fi #-------------------# # Wordpress Install # #-------------------# -# -# if [ $wordpress = 1 ] -# then -# echo "install wordpress" -# db_name="wp_1" -# db_user="wp_1" -# db_pass=$(date +%s|sha256sum|base64|head -c 32) -# mysql -u root -p"$passwd" -e "CREATE DATABASE "$db_name" DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;" -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;" -cd /tmp -curl -LO https://wordpress.org/latest.tar.gz -tar xzvf latest.tar.gz -cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php -path="$domain" -cp -a /tmp/wordpress/. /var/www/"$path"/html -chown -R www-data:www-data /var/www/"$path"/html -WPSalts=$(wget https://api.wordpress.org/secret-key/1.1/salt/ -q -O -) -cat < /var/www/"$domain"/html/wp-config.php - /var/www/"$domain"/html/wp-config.php array( -# '127.0.0.1:11211' -# ) -#); -#define('WP_REDIS_HOST', '127.0.0.1'); -#define('WP_REDIS_PASSWORD', '$passwd'); -#define('WP_REDIS_PORT', '6379'); -require_once(ABSPATH . 'wp-settings.php'); +#-------------------# +# OPCACHE GUI # +#-------------------# +cd /tmp +curl -LO https://raw.githubusercontent.com/amnuts/opcache-gui/master/index.php +cp /tmp/index.php /tmp/opcache.php +cp -a /tmp/opcache.php /var/www/"$domain"/html +cat > /var/www/"$domain"/html/info.php <<- "EOF" + EOF fi -fi #----------------------# # Generic end commands #