Script to automatically start Nginx

You can use the following script to auto restart the nginx on the server. The following script check the status and if it is down then it restart. You can set cron  “* * * * * /bin/sh /root/autongnixrestart.sh”   #! /bin/sh set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC=”nginx daemon” NAME=nginx DAEMON= /usr/sbin/$NAME SCRIPTNAME=/etc/init.d/$NAME test -x $DAEMON || exit […]

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

Remove 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 […]

Beginner’s Guide on Hosting an Application for the first time

Hosting a website is a common phenomenon in the web hosting industry. Every one of us is aware of hosting a website and its parameters. In our blogger community when I was asked about hosting an application then I was a little bit worried as I was not aware of hosting an application. Or I […]