How to install PHP 7 on CentOs with LSWS support

wget http://ca3.php.net/distributions/php-7.1.2.tar.gz
tar zxf php-7.1.2.tar.gz
cd php-7.1.2

yum install -y 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 http://yoursite.com:7080 Server Configuration > External App
With this line: /usr/local/lsws/lsphp7/bin/lsphp

Then restart the server