Install PHP 5.6 On Cyberpanel OS Almalinux 8

hallo, can help me Install PHP 5.6 On Cyberpanel OS Almalinux 8

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
$ 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

PHP 5.6 was end of life almost 4 years ago.

You can install it using the method above but it would be a much better idea to migrate whatever apps that you are using that need it to something more modern that will run on a supported and secure version of PHP.

Thanks you for help

I’ve compiled php5.6 in LiteSpeed and now php5.6 is installed on my AlmaLinux 8:

# /usr/local/lsws/lsphp56/bin/php -v
PHP 5.6.40 (cli) (built: May 29 2023 08:07:30) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

But I can’t find php 5.6 in CyberPanel (version 2.3) itself. Does anybody know how to make CyberPanel find this php version?