Setup OpenLightSpeed 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