Installing OpenLiteSpeed

First run the Repo installation command,

wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debain_repo.sh | bash

Next install OpenLiteSpeed,

apt-get install openlitespeed

Next we install the PHP 7.3 packages,

apt-get install lsphp73

Start OpenLiteSpeed

/usr/local/lsws/bin/lswsctrl start

Login to the OpenLiteSpeed Admin Panel

To login to the OpenLiteSpeed Admin Panel, Replace "VPS-IP-Address" with your VPS IP,

https://VPS-IP-Address:7080

Login with the default user & password,

Username: admin
Password: 123456

If the panel doesn’t load stop UFW, try stopping UFW

service ufw stop

Configure OpenLiteSpeed

Visit the "Listeners" category,

openlitespeed

Here, click View button beside "Default".

openlitespeed

Here, Click Edit icon on the right and change the port from 8080 to 80.

openlitespeed

Click Save and then perform a Graceful restart.

openlitespeed

openlitespeed

openlitespeed


Configuring PHP

Switch to the "Server Configuration" Section and click on the "External App" tab. Here, you will find LiteSpeed SAPI app named lsphp. Click the edit button,

openlitespeed

Under "Environment:" set the following,

PHP_LSAPI_MAX_REQUESTS=500
PHP_LSAPI_MAX_REQUESTS=500

openlitespeed

Here, set the "Command" as,

/usr/local/lsws/lsphp73/bin/lsphp

openlitespeed

Click Save and then perform a Graceful restart.

openlitespeed

openlitespeed

openlitespeed

Verify if PHP is working

To verify if PHP is working visit the URL,

http://VPS-IP-Address/phpinfo.php

You’ll find a similar screen,

openlitespeed

If you see a similar screen, then PHP is all is good and working fine!

Stopping OpenLiteSpeed

If you wish to stop OpenLiteSpeed, use the following command,

/usr/local/lsws/bin/lswsctrl stop