cPanel PHP

Valid for versions 102 through the latest version

Version:

82

84

102


Last modified: January 26, 2022

Overview

cPanel & WHM includes PHP 7.4 and its modules as a set of packages. This includes the associated PEAR and PECL packages and PHP loaders.

  • PEAR and PECL packages are software components from the PHP Extension and Application Repository (PEAR) and the PHP Extension Community Library (PECL).
  • A PHP loader allows PHP to execute encoded applications. Loaders ensure that others cannot access your PHP code.
Note:

These are cPanel & WHM’s PHP packages. To view EasyApache 4’s PHP packages, read our PHP Options documentation.

PHP modules

The PHP binary includes the following PHP modules:

  • bcmath
  • bz2
  • Core
  • ctype
  • curl
  • date
  • dom
  • fileinfo
  • filter
  • ftp
  • gd
  • gettext
  • hash
  • iconv
  • imap
  • json
  • ldap
  • libxml
  • mbstring
  • mysqli
  • openssl
  • pcntl
  • pcre
  • PDO
  • pdo_mysql
  • pdo_pgsql
  • pdo_sqlite
  • pgsql
  • Phar
  • posix
  • Reflection
  • session
  • SimpleXML
  • soap
  • sockets
  • SPL
  • sqlite3
  • standard
  • sysvsem
  • sysvshm
  • tidy
  • tokenizer
  • xml
  • xmlreader
  • xmlrpc
  • xmlwriter
  • xsl
  • zip
  • zlib
Important:

We removed these PHP modules in PHP 7.4:

  • ereg
  • mysql
  • mcrypt

PEAR and PECL modules

cPanel & WHM includes the following PEAR and PECL modules:

  • Auth_SASL
  • Cache
  • Console_Color
  • Console_Getopt
  • Console_Table
  • Content
  • Date
  • Date_Holidays
  • Date_Holidays_Australia
  • Date_Holidays_Austria
  • Date_Holidays_Brazil
  • Date_Holidays_Croatia
  • Date_Holidays_Czech
  • Date_Holidays_Denmark
  • Date_Holidays_EnglandWales
  • Date_Holidays_Finland
  • Date_Holidays_Germany
  • Date_Holidays_Iceland
  • Date_Holidays_Ireland
  • Date_Holidays_Italy
  • Date_Holidays_Japan
  • Date_Holidays_Netherlands
  • Date_Holidays_Norway
  • Date_Holidays_PHPdotNet
  • Date_Holidays_Portugal
  • Date_Holidays_Romania
  • Date_Holidays_Russia
  • Date_Holidays_SanMarino
  • Date_Holidays_Serbia
  • Date_Holidays_Slovenia
  • Date_Holidays_Spain
  • Date_Holidays_Sweden
  • Date_Holidays_Turkey
  • Date_Holidays_Ukraine
  • Date_Holidays_UNO
  • Date_Holidays_USA
  • Date_Holidays_Venezuela
  • DB
  • File
  • File_Find
  • File_Fstab
  • HTML_Template_IT
  • HTTP
  • HTTP_Request
  • HTTP_WebDAV_Server
  • Log
  • Mail
  • Mail_Mime
  • MDB2
  • Net_DNS2
  • Net_FTP
  • Net_IMAP
  • Net_SMTP
  • Net_Sieve
  • Net_Socket
  • Net_URL
  • Net_UserAgent_Detect
  • PEAR_Command_Packaging
  • Services_Weather
  • SOAP
  • Text_Figlet
  • TimeObjects
  • Trean
  • Webmail
  • XML_Parser
  • XML_RPC
  • XML_SVG
  • XML_Serializer

PHP loaders

cPanel & WHM includes the following PHP loaders:

  • ioncube
  • sourceguardian

For more information about the cPanel PHP loader option, read the PHP section of our Tweak Settings documentation.

PHP and SQL libraries

The PHP binary links to both the MySQL® and PostgreSQL® libraries.

Additional Documentation