sidebar hamburger menu

alt/ea packages

What are alt/ea packages?

alt/ea packages are software packages or assemblies of software components developed and distributed by the CloudLinux software provider. These packages typically consist of a set of tools, libraries, and utilities that enhance or supplement the functionality of the operating system. "alt" and "ea" stand for "alternative" and "easyapache" respectively.

alt-php provides by CloudLinux and it also includes PHP selector feature. These versions help to access outdated PHP version and also these versions are hardened and patched against vulnerabilities.

Right now, you can easily use PHP selector to change PHP version from PHP 5.1 to PHP 8.3. And this option provides by CloudLinux LVE Manager plugin in WHM.

EA PHP versions are provided by EasyApache 4. These PHP versions are included in cPanel installation and can be managed by Multi PHP Manager.

What are the main goals and purposes of alt/ea packages?

CloudLinux enables two different PHP Management Systems on cPanel systems, both our own MultiPHP Manager, as well as their own "Select PHP Version" Alternative Hardened PHP system.

CloudLinux additionally provides older, End-of-Life versions of ea-php with security patches applied beyond the support provided by cPanel on alternative operating systems.

alt-php includes PHP versions that CloudLinux provides along with their PHP Selector feature. These versions of PHP are often hardened and patched against vulnerabilities to allow users to continue to use applications that require outdated PHP versions.

As of this time, PHP Selector currently offers users the ability to install and use PHP 5.1+ and the options for these versions are managed via CloudLinux's LVE Manager plugin in WHM.

For more details regarding the installation of alt-php and PHP Selector, please refer to CloudLInux's documentation.

ea-php is the PHP versions that cPanel packages and provides via the EasyApache 4 repositories. These are the standard versions that are included in a base installation of cPanel and are managed via the MultiPHP Manager in both cPanel & WHM interface.

Older versions of ea-php are available on CloudLinux that are otherwise not available on CentOS/Ubuntu/AlmaLinux that have security patches provided by CloudLinux.

Extensions and different versions of ea-php are managed via the EasyApache 4 interface in the WHM and settings are managed via MutliPHP Manager.

Which operating systems are alt/ea packages designed for?

alt/ea packages are designed for Linux operating systems:

  • CloudLinux (CentOS, AlmaLinux)
  • Ubuntu
  • Debian

Which versions of CloudLinux support these packages?

alt-php: CloudLinux 6, 7, 8, 9 (CentOS 6, 7, 8; AlmaLinux 8, 9)

ea-php: CloudLinux 6, 7, 8, 9 (CentOS 6, 7, 8; AlmaLinux 8, 9)

Which versions of Ubuntu support these packages?

alt-php: Ubuntu 16, 18, 20, 22

ea-php: no

Which versions of Debian support these packages?

alt-php: Debian 10, 11, 12

ea-php: no

What are the main interpreters used for alt/ea packages?

  • alt-php

  • alt-python

  • alt-ruby

  • alt-nodejs

alt-php

About alt-php

alt-php (also known as "CloudLinux PHP Selector") is a component provided by CloudLinux designed for managing PHP versions on web servers and enabling users to choose PHP versions for their websites.

Here are the key features and characteristics of alt-php:

  1. Multiple PHP Versions:

alt-php allows the installation and usage of various PHP versions on a single web server. This enables users to select the PHP version that best suits their web applications.

  1. User Segmentation:

alt-php allows hosting providers and web server administrators to provide different PHP versions for different users. Each user can choose the PHP version that suits their website.

  1. Enhanced Compatibility:

alt-php is designed to ensure maximum compatibility with various web applications and frameworks. This includes optimizations and changes to make it compatible with a wide range of PHP applications.

  1. Updates and Support:

CloudLinux provides regular updates for alt-php, including bug fixes, performance improvements, and updates for new PHP versions. This helps ensure the security and currency of PHP usage.

  1. Management Tools:

alt-php usually comes with a set of management tools, such as PHP Selector, allowing users to manage PHP versions and enable/disable various PHP extensions.

alt-php provides a more flexible and convenient environment for working with different PHP versions on a single server, which is particularly useful in a web hosting environment where multiple users have varying requirements for PHP versions for their web applications.

A list of alt-php versions that we support for different operating systems.

The mark x stands for a supported version.

1. CloudLinux

Cloudlinux 6Cloudlinux 7Cloudlinux 8Cloudlinux 9
alt-php 5.1xxx
alt-php 5.2xxxx
alt-php 5.3xxxx
alt-php 5.4xxxx
alt-php 5.5xxxx
alt-php 5.6xxxx
alt-php 7.0xxxx
alt-php 7.1xxxx
alt-php 7.2xxxx
alt-php 7.3xxxx
alt-php 7.4xxxx
alt-php 8.0xxxx
alt-php 8.1xxxx
alt-php 8.2xxxx
alt-php 8.3xxxx

2. Debian

Debian 10Debian 11Debian 12
alt-php 5.1
alt-php 5.2
alt-php 5.3
alt-php 5.4
alt-php 5.5
alt-php 5.6xxx
alt-php 7.0xxx
alt-php 7.1xxx
alt-php 7.2xxx
alt-php 7.3xxx
alt-php 7.4xxx
alt-php 8.0xxx
alt-php 8.1xxx
alt-php 8.2xxx
alt-php 8.3xxx

3. Ubuntu

Ubuntu 16.04Ubuntu 18.04Ubuntu 20.04Ubuntu 22.04
alt-php 5.1
alt-php 5.2
alt-php 5.3
alt-php 5.4
alt-php 5.5
alt-php 5.6xxxx
alt-php 7.0xxxx
alt-php 7.1xxxx
alt-php 7.2xxxx
alt-php 7.3xxxx
alt-php 7.4xxxx
alt-php 8.0xxxx
alt-php 8.1xxxx
alt-php 8.2xxxx
alt-php 8.3xxxx

Bundled PHP extensions

PHP extensions are modules that extend the functionality of the PHP programming language. These extensions provide additional capabilities for working with various types of data, performing specific tasks, interacting with external resources and supporting various protocols.

The PHP core includes many built-in extensions that provide basic functionality, such as working with databases, string processing, working with images, and others. However, to support more specific tasks and third-party libraries, you can use additional PHP extensions.

List of extensions supported by the alt&ea team for each version of PHP

Large number of PHP extensions are bundled with each version of PHP.

PHP 5.1 extensions

Reflection
SPL
SimpleXML
bcmath
big_int
bitset
bz2
bz2_filter
calendar
coin_acceptor
crack
ctype
curl
date
dba
dbase
dom
doublemetaphone
exif
ftp
gd
geoip
gettext
gmagick
gmp
gnupg
haru
hash
huffman
iconv
idn
igbinary
imagick
imap
inclued
inotify
interbase

oncube_loader
ldap
libxml
lzf
mbstring
mcrypt
memcache
msgpack
mysql
mysqli
ncurses
odbc
openssl
pcntl
pcre
pdo
pdo_oci*
pdo_firebird
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pgsql
posix
pspell
quickhash
radius
readline
redis
session
shmop
snmp
sourceguardian
soap
sockets
ssh2
standard
stats
stem
sybase_ct
sysvmsg
sysvsem
sysvshm
tidy
timezonedb
tokenizer
translit
wddx
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xsl
zlib

* CloudLinux 6/7

PHP 5.2 extensions

