For cPanel & WHM version 64
How do I change the version of PHP on my server?
Systems that run EasyApache 3
cPanel & WHM only supports PHP 5 on systems that run EasyApache 3. You can only install one version of PHP 5 on your server, unless you install a customization (for example, the CloudLinux™ PHP selector).
You can install a different minor version of PHP on your server in WHM's EasyApache 3 interface (Home >> Software >> EasyApache 3). After Apache fully compiles, you can access the new PHP installation.
Systems that run EasyApache 4
cPanel & WHM supports both PHP 5 and PHP 7 on systems that run EasyApache 4.
To install multiple versions of PHP on your system, use WHM's EasyApache 4 interface (Home >> Software >> EasyApache 4) to configure your system and WHM's MultiPHP Manager interface (Home >> Software >> MultiPHP Manager) to assign PHP versions to your users. You can also install a new PHP version with yum. For more information, read our How to Locate and Install a PHP Version or Extension documentation.
How can I ensure that the homepage of a folder automatically defaults to the
Some lines in the
/usr/local/apache/conf/httpd.conf file allow the
index.php file to display automatically. If the following lines exist, the
index.php file displays:
Apache searches for a file that matches one of these names. The search starts with the
index.html.var file, searches from left to right, and ends with the
home.html file. If a file matches one of those names, the system uses that file. If the
index.php file is in the list, Apache uses the the
index.php file, unless Apache first reaches a file that matches a name in the
If those lines are not present, add the following line to an
For more information about
.htaccess files, read the Apache documentation.
Which PHP modules and plugins does cPanel & WHM support?
How can I add or remove support for different features on my Apache webserver?
Servers that run EasyApache 3
You can add or remove support for features from the Apache webserver with WHM's EasyApache 3 interface (Home >> Software >> EasyApache 3).
You can also run EasyApache from the command line with the
Servers that run EasyApache 4
You can add or remove support for features from the Apache webserver with WHM's EasyApache 4 interface (Home >> Software >> EasyApache 4).
You can also install or remove features with yum. For more information, read our Yellowdog Updater, Modified (yum) Basics documentation.
Which PHP version shows in the end user's cPanel interface?
The cPanel interface displays information for the system's default version of PHP.
On systems that run EasyApache 3, click the Server Statistics link in the Statistics section of the cPanel Home interface to view this information.
On systems that run EasyApache 4, the system displays this information in cPanel's MultiPHP Manager interface (Home >> Software >> MultiPHP Manager).
How can cPanel users choose to use a different version of PHP than the system?
Unless your server runs CloudLinux, you can only select a different version of PHP if your system uses EasyApache 4.
To select a different version of PHP, use cPanel's MultiPHP Manager interface (Home >> Software >> MultiPHP Manager).