I want to have OpenLiteSpeed server on a server with DirectAdmin. How can I do it?
OpenLiteSpeed is the Open Source edition of LiteSpeed Web Server Enterprise with fewer processes, less overhead, and enormous scalability in comparison with other popular web-servers.
OpenLiteSpeed is mod_rewrite compatible, with no new syntax to learn. Built-in full-page cache module is highly-customizable and efficient for an exceptional user experience.
Experience a measurable performance boost with OpenLiteSpeed and LSCache for WordPress.
OLS comes with a built-in WebAdmin GUI as shown below:
So if you decided to use it, here is a guide on how to install it.
At the moment CustomBuild 2.0 offers OpenLiteSpeed for early testing! It's announced DirectAdmin 1.56.5 should be installed for it:
Here is how can you get it installed with the help of CustomBuild once they introduce the full support of it.
On a CentOS server, first run this as root (it's a requirement):
yum -y install udns-devel GeoIP-devel
Then do the following:
cd /usr/local/directadmin/custombuild ./build update && ./build clean ./build set webserver openlitespeed for i in 1 2 3 4; do ./build set php${i}_mode lsphp; done; ./build openlitespeed ./build php ./build rewrite_confs
At this point if everything went fine you have Open Lite Speed installed on Directadmin server.
Example of running of the commands with expected results:
[root@poralix custombuild]# ./build set webserver openlitespeed Changed webserver option from nginx_apache to openlitespeed [root@poralix custombuild]# [root@poralix custombuild]# for i in 1 2 3 4; do ./build set php${i}_mode lsphp; done; Changed php1_mode option from php-fpm to lsphp Changed php2_mode option from php-fpm to lsphp Changed php3_mode option from php-fpm to lsphp Changed php4_mode option from php-fpm to lsphp [root@poralix custombuild]# [root@poralix custombuild]# ./build openlitespeed Downloading openlitespeed-1.4.47.tgz... --2019-04-25 11:57:07-- http://files7.directadmin.com/services/custombuild/openlitespeed/openlitespeed-1.4.47.tgz Resolving files7.directadmin.com (files7.directadmin.com)... 141.138.151.26 Connecting to files7.directadmin.com (files7.directadmin.com)|141.138.151.26|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 43026159 (41M) [application/x-gzip] Saving to: '/usr/local/directadmin/custombuild/openlitespeed-1.4.47.tgz' ... skipped ... ... skipped ... ... skipped ... writing new private key to '/usr/local/lsws/ssl.key/server.key' ----- Restarting litespeed. [root@poralix custombuild]# [root@poralix custombuild]# ./build rewrite_confs Checking to ensure /usr/local/lsws/ssl.crt/server.ca is set. Using 159.bb.cc.222 for your server IP Restarting openlitespeed. [root@poralix custombuild]# [root@poralix custombuild]# ps aux | grep openlitespeed root 13996 0.2 0.1 34288 4332 ? S 12:00 0:00 openlitespeed (lshttpd - main) root 14000 0.0 0.0 29616 1572 ? S 12:00 0:00 openlitespeed (lscgid) apache 14001 0.0 0.0 36528 2708 ? S 12:00 0:00 openlitespeed (lshttpd - #01) apache 14002 0.0 0.0 36660 3264 ? S 12:00 0:00 openlitespeed (lshttpd - #02) root 14026 0.0 0.0 110692 900 pts/1 S+ 12:00 0:00 grep --color=auto openlitespeed [root@poralix custombuild]#
If to open a browser and enter your server's IP address in an address bar and connect to it you should see "OpenLiteSpeed is functioning normally".
That's it for now.