Reflection
SPL
SimpleXML
apc
apm
ares
bcmath
bcompiler
big_int
bitset
bloomy
bz2
bz2_filter
calendar
coin_acceptor
crack
ctype
curl
date
dba
dbase
dbx
dom
doublemetaphone
eaccelerator
enchant
exif
ffmpeg**
fileinfo
filter
ftp
gd
gender
geoip
geos
gettext
gmagick
gmp
gnupg
haru
hash
hidef
htscanner
http
huffman
iconv
idn
igbinary
imagick
imap
inclued
inotify
interbase
intl
ioncube_loader
json
ldap
libxml
lzf
mailparse
mbstring
mcrypt
memcache
memcached
mhash
mongo
msgpack
mssql
mysql
mysqli
ncurses
oauth
odbc
opcache
openssl
pcntl
pcre
pdf
pdo
pdo_dblib
pdo_firebird

pdo_mysql
pdo_oci**
pdo_odbc
pdo_pgsql
pdo_sqlite
pgsql
phar
posix
pspell
quickhash
radius
rar
readline
recode
redis
rsync
session
shmop
snmp
soap
sockets
sourceguardian
spl_types
sqlite
ssh2
standard
stats
stem
stomp
suhosin
sybase_ct
sysvmsg
sysvsem
sysvshm
tidy
timezonedb
tokenizer
translit
uploadprogress
uuid
wddx
xcache
xcache_3
xdebug
xhprof
xml
xmlreader
xmlrpc
xmlwriter
xrange
xsl
xcache*
yaf
yaz
zend_optimizer
zip
zlib

* CloudLinux 6

** CloudLinux 6/7

PHP 5.3 extensions

amqp
apc
apcu
apm
ares
bcmath
bcompiler
big_int
bitset
bloomy
brotli
bz2
bz2_filter
calendar
clamav**
coin_acceptor
core
crack
ctype
curl
date
dba
dbase
dbx
dom
doublemetaphone
eaccelerator
eio
enchant
ereg
exif
ffmpeg*
fileinfo
filter
ftp
functional
gd
gender
geoip
geos
gettext
gmagick
gmp
gnupg
haru
hash
hidef
htscanner
http
huffman
iconv
idn
igbinary
imagick
imap
inclued
inotify
interbase
intl
ioncube_loader
jsmin
json
ldap
libevent
libxml
lzf
mailparse
mbstring
mcrypt
memcache
memcached
mhash
mongo
msgpack
mssql
mysql
mysqli
mysqlnd
ncurses
nd_mysql
nd_mysqli
nd_pdo_mysql
oauth
odbc
opcache
openssl
pcntl
pcre
pdf
pdo
pdo_oci*
pdo_dblib
pdo_firebird
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pgsql
phalcon*
phar
posix
propro
pspell
quickhash
radius
raphf
rar
readline
recode
redis
reflection
rsync
session
shmop
simplexml
snmp
soap
sockets
sourceguardian
solr
spl
spl_types
sqlite
sqlite3
ssh2
standard
stats
stem
stomp
suhosin
sybase_ct
sysvmsg
sysvsem
sysvshm
tidy
tideways
timezonedb
tokenizer
trader
translit
uploadprogress
uri_template
uuid
wddx
weakref
xcache*
xcache_3
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xrange
xsl
xhprof
yaf
yaml
yaz
zend_guard_loader
zip
zlib
zmq

* CloudLinux 6/7

** CloudLinux 7

PHP 5.4 extensions

aapm**
amqp
apc
apcu
apm
ares
bcmath
big_int
bitset
brotli
bz2
bz2_filter
calendar
core
ctype
curl
clos_ssa
date
dba
dbase
dbx
dom
doublemetaphone
eaccelerator
eio
enchant
ereg
exif
ffmpeg*
fileinfo
filter
ftp
functional
gd
gender
geoip
geos
gettext
gmagick
gmp
gnupg
haru
hash
hidef
htscanner
http
iconv
igbinary
imagick
imap
inclued
inotify
interbase
intl
ioncube_loader
json
ldap
libevent
libsodium
libxml
lzf
luasandbox*
mailparse
mbstring
mcrypt
memcache
memcached
mhash
mongo
mongodb
msgpack
mssql
mysql
mysqli
mysqlnd
ncurses
nd_mysql
nd_mysqli
nd_pdo_mysql
oauth
oci8*
odbc
opcache
openssl
pcntl
pcre
pdf
pdo
pdo_dblib
pdo_firebird
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pdo_oci*
pgsql
phalcon*
phar
posix
propro
pspell
quickhash
radius
raphf
rar
readline
recode
redis
reflection
rsync
session
shmop
simplexml
snmp
soap
sockets
solr
sourceguardian
spl
spl_types
sqlite3
ssh2
standard
stats
stem
stomp
suhosin
sybase_ct
sysvmsg
sysvsem
sysvshm
tidy
tideways
timezonedb
tokenizer
trader
translit
uploadprogress
uri_template
uuid
wddx
weakref
xcache*
xcache_3
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xrange
xray***
xsl
xhprof
jsmin
yaf
yaml
yaz
zend_guard_loader
zip
zlib
zmq

* CloudLinux 6/7

** CloudLinux 7

*** CloudLinux 7/8

PHP 5.5 extensions

aapm**
amqp
apcu
apm
ares
bcmath
big_int
bitset
brotli
bz2
bz2_filter
calendar
clamav**
core
ctype
curl
clos_ssa
date
dba
dbase
dbx
dom
doublemetaphone
diseval
eio
enchant
ereg
exif
ffmpeg*
fileinfo
filter
ftp
gd
gender
geoip
geos
gettext
gmagick
gmp
gnupg
gRPC
haru
hash
hidef
htscanner
http
iconv
igbinary
imagick
imap
inotify
interbase
intl
ioncube_loader
jsmin
json
ldap
libevent
libsodium
libxml
lzf
luasandbox*
mailparse
mbstring
mcrypt
memcache
memcached
mhash
mongo
mongodb
msgpack
mssql
mysql
mysqli
mysqlnd
ncurses
nd_mysql
nd_mysqli
nd_pdo_mysql
oauth
oci8*
odbc
opcache*
openssl
pcntl
pcre
pdf
pdo
pdo_dblib
pdo_firebird
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pdo_oci*
pgsql
phalcon*
phalcon3
phar
posix
postal*
propro
pspell
quickhash
radius
raphf
rar
readline
recode
redis
reflection
rsync
session
shmop
simplexml
snmp
soap
sockets
sourceguardian
solr
spl
spl_types
sqlite3
ssh2
standard
stats
stem
stomp
suhosin
sybase_ct
sysvmsg
sysvsem
sysvshm
tidy
tideways
timezonedb
tokenizer
trader
translit
uploadprogress
uri_template
uuid
wddx
weakref
xcache_3
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xrange
xray
xsl
xhprof
yaf
yaml
yaz
zend_guard_loader
zip
zlib
zmq

* CloudLinux 6/7

** CloudLinux 7

PHP 5.6 extensions

