How to Install OpenLiteSpeed
OpenLiteSpeed is the Open Source edition of LiteSpeed Web Server Enterprise and contains all of the essential features, including HTTP/3 support. OLS provides enormous scalability, and an accelerated hosting platform for WordPress. This One-Click gives you OpenLiteSpeed, PHP, MySQL Server, WordPress, LiteSpeed Cache, and other useful applications.
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,
Here, click View button beside "Default".
Here, Click Edit icon on the right and change the port from 8080 to 80.
Click Save and then perform a Graceful restart.
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,
Under "Environment:" set the following,
PHP_LSAPI_MAX_REQUESTS=500
PHP_LSAPI_MAX_REQUESTS=500
Here, set the "Command" as,
/usr/local/lsws/lsphp73/bin/lsphp
Click Save and then perform a Graceful restart.
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,
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
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME
for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS