LiteSpeed

Install LiteSpeed in cPanel/WHM with Obsolete Owned License

If you have Obsolete Owned LiteSpeed License, installation via cPanel plugins will not work. There will be an error like

[ERROR] You are not authorized to use this binary, please purchase upgrades

If you encounter this error, then you have to manually install authorize old version of LiteSpeed. This is the guides on how to do it.

1. Log in to LiteSpeed Client area and check license update expiry date. In LiteSpeed Release Log Page, find LiteSpeed version that you can use.

2. SSH to your server & download and extract the applicable version (example below for version 4.2.6)

cd /home
wget http://www.litespeedtech.com/packages/4.0/lsws-4.2.6-ent-x86_64-linux.tar.gz
tar zxf lsws-4.2.6-ent-x86_64-linux.tar.gz
cd lsws-4.2.6

3. create a file with name serial.no, edit the file & copy license information into the file and save.

nano serial.no

4. Proceed with LiteSpeed installation

sh install.sh

5. Accept the License Agreement by typing – Yes

6. Specify installation directory – /usr/local/lsws

7. Installer will generate license key & exit.

8. Run the installer again, accept the licence agreement & specify installation directory as of step 4 to 6 above.

9. Enter username – admin

10. Enter your choosen password

11. Enter admin email address

12. Enter “1” for cPanel installation

13. Enter Port Offset “0” for replace Apache

14. Enter “1” to enable PHP suEXEC

15. Installation will start

16. Enter “Y” to enable LiteSpeed start automatically when server start

17. Enter “Y” to start LiteSpeed.

18. Is start failed, login to WHM. Under Plugins  LiteSpeed, Click compile matching LSPHP binary.

19. When LSPHP compilation complete, try to restart Litespeed

20. Is the start failed, click on Version menu & force re-install the same version or older version.

21. LiteSpeed should be running now.


Install RRDtool Graph to Monitor LiteSpeed Server in cPanel/WHM

For cPanel/WHM user, Munin is great server monitoring tools. It functions as a data logging and graphing system for time-series data. It can save years of real-time stats for data server and dispaly them in RRDtool graph at any time.

However, if you are using LiteSpeed Webserver, some of the data that related to Apache Webserver such as concurrent http connection will become unavailable.

Fortunately, LiteSpeed to provide an alternative monitoring tool but independent of Munin.

Below are the guides on how to install them.

Let assume the following

a. LiteSpeed install at – usr/local/lsws/fcgi-bin/lsphp5

b. cPanel username – cpuser

c. Main domain for cpuserwebsite.com

Make sure you are using your information for all 3 information above.

Below is the step by step guides on how to install it RRDtool Graph for LiteSpeed.

1. SSH as a root user to your server & issue the following command

cd /usr/local/lsws/add-ons/rrdgraph
./rrdgraph_install.sh

 

2. Key in ‘y‘ indicate you have install RRDtool. Normally, RRDtool installed together with cPanel.

 

3. When asked about destination – Destination [/usr/local/lsws/DEFAULT/html]: key-in /home/cpuser/public_html

 

4. When asked about lsphp5 location – lsphp5 location: [/usr/local/lsws/fcgi-bin/lsphp5], if the LiteSpeed installation is correct, press enter or else type in the correct location

 

5. When installation complete, edit config file by issuing the following command

nano /home/cpuser/public_html/ls_stats/config/main.php

 

6. Scroll down until you see

'rrdtool' => '/usr/bin/rrdtool',

 

7. Change it to

'rrdtool' => '/usr/local/cpanel/3rdparty/bin/rrdtool',

 

8. Change user permission setting by typing

chown -R cpuser:cpuser /home/cpuser/public_html/ls_stats

 

9. Login to cpuser cPanel account.

 

10. Click on Cron-job icon.

 

11. In Common Settings:, select Every minute ( * * * * *).

 

12. In Command: area type in

/usr/local/lsws/fcgi-bin/lsphp5 /home/cpuser/public_html/ls_stats/update.php >/dev/null

 

13. Installation completed. You can access the monitoring tools at

http://website.com/ls_stats/

 

14. Alternative, you may want to set-up subdomain such as litespeed.website.com & point this sub-domain to /home/cpuser/public_html/ls_stats