aapm**
amqp
apcu
apm
ares
bcmath
big_int
bitset
brotli
bz2
bz2_filter
calendar
core
ctype
curl
clos_ssa**
date
dba
dbase
dbx
dom
doublemetaphone
diseval
eio
enchant
ereg
exif
ffmpeg*
fileinfo
filter
ftp
gd
gender
geoip
gettext
geos
gmagick
gmp
gnupg
gRPC
haru
hash
htscanner
http
iconv
igbinary
imagick
imap
inotify
interbase
intl
ioncube_loader
jsmin
json
ldap
libevent
libsodium
libxml
lzf
luasandbox*
mailparse
mbstring
mcrypt
memcache
memcached
mhash
mongo
mongodb
msgpack
mssql
mysql
mysqli
mysqlnd
ncurses
nd_mysql
nd_mysqli
nd_pdo_mysql
oauth
oci8
odbc
opcache*
openssl
pcntl
pcre
pdf
pdo
pdo_dblib
pdo_firebird
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pdo_oci*
pgsql
phalcon*
phalcon3
phar
posix
postal**
propro
pspell
quickhash
radius
raphf
rar
readline
recode
redis
reflection
rsync
session
shmop
simplexml
snmp
soap
sockets
sourceguardian
spl
spl_types
sqlite3
ssh2
standard
stats
stem
stomp
solr
suhosin
sybase_ct
sysvmsg
sysvsem
sysvshm
tidy
timezonedb
tokenizer
trader
translit
tideways
uploadprogress
uri_template
uuid
wddx
xcache_3
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xrange
xray
xsl
xhprof
yaml
yaz
zend_guard_loader
zip
zlib
zmq

* CloudLinux 6/7

** CloudLinux 7

PHP 7.0 extensions

aapm**
amqp
apcu
bcmath
bitset
brotli
bz2
clos_ssa**
calendar
core
ctype
curl
date
dba
dbase
dom
diseval
eio
enchant
exif
fileinfo
filter
ftp
ffmpeg*
gd
gearman
gender
geos
geoip
gettext
gmagick
gmp
gnupg
gRPC
hash
htscanner
http
iconv
igbinary
imagick
imap
inotify
interbase
intl
ioncube_loader
jsmin
json
ldap
libsodium
libxml
lzf
luasandbox*
mailparse
mbstring
mcrypt
memcached
memcache
mongodb
mysqli
mysqlnd
nd_mysqli
nd_pdo_mysql
newrelic
oauth
oci8*
odbc
opcache
openssl
pcntl
pcre
pdf
pdo
pdo_dblib
pdo_firebird
pdo_mysql
psr
pdo_odbc
pdo_pgsql
pdo_sqlite
pdo_sqlsrv
pdo_oci
pgsql
phalcon3
phar
posix
postal**
propro
pspell
phalcon4
raphf
rar
readline
rrd
redis
reflection
recode
session
shmop
simplexml
snmp
snuffleupagus
soap
sockets
sourceguardian
sodium
solr
spl
sqlite3
sqlsrv
ssh2
standard
stats
suhosin7
sysvmsg
swoole
sysvsem
sysvshm
tidy
timezonedb
tokenizer
trader
tideways_xhprof
uploadprogress
uuid
vips*
vld**
wddx
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xray
xsl
yaml
yaz
yaf
zip
zlib
zmq

* CloudLinux 6/7

** CloudLinux 7

Note

To use newrelic extension you should set your own New Relic License Key in your own /opt/alt/php7*/etc/php.ini file. Please find more info about New Relic License Key in the New Relic documentation.

PHP 7.1 extensions

aapm**
amqp
snuffleupagus
vld
apcu
bcmath
brotli
bz2
clos_ssa**
calendar
core
ctype
curl
date
dba
dbase
dom
diseval
eio
enchant
exif
fileinfo
filter
ftp
ffmpeg*
gd
gearman
gender
geoip
gettext
geos
gmagick
gmp
gnupg
gRPC
hash
htscanner
http
iconv
igbinary
imagick
imap
inotify
interbase
intl
ioncube_loader
jsmin
json
ldap
libsodium
libxml
lzf
luasandbox*
mailparse
mbstring
mcrypt
memcached
memcache
mongodb
mysqli
mysqlnd
nd_mysqli
nd_pdo_mysql
newrelic
oauth
oci8
odbc
opcache
openssl
pcntl
pcre
pdo
pdo_dblib
pdo_firebird
pdo_mysql
pdo_odbc
pdo_pgsql psr

pdo_sqlite
pdo_sqlsrv
pgsql
phalcon3
phar
pdf
pdo_oci
phalcon4
posix
propro
pspell
psr**
raphf
rar
readline
redis
reflection
rrd
recode
solr
session
shmop
simplexml
snmp
soap
sockets
sourceguardian
spl
sodium
sqlite3
sqlsrv
ssh2
standard
stats
suhosin7
sysvmsg
swoole
sysvsem
sysvshm
tidy
timezonedb
tokenizer
trader
tideways_xhprof
uploadprogress
uuid
vips*
wddx
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xsl
xray
yaz
yaml
yaf
zip
zlib
zmq

* CloudLinux 6/7

** CloudLinux 7

Note

To use newrelic extension you should set your own New Relic License Key in your own /opt/alt/php7*/etc/php.ini file. Please find more info about New Relic License Key in the New Relic documentation.

PHP 7.2 extensions

aapm**
jsmin
psr
rrd
yaz
amqp
snuffleupagus
vld
apcu
bcmath
brotli
bz2
calendar
clos_ssa**
core
ctype
curl
date
dba
dom
dbase
diseval
eio
enchant
exif
fileinfo
filter
ftp
ffmpeg*
gd
gender
geoip
gettext
gearman
geos
gmagick
gmp
gnupg
gRPC
hash
http
iconv
igbinary
imagick
imap
inotify
interbase
intl
ioncube_loader
json
ldap
libxml
lzf
luasandbox*
mcrypt
memcache
mailparse
mbstring
memcached
mongodb
mysqli
mysqlnd
nd_mysqli
nd_pdo_mysql
newrelic
oauth
oci8
odbc
opcache
openssl
pcntl
pcre
pdo
pdo_dblib
pdo_firebird
pdf
pdo_oci
phalcon4
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pdo_sqlsrv
pgsql
phalcon3
phar
posix
propro
pspell
raphf
readline
redis
reflection
recode
sodium
sourceguardian
swoole
session
shmop
simplexml
snmp
soap
sockets
spl
sqlite3
sqlsrv
ssh2
standard
stats
sysvmsg
sysvsem
sysvshm
tidy
timezonedb
tokenizer
trader
tideways_xhprof
uploadprogress
uuid
vips*
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
xdebug
yaf
yaml
zip
zlib
zmq
xray

Note

To use newrelic extension you should set your own New Relic License Key in your own /opt/alt/php7*/etc/php.ini file. You can find more info about New Relic License Key in the New Relic documentation.

* CloudLinux 6/7

** CloudLinux 7

PHP 7.3 extensions

