Browse Source

Install & Activate Nginx Helper Plugin

old-stable
Mitesh Shah 12 years ago
parent
commit
930d7785d2
  1. 20
      setup/engine

20
setup/engine

@ -691,7 +691,7 @@ then
# Display W3 Total Cache URL For Settings # Display W3 Total Cache URL For Settings
echo -e "\033[34m Please Configure WP Super Cache Settings \e[0m" echo -e "\033[34m Please Configure WP Super Cache Settings \e[0m"
echo -ne "\033[34m W3 Total Cache:\e[0m" echo -ne "\033[34m WP Super Cache:\e[0m"
echo -e "\033[34m http://$DOMAIN/wp-admin/options-general.php?page=wpsupercache \e[0m" echo -e "\033[34m http://$DOMAIN/wp-admin/options-general.php?page=wpsupercache \e[0m"
# Reload Nginx Configuration # Reload Nginx Configuration
@ -714,6 +714,24 @@ then
> /etc/nginx/sites-available/$DOMAIN \ > /etc/nginx/sites-available/$DOMAIN \
|| OwnError "Unable To Update Configuration File For $DOMAIN" || OwnError "Unable To Update Configuration File For $DOMAIN"
# Installing Nginx Helper
cd /var/www/$DOMAIN/htdocs/
wp plugin install nginx-helper || OwnError "Unable To Install Nginx Helper"
# Activate Nginx Helper
wp plugin activate nginx-helper || OwnError "Unable To Activate Nginx Helper Plugin"
# Call WEBUSERINFO Function For Web User Details
WEBUSERINFO
# Give Ownership To $NGINXUSER
chown -R $NGINXUSER:$NGINXUSER /var/www/$DOMAIN/
# Display W3 Total Cache URL For Settings
echo -e "\033[34m Please Configure Nginx Helper Settings \e[0m"
echo -e "\033[34m Nginx Helper: http://$DOMAIN/wp-admin/options-general.php?page=nginx \e[0m"
# Reload Nginx Configuration # Reload Nginx Configuration
NGINXRELOAD NGINXRELOAD

Loading…
Cancel
Save