How to install PHP 7 on CentOs with LSWS support

tar zxf php-7.1.9.tar.gz
cd php-7.1.9

yum install -y gcc gcc-c++ make automake libxml2-devel libpng-devel libmcrypt-devel gd-devel curl-devel openssl-devel systemtap-sdt-devel bzip2-devel libicu-devel libldb-devel openldap-devel libxslt-devel

./configure --prefix=/usr/local/lsws/lsphp7 --with-mysqli --with-zlib --with-gd --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbstring --with-iconv --with-openssl -with-mcrypt --with-pdo-mysql --enable-ftp --enable-zip --with-litespeed --with-curl --with-xsl=/usr --with-bz2=/usr --disable-debug --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-intl --enable-mbregex --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --disable-opcache --enable-pcntl --enable-dtrace --disable-phpdbg --enable-zend-signals

make -j number_of_proc_available && make install

Now make sure to edit the Command line from Server Configuration > External App
With this line: /usr/local/lsws/lsphp7/bin/lsphp

Then restart the server