ffmpeg*
aapm**
amqp
clos_ssa**
gearman
jsmin
mailparse
memcache
psr
rrd
solr
tideways_xhprof
zmq
snuffleupagus
vld
apcu
bz2
brotli
calendar
core
ctype
curl
date
exif
enchant
filter
ftp
gettext
gmp
gnupg
hash
iconv
interbase
luasandbox*
libxml
mysqlnd
opcache
openssl
pcntl
pcre
pdo_pgsql
phar
readline
reflection
session
shmop
simplexml
sourceguardian
spl
sqlite3
standard
snmp
stats
tokenizer
trader
xmlreader
bcmath
fileinfo
grpc
intl
lzf
nd_mysqli
pdf
pdo
posix
swoole
uploadprogress
xmlrpc
gd
http
ioncube_loader
mbstring
nd_pdo_mysql
pdo_dblib
pdo_sqlite
propro
soap
sysvmsg
uuid
xmlwriter
dbase
gender
igbinary
mcrypt
newrelic
pdo_firebird
pdo_sqlsrv
pspell
sockets
sysvsem
vips*
xsl
dba
geoip
imagick
json
memcached
oauth
pdo_mysql
pgsql
raphf
sodium
sysvshm
yaml
dom
geos
imap
ldap
mongodb
oci8
pdo_oci
phalcon3
recode
sqlsrv
tidy
wddx
yaz
eio
gmagick
inotify
leveldb
mysqli
odbc
pdo_odbc
phalcon4
redis
ssh2
timezonedb
xdebug
zip
xml
zlib
xray
yaf

* CloudLinux 6/7

** CloudLinux 7

Note

To use newrelic extension you should set your own New Relic License Key in your own /opt/alt/php7*/etc/php.ini file. You can find more info about New Relic License Key in the New Relic documentation.

PHP 7.4 extensions

leveldb
sourceguardian
ffmpeg*
amqp
clos_ssa**
gearman
ioncube_ loader
jsmin
mailparse
mcrypt
memcache
psr
rrd
solr
ssh2
tideways_xhprof
yaz
zmq
apcu
bcmath
brotli
bz2
calendar
core
ctype
curl
date
dba
dbase
dom
eio
enchant
exif
fileinfo
filter
ftp
gd
gender
geoip
geos
gettext
gmagick
gmp
gnupg
grpc
hash
http
iconv
igbinary
imagick
imap
inotify
intl
json
ldap
libxml
luasandbox*
lzf
mbstring
memcached
mongodb
mysqli
mysqlnd
nd_mysqli
nd_pdo_mysql
newrelic
snuffleupagus
oauth
oci8
odbc
opcache
openssl
pcntl
pcre
pdf
pdo
pdo_dblib
pdo_firebird
pdo_mysql
pdo_oci
pdo_odbc
pdo_pgsql
vld
pdo_sqlite
pdo_sqlsrv
pgsql
phalcon4
phar
posix
propro
pspell
raphf
readline
redis
reflection
phalcon5
session
shmop
simplexml
snmp
soap
sockets
sodium
spl
sqlite3
sqlsrv
standard
stats
swoole
sysvmsg
sysvsem
sysvshm
tidy
timezonedb
tokenizer
trader
xray
uploadprogress
uuid
vips*
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xsl
yaml
zip
zlib

* CloudLinux 6/7

** CloudLinux 7

PHP 8.0 extensions

brotli
amqp
clos_ssa***
core
date
filter
gearman
geoip
gmagick
gnupg***
grpc
apcu
bcmath
bz2
calendar
ctype
curl
dba
dbase
dom
enchant
exif
ffi**
fileinfo
hash
igbinary
inotify
jsmin
json
libxml
mcrypt
memcache ftp
gd
gettext
gmp
iconv
imagick
imap
intl
ldap
lzf
mailparse
mbstring
mongodb
newrelic
oauth
oci8
openssl
pcntl
pcre
pdo_oci
pdo_sqlsrv
readline
redis
reflection
rrd
session memcached
mysqli
mysqlnd
nd_mysqli
nd_pdo_mysql
odbc
opcache
pdo
pdo_dblib
pdo_firebird
pdo_mysql
pdo_odbc
snuffleupagus
solr
SPL
sqlsrv
ssh2
standard
swoole
tideways_xhprof
trader pdo_pgsql
pdo_sqlite
pgsql
phar
posix
pspell
psr
raphf
shmop
simplexml
snmp
soap
sockets
uploadprogress
uuid
vips*
vld
xdebug
xmlrpc**
yaml
yaz
zip
zlib sodium
sqlite3
sysvmsg
sysvsem
sysvshm
tidy
timezonedb
tokenizer
xml
xmlreader
xmlwriter
xsl
zmq
sourceguardian
phalcon5
xray

* CloudLinux 6/7

** CloudLinux 7/8

*** CloudLinux 7

PHP 8.1 extensions

amqp
apcu
bcmath
brotli
bz2
calendar
clos_ssa***
Core
ctype
curl
date
dba
dbase
dom
enchant
exif
ffi**
fileinfo
filter
ftp
gd
geoip
gearman
gettext
gmagick
gmp
gnupg**
grpc
hash
ioncube_loader
iconv
igbinary
imagick
imap
inotify
intl
jsmin
json
ldap
libxml
lzf
mailparse
mbstring
mcrypt
memcache
memcached
mongodb
mysqli
mysqlnd
nd_mysqli
nd_pdo_mysql
newrelic
oauth
oci8
odbc
opcache
openssl
pcntl
pcre
pdf
pdo
pdo_dblib
pdo_mysql
pdo_oci
pdo_odbc
phalcon5
pdo_pgsql
pdo_firebird
pdo_sqlite
pdo_sqlsr
pgsql
phar
posix
process
pspell
psr
rrd
raphf
readline
redis
Reflection
session
shmop
SimpleXML v snmp
solr
sourceguardian
soap
sockets
sodium
SPL
sqlite3
sqlsrv
ssh2
standard
swoole
sysvmsg
sysvsem
sysvshm
tideways_xhprof
tidy
timezonedb
tokenizer
trader
uploadprogress
uuid
vips*
xdebug
xml
xmlreader
xmlrpc**
xmlwriter
xsl
yaf
yaml
zip
zlib
zmq
xray

* CloudLinux 6/7

** CloudLinux 7/8

*** CloudLinux 7

PHP 8.2 extensions

amqp**
apcu**
bcmath
brotli**
bz2
calendar
Core
ctype
curl
date
dba
dbase**
dom
enchant
exif
ffi
fileinfo
filter
ftp
gd
gearman**
geoip**
gettext
gmagick**
gmp
gnupg*
grpc**
hash
iconv
igbinary**
imagick**
imap
inotify**
intl
jsmin**
json
ldap
libxml
lzf**
mailparse**
mbstring
mcrypt**
memcache**
memcached**
mongodb**
mysqlnd
nd_mysqli
nd_pdo_mysql
oauth**
oci8**
odbc
opcache
openssl
pcntl
pcre**
pdo
pdo_dblib
pdo_firebird
pdo_mysql*
pdo_oci**
pdo_odbc
pdo_pgsql
pdo_sqlite
pdo_sqlsrv**
pgsql
phar
posix
pspell
psr**
random
raphf**
readline
redis**
Reflection
rrd**
session
shmop
SimpleXML
snmp
soap
sockets
sodium
solr**
SPL
sqlite3
sqlsrv**
ssh2**
standard
swoole**
sysvmsg
sysvsem
sysvshm
tideways_xhprof**
tidy
timezonedb**
tokenizer
trader**
uploadprogress**
uuid**
vips*
xdebug**
xml
xmlreader
xmlrpc**
xmlwriter
xsl
yaml**
zip
zlib
zmq**

* CloudLinux 7

** CloudLinux 7/8

PHP 8.3 extensions

