PHP Options


Last modified: March 17, 2020

Overview

This document lists the PHP options available in EasyApache 4.

Select the PHP extensions that you wish to use in WHM’s EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4) or use the yum utility. For more information about how to install a PHP package with yum, read our How to Locate and Install a PHP Version or Extension documentation.

Note:
Use the repoquery command to determine which package installs a specific extension. Use the following command to run the query, where ea-php72-php-mysqli represents the extension that you wish to install:
repoquery -q --whatprovides 'ea-php72-php-mysqli' | sort -V | tail -1

Opcode cachers

An opcode cacher improves the efficiency of your PHP applications but also uses more memory. The following option installs an opcode cacher on your server:

Current PHP opcodes

Opcode Cacher PHP 7.1 PHP 7.2 PHP 7.3 PHP 7.4 Vendor
OPCache X X X X Docs

Legacy PHP opcodes

Opcode Cacher PHP 5.4 PHP 5.5 PHP 5.6 PHP 7.0 Vendor
OPCache X X X Docs
Warning:
  • EasyApache 4 does not currently support any opcode cacher other than OPCache.
  • Opcode caching programs are not compatible with the suPHP or CGI PHP handlers. The caching program either does not function, or functions incorrectly.
  • The system does not automatically configure OPCache. If you do not manually configure OPCache after you install it, it will provide no benefits.
  • We strongly recommend the DSO PHP handler for the OPCache opcode cacher.
  • Do not install multiple PHP caching programs on the same system. Multiple opcode caching programs consume excessive memory and degrade system performance.

PHP loaders or encoders

A PHP loader allows PHP to execute encoded applications. This ensures that others cannot access your code. You can use one of the following options to install a PHP loader on your web server:

Current PHP loaders

PHP Encoder PHP 7.1 PHP 7.2 PHP 7.3 PHP 7.4 Vendor
SourceGuardian Loader X X Docs
ionCube Loader 4 Docs
ionCube Loader 5 Docs
ionCube Loader 6 Docs
ionCube Loader 10 X X X Docs
Zen Guard Loader Docs

Legacy PHP loaders

PHP Encoder PHP 5.4 PHP 5.5 PHP 5.6 PHP 7.0 Vendor
SourceGuardian Loader X X X X Docs
ionCube Loader 4 X X X Docs
ionCube Loader 5 X X X Docs
ionCube Loader 6 X X X X Docs
ionCube Loader 10 X X X X Docs
Zen Guard Loader X X X Docs
Note:
  • The Apache information page incorrectly displays Zend Guard Loader as version 3.3. Your version of PHP determines the version of Zend Guard Loader that the system actually uses.

    • If you use PHP versions 5.5 or 5.6, EasyApache uses Zend Guard Loader version 7.0.
    • If you use PHP version 5.4, EasyApache uses Zend Guard Loader version 6.0.
  • The IonCube configuration file name varies based on the version of PHP that you use.

    • If you use PHP versions 5.4 or 5.5, IonCube uses the the ioncube.ini file.
    • If you use PHP version 5.6, IonCube uses the 01-ioncube.ini file.
  • You cannot use multiple versions of ionCube simultaneously.

  • EasyApache 4 uses SourceGuardian version 11.0.6 for PHP versions 5.6 and 7.0.

  • EasyApache 4 uses SourceGuardian version 11.0.5 for PHP versions 5.4 and 5.5.

PHP extensions

PHP provides many built-in extensions. You can use these extensions to add functionality to your PHP applications or your web server.

Available PHP extensions

Note:

EasyApache adheres to the php.net supported versions timeline. The profiles that we supply in WHM’s EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4) only provide PHP versions that php.net currently supports.

RPMs for unsupported versions of PHP will remain on the cPanel L.L.C. mirrors and servers, but we will not provide any further updates.

Current PHP extensions

