Install from Source¶
We provide several easy ways to install OpenLiteSpeed, however you can compile OLS from source if you prefer to do it manually.
Our build.sh
script handles dependencies, ./configure
, and make
for you. Simply run the build script, check or change the settings in ols.conf
, and then run ./install.sh
.
That is it!
Supported Operating Systems¶
OpenLiteSpeed supports current and non-EOL versions of the following Linux distributions:
- CentOS
* 7 (EOL June 30, 2024), 8, 9 - Debian 10 (EOL June 30, 2024), 11, 12
- Ubuntu 20, 22, 24
* Includes RedHat Enterprise Linux and derivatives, AlmaLinux, CloudLinux, Oracle Linux, RockyLinux, VzLinux, etc.
Direct Download¶
Download the OpenLiteSpeed binary from the Download page. Or, use the wget
command to download it from the console, like so:
wget https://github.com/litespeedtech/openlitespeed/archive/refs/tags/v1.8.1.tar.gz
Build¶
Run build.sh
to install dependencies, configure and make:
tar -zxvf openlitespeed-*.tgz
cd openlitespeed*
./build.sh
Check¶
Check the options in ols.conf
, and modify them if necessary.
Tip
If you wish to define your own WebAdmin Console password, remove the #
from before OPENLSWS_PASSWORD=
and specify your preferred password.
Leave this alone, if you want to accept a randomly generated password. The randomly generated password can be retrieved in /usr/local/lsws/adminpassword
, and will also be shown on screen after installation completes.
#If you want to change the default values, please update this file.
#
SERVERROOT=/usr/local/lsws
OPENLSWS_USER=nobody
OPENLSWS_GROUP=nobody
OPENLSWS_ADMIN=admin
OPENLSWS_EMAIL=root@localhost
OPENLSWS_ADMINSSL=yes
OPENLSWS_ADMINPORT=7080
USE_LSPHP7=yes
DEFAULT_TMP_DIR=/tmp/lshttpd
PID_FILE=/tmp/lshttpd/lshttpd.pid
OPENLSWS_EXAMPLEPORT=8088
#You can set password here
#OPENLSWS_PASSWORD=
The ols.conf
file will be removed after successful installation.
Install¶
Run install.sh
to complete OpenLiteSpeed installation:
./install.sh
If the installation goes well, you will see:
[OK] The startup script has been successfully installed!
Now you can start the web server, like so:
/usr/local/lsws/bin/lswsctrl start
Check the status:
/usr/local/lsws/bin/lswsctrl status