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:
- 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.
- 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.
- 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.
- 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.
- 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 6 | Cloudlinux 7 | Cloudlinux 8 | Cloudlinux 9 | |
---|---|---|---|---|
alt-php 5.1 | x | x | x | |
alt-php 5.2 | x | x | x | x |
alt-php 5.3 | x | x | x | x |
alt-php 5.4 | x | x | x | x |
alt-php 5.5 | x | x | x | x |
alt-php 5.6 | x | x | x | x |
alt-php 7.0 | x | x | x | x |
alt-php 7.1 | x | x | x | x |
alt-php 7.2 | x | x | x | x |
alt-php 7.3 | x | x | x | x |
alt-php 7.4 | x | x | x | x |
alt-php 8.0 | x | x | x | x |
alt-php 8.1 | x | x | x | x |
alt-php 8.2 | x | x | x | x |
alt-php 8.3 | x | x | x | x |
2. Debian
Debian 10 | Debian 11 | Debian 12 | |
---|---|---|---|
alt-php 5.1 | |||
alt-php 5.2 | |||
alt-php 5.3 | |||
alt-php 5.4 | |||
alt-php 5.5 | |||
alt-php 5.6 | x | x | x |
alt-php 7.0 | x | x | x |
alt-php 7.1 | x | x | x |
alt-php 7.2 | x | x | x |
alt-php 7.3 | x | x | x |
alt-php 7.4 | x | x | x |
alt-php 8.0 | x | x | x |
alt-php 8.1 | x | x | x |
alt-php 8.2 | x | x | x |
alt-php 8.3 | x | x | x |
3. Ubuntu
Ubuntu 16.04 | Ubuntu 18.04 | Ubuntu 20.04 | Ubuntu 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.6 | x | x | x | x |
alt-php 7.0 | x | x | x | x |
alt-php 7.1 | x | x | x | x |
alt-php 7.2 | x | x | x | x |
alt-php 7.3 | x | x | x | x |
alt-php 7.4 | x | x | x | x |
alt-php 8.0 | x | x | x | x |
alt-php 8.1 | x | x | x | x |
alt-php 8.2 | x | x | x | x |
alt-php 8.3 | x | x | x | x |
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
- PHP 5.2 extensions
- PHP 5.3 extensions
- PHP 5.4 extensions
- PHP 5.5 extensions
- PHP 5.6 extensions
- PHP 7.0 extensions
- PHP 7.1 extensions
- PHP 7.2 extensions
- PHP 7.3 extensions
- PHP 7.4 extensions
- PHP 8.0 extensions
- PHP 8.1 extensions
- PHP 8.2 extensions
- PHP 8.3 extensions
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 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 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 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 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 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 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 | 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 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 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 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 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** 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):
- 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
- 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):
- 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]
- 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
(whereextension 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
Version | Released | EOL by vendor | SST by vendor (years) | EOL by CloudLinux | SST by Cloudlinux after vendor's EOL (years) |
---|---|---|---|---|---|
4.4 | 07.11.2005 | 08.07.2008 | 2.7 | 01.07.2023 | 14.9 |
5.1 | 23.11.2005 | 24.08.2006 | 0.8 | 01.04.2024 | 17.6 |
5.2 | 01.11.2006 | 06.01.2011 | 4.2 | ||
5.3 | 29.06.2009 | 14.08.2014 | 5.1 | ||
5.4 | 29.02.2012 | 14.09.2015 | 3.5 | ||
5.5 | 19.06.2013 | 21.07.2016 | 3.1 | ||
5.6 | 27.08.2014 | 31.12.2018 | 4.3 | ||
7.0 | 12.01.2015 | 10.01.2019 | 3.9 | ||
7.1 | 30.11.2016 | 01.12.2019 | 3.0 | ||
7.2 | 28.11.2017 | 30.11.2020 | 3.0 | ||
7.3 | 04.12.2018 | 06.12.2021 | 3.0 | ||
7.4 | 26.11.2019 | 28.11.2022 | 3.0 | ||
8.0 | 24.11.2020 | 26.11.2023 | 3.0 | ||
8.1 | 23.11.2021 | 25.11.2024 | 3.0 | ||
8.2 | 08.12.2022 | 08.12.2025 | 3.0 |
alt-python EOL
Version | Released | EOL by vendor | SST by vendor (years) | EOL by CloudLinux | SST by Cloudlinux after vendor's EOL (years) |
---|---|---|---|---|---|
2.7 | 29.09.2012 | 29.09.2017 | 5.0 | ||
3.3 | 29.09.2012 | 29.09.2017 | 5.0 | ||
3.4 | 15.03.2014 | 18.03.2019 | 5.0 | ||
3.5 | 12.09.2015 | 13.09.2020 | 5.0 | ||
3.6 | 22.12.2016 | 23.12.2021 | 5.0 | ||
3.7 | 26.06.2018 | 27.06.2023 | 5.0 | ||
3.8 | 14.10.2019 | 14.10.2024 | 5.0 | ||
3.9 | 05.10.2020 | 05.10.2025 | 5.0 | ||
3.10 | 05.04.2021 | 04.10.2026 | 5.4 | ||
3.11 | 24.10.2022 | 24.10.2027 | 5.0 | ||
3.12 | 02.10.2023 | 02.10.2028 | 5.0 |
alt-ruby EOL
Version | Released | EOL by vendor | SST by vendor (years) | EOL by CloudLinux | SST by Cloudlinux after vendor's EOL (years) |
---|---|---|---|---|---|
1.8 | 24.02.2013 | 24.02.2016 | 3.0 | ||
1.9 | 24.02.2013 | 24.02.2016 | 3.0 | ||
2.0 | 24.02.2013 | 24.02.2016 | 3.0 | ||
2.1 | 25.12.2013 | 31.03.2017 | 3.3 | ||
2.2 | 25.12.2014 | 31.03.2018 | 3.3 | ||
2.3 | 24.12.2015 | 31.03.2019 | 3.3 | ||
2.4 | 23.12.2016 | 31.03.2020 | 3.3 | ||
2.5 | 25.12.2017 | 31.03.2021 | 3.3 | ||
2.6 | 25.12.2018 | 31.03.2022 | 3.3 | ||
2.7 | 25.12.2019 | 31.03.2023 | 3.3 | ||
3.0 | 25.12.2020 | 31.03.2024 | 3.3 | ||
3.1 | 25.12.2021 | 31.03.2025 | 3.3 | ||
3.2 | 25.12.2022 | 31.03.2026 | 3.3 |
alt-nodejs EOL
Version | Released | EOL by vendor | SST by vendor (years) | EOL by CloudLinux | SST by Cloudlinux after vendor's EOL (years) |
---|---|---|---|---|---|
6 | 26.04.2016 | 30.04.2019 | 3.0 | ||
8 | 30.03.2017 | 31.12.2019 | 2.8 | ||
9 | 31.10.2017 | 30.06.2018 | 0.6 | ||
10 | 24.04.2018 | 30.04.2021 | 3.0 | ||
11 | 23.10.2018 | 30.06.2019 | 0.7 | ||
12 | 23.04.2019 | 30.04.2022 | 3.0 | ||
14 | 21.04.2020 | 30.04.2023 | 3.0 | ||
16 | 20.04.2021 | 11.09.2023 | 2.3 | ||
18 | 19.04.2022 | 30.04.2025 | 3.0 | ||
19 | 18.10.2022 | 01.06.2023 | 0.6 | ||
20 | 18.04.2023 | 30.04.2026 | 3.0 |