How to remove Nginx on a Debian or Ubuntu in Vesta Control...

How to remove Nginx on a Debian or Ubuntu in Vesta Control Panel

185
0
SHARE
Linux Reseller Hosting

Vestacapremove nginx on a Debian or Ubuntu in Vesta Control Panel, 

Let Go

Step 1. Stop nginx

service nginx stop

Step 2. Remove package

apt-get remove nginx

Step 3. Change vesta configuration

cd /usr/local/vesta/conf
sed -i “/PROXY_*/d” vesta.conf
sed -i “s/8080/80/” vesta.conf
sed -i “s/8443/433/” vesta.conf

Step 4. Change httpd configuration

cd /etc/apache2/conf.d
sed -i “s/8080/80/” *.conf
sed -i “s/8443/443/” *.conf

Step 5. Rebuild vhost configs

for user in $(v-list-sys-users plain); do v-rebuild-web-domains $user; done

 

Windows Shared Hosting