Setup OpenLiteSpeed 1.5.0 Web Server + PHP7.3

Created: 02-21-2019 Tested: 02-21-2019


Install Prerequisites

yum install pcre-devel openssl-devel expat-devel geoip-devel zlib-devel udns-devel wget
yum install gcc gcc-c++ make autoconf glibc rcs

Install Open Light Speed Web Server

rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm
yum install openlitespeed

Setup PHP 7.3

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum install -y lsphp73 lsphp73-bcmath lsphp73-bz2 lsphp73-common lsphp73-curl lsphp73-ctype lsphp73-dom lsphp73-ftp lsphp73-fileinfo lsphp73-gd lsphp73-imap lsphp73-intl lsphp73-iconv lsphp73-json lsphp73-mbstring lsphp73-mysqlnd lsphp73-mcrypt lsphp73-pdo lsphp73-posix lsphp73-process lsphp73-smbclient lsphp73-simplexml lsphp73-soap lsphp73-xmlreader lsphp73-xmlwriter lsphp73-xml lsphp73-zip lsphp73-opcache
ln -sf /usr/local/lsws/lsphp73/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5

Open needed ports

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=public --add-port=7080/tcp --permanent
firewall-cmd --reload 
systemctl restart firewalld

Continue setting up PHP 7.3

Open a web browser and login to the lsweb server admin page.

https://YOURIPHERE:7080/

Default user info:

User: admin
Pass: 123456
Server Configuration > External App > ( + ) button
Type: LiteSpeed SAPI App

Name: lsphp73
Address: uds://tmp/lshttpd/lsphp.sock
Max Connections: 35
Initial Request Timeout (secs): 60
Retry Timeout (secs): 0
Command: /usr/local/lsws/lsphp73/bin/lsphp
Hit Save

Old Install

DO NOT USE ANYTHING BELOW THIS LINE


Setup OpenLiteSpeed 1.4.36 Web Server + PHP7.2

Created: 09-18-2018 Tested: 09-18-2018


Install Open Light Speed Web Server

rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm
yum install openlitespeed

https://openlitespeed.org/mediawiki/index.php/Help:Repositories


Install PHP7.2

yum install wget
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -ivh epel-release-latest-7.noarch.rpm
yum install -y lsphp72 lsphp72-bcmath lsphp72-bz2 lsphp72-common lsphp72-curl lsphp72-ctype lsphp72-dom lsphp72-ftp lsphp72-fileinfo lsphp72-gd lsphp72-imap lsphp72-intl lsphp72-iconv lsphp72-json lsphp72-mbstring lsphp72-mysqlnd lsphp72-mcrypt lsphp72-pdo lsphp72-posix lsphp72-process lsphp72-smbclient lsphp72-simplexml lsphp72-soap lsphp72-xmlreader lsphp72-xmlwriter lsphp72-xml lsphp72-zip
ln -sf /usr/local/lsws/lsphp72/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5

Open needed ports

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=public --add-port=7080/tcp --permanent
firewall-cmd --reload 
systemctl restart firewalld