Hello @hosteko
Install from LiteSpeed repositories e.g.
## install dependencies
$ yum -y install gcc make gcc-c++ cpp kernel-headers.x86_64 libxml2-devel openssl-devel bzip2-devel libjpeg-devel libpng-devel freetype-devel openldap-devel postgresql-devel aspell-devel net-snmp-devel libxslt-devel libc-client-devel libicu-devel gmp-devel curl-devel libmcrypt libmcrypt-devel pcre-devel sqlite-devel db4-devel enchant-devel libXpm-devel mysql-devel readline-devel libedit-devel recode-devel libtidy-devel libtool-ltdl-devel
## https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:rpm#useful_php_install_commands
$ yum install lsphp56 lsphp56-mcrypt lsphp56-bcmath lsphp56-common lsphp56-dba lsphp56-dbg lsphp56-devel lsphp56-enchant lsphp56-gd lsphp56-gmp lsphp56-imap lsphp56-intl lsphp56-json lsphp56-ldap lsphp56-mbstring lsphp56-mysqlnd lsphp56-odbc lsphp56-opcache lsphp56-pdo lsphp56-pear lsphp56-pecl-apcu lsphp56-pecl-apcu-devel lsphp56-pecl-apcu-panel lsphp56-pecl-igbinary lsphp56-pecl-igbinary-devel lsphp56-pecl-mcrypt lsphp56-pecl-memcache lsphp56-pecl-memcached lsphp56-pecl-msgpack lsphp56-pecl-msgpack-devel lsphp56-pecl-redis lsphp56-pgsql lsphp56-process lsphp56-pspell lsphp56-recode lsphp56-snmp lsphp56-soap lsphp56-tidy lsphp56-xml lsphp56-xmlrpc lsphp56-zip
## OR install all php versions
$ yum groupinstall lsphp-all
To install PHP modules [TUTORIAL] How to install any PHP modules using PEAR Package Manager