Installing OpenLiteSpeed on DirectAdmin

Blog d'AiroServer

Installing OpenLiteSpeed on DirectAdmin

Installing OpenLiteSpeed on DirectAdmin
OpenLiteSpeed is the open-source version of the LiteSpeed Web Server Enterprise. OpenLiteSpeed includes all essential features available in LiteSpeed Enterprise, including LSCache (the required plugin for WordPress).

To install OpenLiteSpeed, DirectAdmin version 1.57 or higher is required.

Steps

Before installation, make sure that CustomBuild 2.0 is installed on your DirectAdmin. If not, you can update the CustomBuild version on your DirectAdmin server using the following commands:

First, to check the version of CustomBuild currently in use, you can run the following command in your server terminal:

cd /usr/local/directadmin/custombuild
./build version
OpenLiteSpeed

After running the above command, the CustomBuild version will be displayed:

[root@server custombuild]# ./build version
2.0.0-RC7 (rev: 798)

The CustomBuild version is also specified in the options.conf file, but you cannot change custombuild = 1.2 to custombuild = 2.0 directly as the settings in version 2.0 are different.

On servers with an older DirectAdmin version, the above command may not display the CustomBuild version. In such cases, you can test the following command to find out your server’s CustomBuild version:

cd /usr/local/directadmin/custombuild
grep BUILDSCRIPT_VER build

If you are using CustomBuild 1.1 or 1.2 and want to upgrade to CustomBuild 2.0, the update process is not just about changing settings in options.conf because the values in options.conf for version 2.0 are different.

To update to CB2 with default settings, run the following commands on your server:

cd /usr/local/directadmin
mv custombuild custombuild_1.x
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build

If you want to customize the CB2 settings on your DirectAdmin, after running the above commands, you can edit the options.conf file to customize it. Otherwise, to complete the upgrade process, run the following commands:

./build all d
./build rewrite_confs

Finally, your server is ready to install OpenLiteSpeed, and you can install OpenLiteSpeed on your server using the following commands:

./build update
./build set webserver openlitespeed
./build set mod_ruid2 no
./build set php1_mode lsphp
./build openlitespeed
./build php n
./build rewrite_confs

Trouver plus d'articles...

Quoi de neuf ?

fr_FRFR