Install OpenLiteSpeed and PHP from LiteSpeed Repository
Table of contents
Install the LiteSpeed Repository
sudo wget -O - https://repo.litespeed.sh | sudo bash
Install OpenLiteSpeed
- Debian/Ubuntu
sudo apt-get -y install openlitespeed
- CentOS
sudo yum install openlitespeed -y
Install LSPHP
This command will install lsphp81
and lsphp81-mysql
into /usr/local/lsws/lsphp81/bin/lsphp
:
- Debian/Ubuntu
sudo apt-get install lsphp81 lsphp81-common lsphp81-mysql
- CentOS
sudo yum install lsphp81 lsphp81-common lsphp81-mysqlnd
To get a list of the LSPHP packages and extensions available, you can run the following:
- Debian/Ubuntu
sudo apt-cache search lsphp
- CentOS
sudo yum search lsphp
Access the WebAdmin Console
The randomly generated WebAdmin password is stored in the /usr/local/lsws/adminpasswd
file.
Run the following command to set the WebAdmin password if needed:
sudo /usr/local/lsws/admin/misc/admpass.sh
To access the WebAdmin console, visit port 7080
of your domain (for example,https://example.com:7080/
) and log in using the password you just set.