Update 'RevProxySimple.sh'
This commit is contained in:
@@ -175,10 +175,9 @@ if [ $wordpress = 1 ]
|
|||||||
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 xzvf /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"/public_html
|
cp -a /tmp/wordpress/. /var/www/"$domain"/html
|
||||||
chown -R www-data:www-data /var/www/"$domain"/public_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 -)
|
||||||
cat <<EOF > /var/www/"$domain"/public_html/wp-config.php
|
cat <<EOF > /var/www/"$domain"/html/wp-config.php
|
||||||
<?php
|
<?php
|
||||||
define('DB_NAME', '$db_name');
|
define('DB_NAME', '$db_name');
|
||||||
define('DB_USER', '$db_user');
|
define('DB_USER', '$db_user');
|
||||||
@@ -221,23 +220,23 @@ require_once(ABSPATH . 'wp-settings.php');
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#--------------------#
|
##----------------------##
|
||||||
# WWW Folder Perms #
|
# WWW Folder Perms #
|
||||||
#--------------------#
|
##----------------------##
|
||||||
|
|
||||||
chown -R www-data:www-data /var/www/"$domain"/public_html
|
chown -R www-data:www-data /var/www/"$domain"/html
|
||||||
|
|
||||||
#-------------------#
|
##-----------------##
|
||||||
# OPCACHE GUI #
|
# OPCACHE GUI #
|
||||||
#-------------------#
|
##-----------------##
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/amnuts/opcache-gui/master/index.php -O /var/www/"$domain"/public_html/opcache.php
|
wget https://raw.githubusercontent.com/amnuts/opcache-gui/master/index.php -O /var/www/"$domain"/html/opcache.php
|
||||||
|
|
||||||
#----------------#
|
##--------------##
|
||||||
# PHP.info #
|
# info.php #
|
||||||
#----------------#
|
##--------------##
|
||||||
|
|
||||||
cat > /var/www/"$domain"/public_html/info.php <<- "EOF"
|
cat > /var/www/"$domain"/html/info.php <<- "EOF"
|
||||||
<?php
|
<?php
|
||||||
phpinfo();
|
phpinfo();
|
||||||
EOF
|
EOF
|
||||||
Reference in New Issue
Block a user