Do you know how to install OpenLiteSpeed on Centos?
First of all, I would like to tell you that what is OpenLiteSpeed? I know most of you know that what is OpenLiteSpeed but it’s my habit to discuss things before going to deep. So OpenLiteSpeed is the Open Source edition of LiteSpeed Web Server Enterprise.
In this article, we will discuss step by step how to install OpenLiteSpeed on Centos.
How To Install OpenLiteSpeed:
First of all, you need to add the LiteSpeed repository to your centos. You can do it by using the following command.
rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm
Once you added the repository now you can install the OpenLiteSpeed on your server easily. To do so you have to run the command:
yum install openlitespeed
Now what? if you want to install any specific version of OpenLiteSpeed. In that case you can use this command:
yum install openlitespeed-x.x.x
Replace the x value with your required version. Like 1.6.5 or something. You can access the web server on:
http://your_ip:7080
Setup Administrator Password:
Now your LiteSpeed web server is installed. You have to set a password for the OpenLiteSpeed web server in order to access it. You can set the password by using this command:
/usr/local/lsws/admin/misc/admpass.sh
Use sudo if you don’t have root rights. you can also use this to change the OpenLiteSpeed web server password. When you run this command this will ask you User name [admin]: put admin here
And after that, it will ask for a password add a password and confirm that.
Now your web server is go to go.
Some common commands for OpenLiteSpeed:
Here some common commands that you must need to know about the OpenLiteSpeed.
- To check the status of OpenLiteSpeed you can use this command.
Systemctl status lsws
2. To stop the OpenLiteSpeed service use this command.
Systemctl stop lsws
3. To start the OpenLiteSpeed service use this command
Systemctl start lsws
4. To restart the OpenLiteSpeed service use this command
Systemctl restart lsws
Directories and Logs for OpenLiteSpeed:
Now I think it’s very important to tell you about directories and logs of OpenLiteSpeed. Maybe you want to do some testing on it. Joke apart never try to do tests on anything you have not enough knowledge.
The default OpenLiteSpeed installation directory is: /usr/local/lsws
You can also start OLS using this command:
/usr/local/lsws/bin/lswsctrl start
You can also stop OLS using this command:
/usr/local/lsws/bin/lswsctrl stop
If you faced any error on OLS and want to find what is that then you can check the error log in /usr/local/lsws/logs/error.log
.
Some more information about OpenLiteSpeed:
Well, the free version of LiteSpeed web servers. Although both OpenLiteSpeed and LiteSpeed ENT. are developed by the same developers. But there must be some difference between them. You can imagine a price thing and a paid thing must be different from each other.
OpenLiteSpeed has almost all the features that LiteSpeed Ent have. But there must be some difference. The main difference is OpenLiteSpeed requires a restart to load any new .htaccess file. While LiteSpeed Ent does this Automatically.