WebServer

How to Install Litespeed Webserver on cPanel/WHM VPS Server

Installing and configuring Linux software can be a tedious job for a Linux beginner (including me!). That’s why cPanel is very good tools, and we are willing to pay for it. However, not all software included in cPanel is the best you can find in the market.

For example, Litespeed is a much better webserver when compare to Apache in terms of speed and protection against DDOS. Based on this fact, I decided to try their 15-day trial version.

As mentioned in the beginning of this post, installation is always a hindrance to try a new software. Luckily, Litespeed has cPanel plugin and when you installed this plugin, subsequent steps can be done via cPanel. To install follow steps below.

1. Sign-up for 15 days trial version. You should receive a trial license via email.

2. SSH to your VPS as root and issue the following command.

cd /usr/src; curl http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh | sh

3. Log-in to WHM panel & you should see “Litespeed Web Server” menu under “Plugins” menu.

4. Insert your trial key from (1) above, choose admin username & password and start installing.

5. When finished, you have to build matching PHP Binary. To do this just click, “Build Matching PHP Binary” in Litespeed Plugins page. This process will take approximately 10 minutes.

6. After that you can start to use Litespeed Webserver by selecting “Switch to LiteSpeed” in Litespeed Plugins page.

7. Enjoy the speed of your server. You should see the ” LiteSpeed is running (PID = XXXXX). Apache is not running” message on top of the plugins page.

If you decide to uninstall Litespeed Webserver & cPanel plugins, you may follow the steps below.

1. Uninstall Litespeed Webserver in Litespeed plugins page.

2. When completed, SSH to your VPS as root and issue the following command.

cd /usr/src; curl http://www.litespeedtech.com/packages/cpanel/lsws_whm_plugin_install.sh | sh

3. Done. If you refresh your WHM panel, Litespeed plugins page will be no longer there.


How to install NginX on cPanel/WHM Server

NginX is one of the most popular choice open source Web server and a reverse proxy. For those who are not very familiar with Linux & have cPanel/WHM installed in your server or VPS here is the guide on how to install them.

The package comes with Nginx Admin plugins for cPanel. To install execute the following command through SSH client. You have to login as root.

cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller install

If you are installing Nginx Admin for the first time and there is Python Error while installing you have to execute the following command.

./pythonfix
./nginxinstaller install

If you want to uninstall Nginx Admin, execute the following commands.

cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller uninstall