Module Name PHP 7.1 PHP 7.2 PHP 7.3 PHP 7.4 Vendor Description cPanel Default profile Conflicts
argon2 X X X Docs Password hashing algorithm
bcmath X X X X Docs Arbitrary precision mathematics X
bz2 X X X X Docs Read and write bzip2 (.bz2) compressed files
calendar X X X X Docs Calendar date manipulation X
ctype X X X X Docs Check character class
curl X X X X Docs Support for Curl (http, https, http/2, ftp, telnet)
Note:
You must install the mod_http2 Apache module for HTTP/2 support.
X
date X X X X Docs Get the server date and time
dba X X X X Docs Access DB-style databases
dbg X X X X Docs PHP debugger
dom X X X X Docs Document object module
enchant X X X X Docs Spell check
ereg Docs Regular expression match
exif X X X X Docs Parse image metadata
fileinfo X X X X Docs Content/Encoding detection
filter X X X X Docs Filter data by validating or sanitizing
fpm X X X X Docs FastCGI Process Manager X
ftp X X X X Docs FTP (File Transfer Protocol) support X
gd X X X X Docs Image functions (.gif, .jpg, .png) X
gettext X X X X Docs Native language support API
gmp X X X X Docs GNU multiple precision
hash X X X X Docs Message digest (hash) engine
iconv X X X X Docs Character set conversion X
imap X X X X Docs Mail functions (SMTP, POP3, IMAP) X recode
intl X X X X Docs Internationalization support
Note:
This extension is not available for PHP 7.4 on CentOS 6 systems.
json X X X X Docs JavaScript Object Notation (JSON)
ldap X X X X Docs Lightweight directory access protocol
libxml X X X X Docs XML library
litespeed X X X X Docs Litespeed SAPI X
mbregex X X X X Docs Disable mbregex support
mbstring X X X X Docs Enhanced Chinese, Japanese, and other language support X
mcrypt X Docs Encryption support
Note:
In PHP 7.2 and later, the mcrypt module only exists as a PECL extension.
X
mhash X X X X Docs Interface for the mhash library
mssql Docs MSSQL® database access
mysql Docs MySQL database access
mysqli X X X X Docs MySQL improved database access
mysqlnd X X X X Docs MySQL native driver
Warning:
The mysqlnd module does not support old pre-MySQL 4.1 passwords.
X
odbc X X X X Docs Unified ODBC
openssl X X X X Docs OpenSSL library interface
pcntl X X X X Docs Process control
pcre X X X X Docs Perl-compatible regular expressions
pdo X X X X Docs PDO database support X
pdo mysql X X X X Docs PDO MySQL support
Note:
This extension is not available for PHP 7.4 on CentOS 6 systems.
pdo_odbc X X X X Docs PDO ODBC support
pdo_pgsql X X X X Docs PostgreSQL
pdo_sqlite X X X X Docs Enable access to SQLite 3 databases
pgsql X X X X Docs PostgreSQL DB support
phalcon X Docs Phalcon extension support
phar X X X X Docs Disable Phar X
posix X X X X Docs Extended POSIX support X
pspell X X X X Docs Description
readline X X X X Docs Interface for the GNU Readline library
recode X X X Docs Interface for the GNU Recode library imap
Reflection X X X X Docs Reverse-engineer classes, interfaces, functions, methods, and extensions
session X X X X Docs Session support
shmop X X X X Docs Description
SimpleXML X X X X Docs SimpleXML support
snmp X X X X Docs SNMP (Simple Network Management Protocol) support
soap X X X X Docs SOAP server and client support
sockets X X X X Docs Raw socket support X
SPL X X X X Docs Standard PHP library
sqlite3 X X X X Docs SQLite version 3 database support
Note:
This extension is not available for PHP 7.4 on CentOS 6 systems.
suhosin X X X X Docs Improves the security of PHP installations
sysvmsg X X X X Docs System V messages support
sysvsem X X X X Docs System V semaphore support
sysvshm X X X X Docs System V shared memory support
tidy X X X X Docs Tidy HTML formatter
tokenizer X X X X Docs PHP tokenizer functionality
wddx X X X Docs WDDX support
xml X X X X Docs XML support X
xmlreader X X X X Docs XML Pull parser
xmlrpc X X X X Docs XMLRPC client and server support
xmlwriter X X X X Docs XML writer extension
xsl X X X X Docs XSL support
zip X X X X Docs Read and write zip archives
zlib X X X X Docs Read and write gzip archives

Legacy PHP extensions