amqp**
apcu**
bcmath
brotli**
bz2
calendar
Core
ctype
curl
date
dba
dbase**
dom
elastic_apm
enchant
exif
ffi
fileinfo
filter
ftp
gd
gearman**
geoip**
gettext
gmagick**
gmp
gnupg*
grpc**
hash
iconv
igbinary**
imagick**
imap
inotify**
intl
ioncube_loader
jsmin**
json
ldap
libxml
lzf**
mailparse**
mbstring
mcrypt**
memcache**
memcached**
mongodb**
mysqli
mysqlnd
nd_mysqli
nd_pdo_mysql
oauth**
oci8**
odbc
opcache
openssl
pcntl
pcre**
pdf
pdo
pdo_dblib
pdo_firebird
pdo_mysql*
pdo_oci**
pdo_odbc
pdo_pgsql
pdo_sqlite
pdo_sqlsrv**
pgsql
phalcon5
phar
posix
pspell
psr**
random
raphf**
readline
redis**
Reflection
rrd**
session
shmop
SimpleXML
snmp
snuffleupagus
soap
sockets
sodium
solr**
SPL
sqlite3
sqlsrv**
ssh2**
standard
sysvmsg
sysvsem
sysvshm
tideways_xhprof**
tidy
timezonedb**
tokenizer
trader**
uploadprogress**
uuid**
xml
xmlreader
xmlrpc**
xmlwriter
xsl
yaml**
zip
zlib
zmq**

* CloudLinux 7

** CloudLinux 7/8

How do I install alt-php?

What commands should I use to install alt-php on CloudLinux and Ubuntu?

Installation occurs using package management tools such as "YUM" for CentOS/RHEL-based systems or "APT-GET" for Ubuntu-based systems. Here are the general steps for installing alt-php:

For CentOS/RHEL-based Systems (Using YUM):

Each version of PHP individually or all versions at once can be installed.

Standard commands to install each version separately can be used. For example, installing alt-php73:

yum install alt-php73*

To install all versions at the same time, use group:

yum groupinstall alt-php

To find out which groups are available for installation, use the following command:

sudo yum group list

Example:

sudo yum group list 
............ 

Available Environment Groups:
   Server with GUI
   Server
   Minimal Install
   CloudLinux OS Admin (minimal)
   CloudLinux OS Solo (minimal)
   Workstation
   Custom Operating System
   Virtualization Host
Available Groups:
   alt-nodejs
   alt-nodejs10
   alt-nodejs11
   alt-nodejs12
   alt-nodejs14
   alt-nodejs6
   alt-nodejs8
   alt-nodejs9
   alt-php
   alt-php44
   alt-php51
   alt-php52
 ..................
   alt-ruby30
   alt-ruby31
   alt-ruby32

To get a list of packages of a specific group, use the following command:

sudo yum groupinfo alt-phpXY

"XY" - version of alt-php

For example:

sudo yum groupinfo alt-php72 
............ 

Group: alt-php72
 Description: PHP 7.2.x packages for CloudLinux OS PHP Selector
 Default Packages:
   alt-php72
   alt-php72-bcmath
   alt-php72-brotli
   alt-php72-cli
   alt-php72-common
   alt-php72-dba
   alt-php72-devel
  ................
   alt-php72-xml
   alt-php72-xmlrpc

For Debian-based Systems (Using APT-GET):

Each version of PHP individually or all versions at once can be installed.

Standard commands to install each version separately can be used. For example, installing alt-php73:

apt-get install alt-php73*

To install all versions at the same time, it is necessary to use the alt-php meta-package:

apt-get install alt-php

To find out which meta-packages are available for installation, use the following command:

apt list -a | grep alt-php

For example:

apt list -a | grep alt-php 
............
alt-php-config/unknown 1-51.1 amd64
alt-php-internal-bcmath/unknown 7.4.33-13.1 amd64
alt-php-internal-bcmath/unknown 7.4.13-3 amd64
alt-php-internal-cli/unknown,now 7.4.33-13.1 amd64 [installed,automatic]
alt-php-internal-cli/unknown 7.4.13-3 amd64
alt-php-internal-common/unknown,now 7.4.33-13.1 amd64 [installed,automatic]
alt-php-internal-common/unknown 7.4.13-3 amd64
.........
alt-php83-soap/unknown 8.3.0rc3-1 amd64
alt-php83-sodium/unknown 8.3.0rc3-1 amd64
alt-php83-tidy/unknown 8.3.0rc3-1 amd64
alt-php83-xml/unknown 8.3.0rc3-1 amd64
alt-php83/unknown 8.3.0rc3-1 amd64
alt-php/unknown 1-5 all

To get a list of packages of a specific meta-package, use the following command:

apt-cache showpkg alt-phpXY

"XY" - version of alt-php

For example:

apt-cache showpkg alt-php72
............
Dependencies:
7.2.34-34 - alt-php72-cli (5 7.2.34-34) alt-php72-common (5 7.2.34-34) libcurl4-openssl-dev (0 (null)) libreadline-dev (0 (null)) libwebp-dev (0 (null))
7.2.34-33 - alt-php72-cli (5 7.2.34-33) alt-php72-common (5 7.2.34-33) libcurl4-openssl-dev (0 (null)) libreadline-dev (0 (null)) libwebp-dev (0 (null))
7.2.34-19.2 - alt-pcre (0 (null)) alt-php72-cli (5 7.2.34-19.2) alt-php72-common (5 7.2.34-19.2) alt-php-config (2 1-45) alt-sqlite (0 (null)) libcurl4-openssl-dev (0 (null)) libreadline-dev (0 (null)) libwebp-dev (0 (null)) libxml2 (0 (null))

Important!

When executing the apt command, a warning may appear:

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

The apt commandline is designed as an end-user tool and it may change behavior between versions. While it tries not to break backward compatibility this is not guaranteed either if a change seems beneficial for interactive use. All features of apt are available in dedicated APT tools like apt-get and apt-cache as well.  apt just changes the default value of some options. Therefore, we recommend using these commands (potentially with some additional options enabled) as they keep backward compatibility as much as possible.

How can I check which versions of PHP are already installed?

The method for checking which versions of PHP are installed can vary depending on your operating system. Below are instructions for common operating systems:

For CentOS/RHEL:

You can use the yum list command to list installed PHP packages. Open a terminal and run:

sudo yum list installed | grep php

This will display a list of installed PHP packages along with their versions.

For example (CL 8 after installing alt-php73):

sudo yum list installed | grep php 
............
alt-php-config.noarch                       1-54.el8                                               @cloudlinux-updates-testing
alt-php-internal.x86_64                     7.4.33-6.el8                                           @cloudlinux-updates-testing
alt-php-internal-cli.x86_64                 7.4.33-6.el8                                           @cloudlinux-updates-testing
alt-php-internal-common.x86_64              7.4.33-6.el8                                           @cloudlinux-updates-testing
alt-php-internal-intl.x86_64                7.4.33-6.el8                                           @cloudlinux-updates-testing
alt-php-internal-mbstring.x86_64            7.4.33-6.el8                                           @cloudlinux-updates-testing
alt-php-libc-client11.x86_64                2007f-3.el8                                            @cloudlinux-updates-testing
alt-php-ssa.x86_64                          0.4-3.el8                                              @AppStream

