HostMonster Web Hosting Help
VPS or Dedicated Hosting - Installing NginX
NginX is a web server and/or a reverse proxy added on top of apache, which is capable of handling connections better than apache. This can help handle high traffic to sites. Often this is installed with Varnish, as well.
Please note that HostMonster does not provide technical support for the installation or usage of NginX.
You will need to make sure that you have Sudo Access enabled. If you have not enabled sudo access please see Enabling Sudo Access to learn how to do so. You will also need to know your Apache version. That can be found through SSH by typing httpd -v
and pressing enter.
Installing NginX
To install NginX follow these steps:
- Login into SSH terminal.
- Change directories to the local source folder.
cd /usr/local/src
- Download NginX to this folder.
wget http://nginxcp.com/latest/nginxadmin.tar
- Extract the files from the tar file with the flag extract (x)and force(f).
tar -xf nginxadmin.tar
- Change directories to the publicngix directory.
cd publicnginx
- Run the install.
./nginxinstaller install
Uninstalling NginX
If need to uninstall Nginx follow these steps:
- Login into SSH terminal.
- Change directories to the publicnginx directory.
cd /usr/local/src/publicnginx
- Run the uninstall command.
./nginxinstaller uninstall