Module Name PHP 5.4 PHP 5.5 PHP 5.6 PHP 7.0 Vendor Description cPanel Default profile Conflicts
argon2 Docs Password hashing algorithm
bcmath X X X X Docs Arbitrary precision mathematics X
bz2 X X X X Docs Read and write bzip2 (.bz2) compressed files
calendar X X X X Docs Calendar date manipulation X
ctype X X X X Docs Check character class
curl X X X X Docs Support for Curl (http, https, http/2, ftp, telnet)
Note:
You must install the mod_http2 Apache module for HTTP/2 support.
X
date X X X X Docs Get the server date and time
dba X X X X Docs Access DB-style databases
dbg X Docs PHP debugger
dom X X X X Docs Document object module
enchant X X X X Docs Spell check
ereg X X X Docs Regular expression match
exif X X X X Docs Parse image metadata
fileinfo X X X X Docs Content/Encoding detection
filter X X X X Docs Filter data by validating or sanitizing
fpm X X X X Docs FastCGI Process Manager X
ftp X X X X Docs FTP (File Transfer Protocol) support X
gd X X X X Docs Image functions (.gif, .jpg, .png) X
gettext X X X X Docs Native language support API
gmp X X X X Docs GNU multiple precision
hash X X X X Docs Message digest (hash) engine
iconv X X X X Docs Character set conversion
imap X X X X Docs Mail functions (SMTP, POP3, IMAP) X recode
intl X X X X Docs Internationalization support
json X X X X Docs JavaScript Object Notation (JSON)
ldap X X X X Docs Lightweight directory access protocol
libxml X X X X Docs XML library
litespeed X X X X Docs Litespeed SAPI X
mbregex X X X X Docs Disable mbregex support
mbstring X X X X Docs Enhanced Chinese, Japanese, and other language support
mcrypt X X X X Docs Encryption support
Note:
In PHP 7.2 and later, the mcrypt module only exists as a PECL extension.
X
mhash X X X X Docs Interface for the mhash library
mssql X X X Docs MSSQL® database access
mysql X X X Docs MySQL database access
mysqli X X X X Docs MySQL improved database access
mysqlnd X X X X Docs MySQL native driver
Warning:
The mysqlnd module does not support old pre-MySQL 4.1 passwords.
X
odbc X X X X Docs Unified ODBC
openssl X X X X Docs OpenSSL library interface
pcntl X X X X Docs Process control
pcre X X X X Docs Perl-compatible regular expressions
pdo X X X X Docs PDO database support X
pdo mysql X X X X Docs PDO MySQL support
pdo_odbc X X X X Docs PDO ODBC support
pdo_pgsql X X X X Docs PostgreSQL
pdo_sqlite X X X X Docs Enable access to SQLite 3 databases
pgsql X X X X Docs PostgreSQL DB support
phalcon X X Docs Phalcon extension support
phar X X X X Docs Disable Phar X
posix X X X X Docs Extended POSIX support X
pspell X X X X Docs Description
readline X X X X Docs Interface for the GNU Readline library
recode X X X X Docs Interface for the GNU Recode library imap
Reflection X X X X Docs Reverse-engineer classes, interfaces, functions, methods, and extensions
session X X X X Docs Session support
shmop X X X X Docs Description
SimpleXML X X X X Docs SimpleXML support
snmp X X X X Docs SNMP (Simple Network Management Protocol) support
soap X X X X Docs SOAP server and client support
sockets X X X X Docs Raw socket support X
SPL X X X X Docs Standard PHP library
sqlite3 X X X X Docs SQLite version 3 database support
suhosin X X X Docs Improves the security of PHP installations
sysvmsg X X X X Docs System V messages support
sysvsem X X X X Docs System V semaphore support
sysvshm X X X X Docs System V shared memory support
tidy X X X X Docs Tidy HTML formatter
tokenizer X X X X Docs PHP tokenizer functionality
wddx X X X X Docs WDDX support
xml X X X X Docs XML support X
xmlreader X X X X Docs XML Pull parser
xmlrpc X X X X Docs XMLRPC client and server support
xmlwriter X X X X Docs XML writer extension
xsl X X X X Docs XSL support
zip X X X X Docs Read and write zip archives
zlib X X X X Docs Read and write gzip archives

Additional Documentation