alt-php73.x86_64                            1:7.3.33-18.el8                                        @cloudlinux-updates-testing
alt-php73-apm-agent.x86_64                  1.9.0-1.el8                                            @cloudlinux-updates-testing
alt-php73-bcmath.x86_64                     1:7.3.33-18.el8                                        @cloudlinux-updates-testing
alt-php73-bcmath-debuginfo.x86_64           1:7.3.31-2.el8                                         @cloudlinux-updates-testing
alt-php73-brotli.x86_64                     0.5.0-2.el8                                            @cloudlinux-x86_64-server-8
.....................
alt-php73-xmlrpc-debuginfo.x86_64           1:7.3.31-2.el8                                         @cloudlinux-updates-testing

For Ubuntu/Debian:

On Ubuntu and Debian, you can use the dpkg command to list installed PHP packages. Open a terminal and run:

dpkg -l | grep php

This will show a list of installed PHP packages along with their versions.

For example (Ubuntu 20.04 after installing alt-php73):

dpkg -l | grep php  
............
ii  alt-php-internal-cli                  7.4.33-13.1                       amd64        command-line interpreter for the PHP scripting language
ii  alt-php-internal-common               7.4.33-13.1                       amd64        documentation, examples and common module for PHP
ii  alt-php-internal-intl                 7.4.33-13.1                       amd64        Internationalisation module for PHP
ii  alt-php-internal-mbstring             7.4.33-13.1                       amd64        MBSTRING module for PHP
ii  alt-php-libc-client                   2007f-1                           amd64        Provides a common API for accessing mailboxes.
ii  alt-php73                             7.3.33-19                         amd64        server-side, HTML-embedded scripting language (metapackage)
ii  alt-php73-bcmath                      7.3.33-19                         amd64        Bcmath module for PHP
ii  alt-php73-cli                         7.3.33-19                         amd64        command-line interpreter for the PHP scripting language
ii  alt-php73-common                      7.3.33-19                         amd64        documentation, examples and common module for PHP
ii  alt-php73-dba                         7.3.33-19                         amd64        DBA module for PHP
ii  alt-php73-dev                         7.3.33-19                         amd64        Files for PHP7.0 module development
ii  alt-php73-enchant                     7.3.33-19                         amd64        Enchant module for PHP
ii  alt-php73-firebird                    7.3.33-19                         amd64        firebird module for PHP
......................
ii  alt-php73-xmlrpc                      7.3.33-19                         amd64        XMLRPC-EPI module for PHP

How do I find out what dependencies alt packages have?

Dependencies for a successful installation of alt packages may vary depending on the specific packages and their versions. However, typically, the system automatically manages dependencies and provides the necessary packages when installing selected components. Here are general recommendations for finding dependencies:

For CentOS/RHEL-based Systems (Using YUM):

Use the command sudo yum deplist alt-phpXY (XY is a version of PHP) to view dependencies for a specific package.

For example:

sudo yum deplist alt-php73  
............
package: alt-php73-1:7.3.15-1.2.el8.x86_64
  dependency: /bin/sh
   provider: bash-4.4.20-4.el8_6.x86_64
  dependency: alt-libcurl
   provider: alt-libcurl-7.64.0-2.el8.x86_64
  dependency: alt-libxml2
   provider: alt-libxml2-2.10.2-3.el8.x86_64
..................
package: alt-php73-1:7.3.15-2.2.el8.x86_64
  dependency: /bin/sh
   provider: bash-4.4.20-4.el8_6.x86_64
  dependency: alt-libcurl
   provider: alt-libcurl-7.64.0-2.el8.x86_64
..................

For Debian-based Systems (Using APT):

Use the command sudo apt-cache depends alt-phpXY (XY is a version of PHP) to view dependencies for a specific package.

For example:

sudo apt-cache depends alt-php74  
............
alt-php74
  Depends: alt-php74-cli
  Depends: alt-php74-common
  Depends: libreadline-dev
  Depends: libwebp-dev

During the installation process, the package manager, such as YUM or APT, automatically handles dependencies, and you will usually see a list of packages that will be installed, modified, or removed to satisfy dependency requirements.

If there are issues with dependencies, it can often be resolved by manually installing the missing packages. It's important to pay attention to any error messages provided by the system and follow the suggested instructions.

How do I check the current version of alt-php packages?

To check the current version of alt-php packages, you can use the following commands depending on the operating system you are using.

For CentOS/RHEL (Using YUM):

sudo yum list installed | grep alt-package-name

Replace "alt-package-name" with the specific name of the package.

For example:

sudo yum list installed | grep alt-php73-firebird  
............
alt-php73-firebird.x86_64                   1:7.3.33-18.el8                                        @cloudlinux-updates-testing
alt-php73-firebird-debuginfo.x86_64         1:7.3.31-2.el8                                         @cloudlinux-updates-testing

For Ubuntu (Using APT):

dpkg -l | grep alt-package-name

Replace "alt-package-name" with the specific name of the package.

For example:

dpkg -l | grep alt-php73-firebird  
............ 

ii  alt-php73-firebird                    7.3.33-19                         amd64        firebird module for PHP

These commands will show information about the currently installed version of the package.

How do I update alt-php?

To update alt-php, you typically follow a process that involves using the package management tools provided by CloudLinux.
Below are general steps to update alt-php:

For CentOS/RHEL-based Systems (Using YUM):

  1. Check for Updates:
sudo yum check-update

Example:

sudo yum check-update  
............ 

kernel.x86_64                                    1:4.18.0-513.9.1.lve.el8                    cloudlinux-x86_64-server-8
kernel-core.x86_64                               1:4.18.0-513.9.1.lve.el8                    cloudlinux-x86_64-server-8
kernel-modules.x86_64                            1:4.18.0-513.9.1.lve.el8                    cloudlinux-x86_64-server-8
kernel-tools.x86_64                              1:4.18.0-513.9.1.lve.el8                    cloudlinux-x86_64-server-8
kernel-tools-libs.x86_64                         1:4.18.0-513.9.1.lve.el8                    cloudlinux-x86_64-server-8
python3-perf.x86_64                              1:4.18.0-513.9.1.lve.el8                    cloudlinux-x86_64-server-8
Obsoleting Packages
alt-python-cllib.x86_64                          2.0.8-3.el8.cloudlinux                      cloudlinux-updates-testing
    alt-python27-cllib.x86_64                    3.3.9-1.el8.cloudlinux                      @cloudlinux-updates-testing
  1. Update All Packages, Including alt-php:

Updating all groups whose names start with "alt-php":

sudo yum update alt-php*

Updating a group named "alt-php":

sudo yum groupupdate alt-php

You can specify a group with a specific version of alt-php:

sudo yum groupupdate alt-phpXY

"XY" - version of alt-php

For example:

sudo yum groupupdate alt-php74  
............ 

Dependencies resolved.
========================================================================================================================
 Package                           Architecture    Version                    Repository                           Size
========================================================================================================================
Installing group/module packages:
 alt-php74                         x86_64          7.4.33-13.el8              cloudlinux-updates-testing           24 k
 alt-php74-bcmath                  x86_64          7.4.33-13.el8              cloudlinux-updates-testing           34 k
 alt-php74-brotli                  x86_64          0.5.0-2.el8                cloudlinux-x86_64-server-8          293 k
 alt-php74-cli                     x86_64          7.4.33-13.el8              cloudlinux-updates-testing          9.3 M
 alt-php74-common                  x86_64          7.4.33-13.el8              cloudlinux-updates-testing          480 k
 .....................
  libdav1d                          x86_64          0.5.2-1.el8                cloudlinux-updates-testing          346 k
 svt-av1-libs                      x86_64          0.8.7-1.el8                cloudlinux-updates-testing          4.7 M
Installing Groups:
 alt-php74

Transaction Summary
========================================================================================================================
Install  53 Packages

Total download size: 38 M
Installed size: 139 M
Is this ok [y/N]:

For Debian-based Systems (Using APT):

  1. Update the Package Lists:
sudo apt-get update

Then get a list of possible updates:

apt list --upgradable

Example:

sudo apt-get update  
............  

Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:2 http://us.archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:4 https://repo.cloudlinux.com/cloudlinux-ubuntu/cloudlinux/stable/20.04 focal InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:6 https://repo.cloudlinux.com/cloudlinux-ubuntu/cloudlinux/testing/20.04 focal InRelease [1,168 B]
Hit:7 https://repo.cloudlinux.com/cloudlinux-ubuntu/cloudlinux-ea4/stable/20.04 focal InRelease
Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2,604 kB]
Hit:9 https://repo.cloudlinux.com/cloudlinux-ubuntu/cloudlinux-ea4/testing/20.04 focal InRelease
Get:10 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2,994 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [680 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [914 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [913 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [633 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [761 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,139 kB]
Get:17 https://repo.cloudlinux.com/cloudlinux-ubuntu/cloudlinux/testing/20.04 focal/main amd64 Packages [84.8 kB]
Fetched 11.0 MB in 5s (2,182 kB/s)
Reading package lists... Done

apt list --upgradable  
 
............
Listing... Done
alt-python27-cllib/unknown 3.3.9-1 amd64 [upgradable from: 3.3.8-1]
curl/focal-updates,focal-security 7.68.0-1ubuntu2.21 amd64 [upgradable from: 7.68.0-1ubuntu2.20]
libcurl3-gnutls/focal-updates,focal-security 7.68.0-1ubuntu2.21 amd64 [upgradable from: 7.68.0-1ubuntu2.20]
libcurl4-openssl-dev/focal-updates,focal-security 7.68.0-1ubuntu2.21 amd64 [upgradable from: 7.68.0-1ubuntu2.20]
libcurl4/focal-updates,focal-security 7.68.0-1ubuntu2.21 amd64 [upgradable from: 7.68.0-1ubuntu2.20]
librados2/focal-updates 15.2.17-0ubuntu0.20.04.5 amd64 [upgradable from: 15.2.17-0ubuntu0.20.04.4]
librbd1/focal-updates 15.2.17-0ubuntu0.20.04.5 amd64 [upgradable from: 15.2.17-0ubuntu0.20.04.4]
mod-hostinglimits/unknown 1.0-41 amd64 [upgradable from: 1.0-40]
  1. Upgrade Alt-PHP:

Updating all groups whose names start with "alt-php":

sudo apt-get upgrade alt-php*

Updating a group named "alt-php":

sudo apt-get upgrade alt-php

You can specify a group with a specific version of alt-php:

sudo apt-get upgrade alt-phpXY

"XY" - version of alt-php

For example:

sudo apt-get upgrade alt-php83  
............
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  alt-php83 alt-php83-cli alt-php83-common
The following packages will be upgraded:
  alt-python27-cllib curl libcurl3-gnutls libcurl4 libcurl4-openssl-dev libpq5 librados2 librbd1 mod-hostinglimits
9 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.3 MB of archives.
After this operation, 44.7 MB of additional disk space will be used.
Do you want to continue? [Y/n]

What commands should I use to search for packages in repositories?

For CentOS/RHEL (using YUM):

Search for a package:

sudo yum search alt-package-name

For example:

sudo yum search alt-php73-firebird  
............ 

========================================================= Name Exactly Matched: alt-php73-firebird =========================================================
alt-php73-firebird.x86_64 : Firebird and Interbase extensions
======================================================== Name & Summary Matched: alt-php73-firebird ========================================================
alt-php73-firebird-debuginfo.x86_64 : Debug information for package alt-php73-firebird

For Ubuntu (using APT):

Search for a package:

sudo apt search alt-package-name

For example:

sudo apt search alt-php73-firebird  
............ 

Sorting... Done
Full Text Search... Done
alt-php73-firebird/unknown,now 7.3.33-19 amd64 [installed]
  firebird module for PHP

When using these commands, replace "alt-package-name" with the specific name of the package you are looking for or want to install.

How to use alt-php

When you deploy an updated version of PHP, using your system’s regular update tool (yum, dnf, apt), the new version will be installed under /opt/alt/php[version]/. This means that all modules, configurations and additional files pertaining to this version will be contained inside that path. Different versions of PHP will each have their own path and can coexist without issues on the same system. Below you will find the location of all the relevant files, should you want to make any changes.

The bin files:

[root@localhost ~]# ll /opt/alt/phpXY/usr/bin/
bytekit          hphpa            pear             pecl             phar.phar        phpcb            php-config       phpcpd           phploc           phpunit-skelgen
dbunit           lsphp            peardev          phar             php              php-cgi          phpcov           phpize           phpunit          ppw

Modules and pecl extensions:

ls /opt/alt/phpXY/usr/lib64/php/modules/  

ZendGuardLoader.so  imagick.so         oci8.so          stem.so
amqp.so             imap.so            odbc.so          stomp.so
apc.so              inclued.so         opcache.so       suhosin.so
apcu.so             inotify.so         pdf.so           sybase_ct.so
apm.so              interbase.so       pdo.so           sysvmsg.so
ares.so             intl.so            pdo_dblib.so     sysvsem.so
bcmath.so           ioncube_loader.so  pdo_firebird.so  sysvshm.so
big_int.so          ixed.5.4.lin       pdo_mysql.so     tideways.so
bitset.so           jsmin.so           pdo_oci.so       tidy.so
brotli.so           json.so            pdo_odbc.so      timezonedb.so
bz2_filter.so       ldap.so            pdo_pgsql.so     trader.so
dba.so              libevent.so        pdo_sqlite.so    translit.so
dbase.so            libsodium.so       pgsql.so         uploadprogress.so
dbx.so              luasandbox.so      phalcon.so       uri_template.so
dom.so              lzf.so             phar.so          uuid.so
doublemetaphone.so  mailparse.so       posix.so         wddx.so
eaccelerator.so     mbstring.so        propro.so        weakref.so
eio.so              mcrypt.so          pspell.so        xcache.so
enchant.so          memcache.so        quickhash.so     xcache_3.so
fileinfo.so         memcached.so       radius.so        xdebug.so
functional.so       mongo.so           raphf.so         xhprof.so
gd.so               mongodb.so         rar.so           xmlreader.so
gender.so           msgpack.so         recode.so        xmlrpc.so
geoip.so            mssql.so           redis.so         xmlwriter.so
geos.so             mysql.so           rsync.so         xrange.so
gmagick.so          mysqli.so          snmp.so          xsl.so
gnupg.so            mysqlnd.so         soap.so          yaf.so
haru.so             ncurses.so         sockets.so       yaml.so
hidef.so            nd_mysql.so        solr.so          yaz.so
htscanner.so        nd_mysqli.so       spl_types.so     zip.so
http.so             nd_pdo_mysql.so    ssh2.so          zmq.so
igbinary.so         oauth.so           stats.so

Running code on a specific version through the CLI:

[root@localhost ~]# /opt/alt/phpXY/usr/bin/php helloworld.php
Hello, World!

Location of ini config files:

[root@localhost ~]# ls /opt/alt/phpXY/etc/php.d.all/
40-leveldb.ini        mailparse.ini     redis.ini
40-snuffleupagus.ini  mbstring.ini      rrd.ini
40-vld.ini            mcrypt.ini        snmp.ini
amqp.ini              memcache.ini      snuffleupagus-default.rules
apcu.ini              memcached.ini     soap.ini
bcmath.ini            mongodb.ini       sockets.ini
dba.ini               mysqli.ini        sodium.ini
dbase.ini             mysqlnd.ini       solr.ini
dom.ini               nd_mysqli.ini     sourceguardian.ini
eio.ini               nd_pdo_mysql.ini  sqlsrv.ini
enchant.ini           newrelic.ini      ssh2.ini
ffmpeg.ini            oauth.ini         stats.ini
fileinfo.ini          oci8.ini          swoole.ini
gd.ini                odbc.ini          sysvmsg.ini
gearman.ini           opcache.ini       sysvsem.ini
gender.ini            pdf.ini           sysvshm.ini
geoip.ini             pdo.ini           tideways_xhprof.ini
geos.ini              pdo_dblib.ini     tidy.ini
gmagick.ini           pdo_firebird.ini  timezonedb.ini
gnupg.ini             pdo_mysql.ini     trader.ini
grpc.ini              pdo_oci.ini       uploadprogress.ini
http.ini              pdo_odbc.ini      uuid.ini
igbinary.ini          pdo_pgsql.ini     vips.ini
imagick.ini           pdo_sqlite.ini    xdebug.ini
imap.ini              pdo_sqlsrv.ini    xmlreader.ini
inotify.ini           pgsql.ini         xmlrpc.ini
intl.ini              phalcon4.ini      xmlwriter.ini
ioncube_loader.ini    phar.ini          xsl.ini
jsmin.ini             posix.ini         yaml.ini
json.ini              propro.ini        yaz.ini
ldap.ini              pspell.ini        zip.ini
luasandbox.ini        psr.ini           zmq.ini
lzf.ini               raphf.ini

Location of default.ini:

ls /opt/alt/phpXY/etc/php.d/default.ini

Listing enabled modules on a specific version:

[root@localhost ~]# /opt/alt/php73/usr/bin/php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
exif
filter
ftp
gettext
gmp
hash
iconv
libxml
openssl
pcntl
pcre
readline
Reflection
session
shmop
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
zlib

[Zend Modules]

Enabling a module through the CLI:

[root@localhost ~]# /opt/alt/php73/usr/bin/php -d "extension=igbinary.so" -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
exif
filter
ftp
gettext
gmp
hash
iconv
igbinary
libxml
openssl
pcntl
pcre
readline
Reflection
session
shmop
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
zlib

[Zend Modules]

As you can see, each version is entirely self-contained, and changing configurations in one will not impact the others, a desired feature in hosting environments.

Enabling a module through the configuration files:

1. Direct inclusion in the specific extension's ini file:

  • If each extension has its own ini file (e.g., memcached.ini), open that file. Location of ini config files:
/opt/alt/phpXY/etc/php.d.all/
  • Inside the ini file, find lines starting with ; before the extension name (e.g., ;extension=memcached.so). The ; sign at the beginning of the line means that this extension is currently inactive.

  • Remove the ; before the line with the extension name to activate it.

  • Save the changes in the ini file.

If there is no such line:

  • Inside the ini file, add line extension=memcached.so

  • Save the changes in the ini file.

2. Enabling through default.ini:

  • Open the default.ini file, usually located in the PHP configuration directory:
/opt/alt/phpXY/etc/php.d/default.ini
  • Find lines starting with ; before the extension name. The ; sign at the beginning of the line means that this extension is currently inactive.

  • Remove the ; before the line with the extension name to activate it.

If there is no such line:

  • Add line extension=extension name.so (where extension name.so - name of extension you need).

  • Save the changes in the default.ini file.

Note:

- Typically, extensions with their own ini files are enabled or disabled directly in their respective ini files, allowing for more explicit specification of which extensions should be enabled for a specific PHP configuration.

- On the other hand, extensions that should be enabled by default on all systems may be listed in default.ini. This file is used to set default settings for PHP and can be used to enable default extensions.

- If you're unsure which file to modify to enable a specific extension, it's recommended to first try enabling it in the extension's own ini file. If you encounter issues or need to enable an extension on all systems by default, you can try adding it to default.ini.

alt-python

The information will be added later.

alt-ruby

The information will be added later.

alt-nodejs

The information will be added later.

alt-php/python/ruby/nodejs End Of Life

CloudLinux provides additional security support time of php, python, ruby and nodejs after the end of support from the vendor. Below are tables with information about the time of security support from the vendor and from CloudLinux.

*EOL - end of life

*SST - security support time

alt-php EOL

VersionReleasedEOL by vendorSST by vendor (years)EOL by CloudLinuxSST by Cloudlinux after vendor's EOL (years)
4.407.11.200508.07.20082.701.07.202314.9
5.123.11.200524.08.20060.801.04.202417.6
5.201.11.200606.01.20114.2
5.329.06.200914.08.20145.1
5.429.02.201214.09.20153.5
5.519.06.201321.07.20163.1
5.627.08.201431.12.20184.3
7.012.01.201510.01.20193.9
7.130.11.201601.12.20193.0
7.228.11.201730.11.20203.0
7.304.12.201806.12.20213.0
7.426.11.201928.11.20223.0
8.024.11.202026.11.20233.0
8.123.11.202125.11.20243.0
8.208.12.202208.12.20253.0

alt-python EOL

VersionReleasedEOL by vendorSST by vendor (years)EOL by CloudLinuxSST by Cloudlinux after vendor's EOL (years)
2.729.09.201229.09.20175.0
3.329.09.201229.09.20175.0
3.415.03.201418.03.20195.0
3.512.09.201513.09.20205.0
3.622.12.201623.12.20215.0
3.726.06.201827.06.20235.0
3.814.10.201914.10.20245.0
3.905.10.202005.10.20255.0
3.1005.04.202104.10.20265.4
3.1124.10.202224.10.20275.0
3.1202.10.202302.10.20285.0

alt-ruby EOL

VersionReleasedEOL by vendorSST by vendor (years)EOL by CloudLinuxSST by Cloudlinux after vendor's EOL (years)
1.824.02.201324.02.20163.0
1.924.02.201324.02.20163.0
2.024.02.201324.02.20163.0
2.125.12.201331.03.20173.3
2.225.12.201431.03.20183.3
2.324.12.201531.03.20193.3
2.423.12.201631.03.20203.3
2.525.12.201731.03.20213.3
2.625.12.201831.03.20223.3
2.725.12.201931.03.20233.3
3.025.12.202031.03.20243.3
3.125.12.202131.03.20253.3
3.225.12.202231.03.20263.3

alt-nodejs EOL

VersionReleasedEOL by vendorSST by vendor (years)EOL by CloudLinuxSST by Cloudlinux after vendor's EOL (years)
626.04.201630.04.20193.0
830.03.201731.12.20192.8
931.10.201730.06.20180.6
1024.04.201830.04.20213.0
1123.10.201830.06.20190.7
1223.04.201930.04.20223.0
1421.04.202030.04.20233.0
1620.04.202111.09.20232.3
1819.04.202230.04.20253.0
1918.10.202201.06.20230.6
2018.04.202330.04.20263.0