Page tree
Skip to end of metadata
Go to start of metadata

Overview

Websites use the PHP scripting language for applications and content. You can easily install and modify PHP on your server with EasyApache. 

When you install cPanel & WHM, the installation process automatically installs PHP with some common PHP options. 

For more information about the PHP scripting language, read the PHP documentation. 

How Apache handles PHP

By default, cPanel & WHM configures your Apache web server with the suPHP handler to handle the requests that it receives for PHP content.

Note:

The PHP handler that you select affects the speed and security of your web server. For more information about PHP handlers, read our PHP Handlers documentation.

Warning:

We no longer develop EasyApache 3 and only release security updates. We will deprecate EasyApache 3 on December 31, 2018. After that date, we will no longer update EasyApache 3. In cPanel & WHM version 78, we will remove support for EasyApache 3. For more information, read our cPanel Long-Term Support documentation.

We strongly recommend that you upgrade to EasyApache 4. For more information, read our EasyApache 4 documentation. 

Featured documentation

  EasyApache 3

IntroductionFAQ

Change Log Release Notes  

ProfilesCustomization

Tomcat

Migrate from Tomcat 5.5 to 7

How to Deploy Java Applications

Important:

EasyApache 3 does not support Tomcat for new installations. EasyApache 4 does not support Tomcat and we do not plan to provide support in the future. 

PHP versions

When the PHP development team releases a new version of PHP, we test and make the new version available in EasyApache.

Minor version number changes do not impact functionality, but major updates may require changes to your configuration. In many cases, the EasyApache software makes the necessary adjustments automatically. If you customized your configuration, you may need to make manual adjustments. 

Note:

EasyApache supplies the latest versions of PHP 5.3, 5.4, 5.5, and 5.6. If you want to use a different version of PHP, you must either use a custom module or the PHP Selector feature of the CloudLinux™ operating system to install the version that you wish to use.

  • For more information about custom modules, read our Custom Modules documentation.
  • For more information about the CloudLinux operating system, visit the CloudLinux website.

How to change your PHP version

To change your server's PHP version, select a version of PHP in the PHP Version stage of the EasyApache 3 interface (Home >> Software >> EasyApache 3).

Modify PHP

You can modify your PHP configuration through several different methods. For more information, read the following documentation:

  • PHP Options — A list of the available options in EasyApache that directly modify PHP.
  • PHP Handlers — The PHP handler that you select determines how Apache handles requests for PHP content.
  • Raw Opts — Use raw opts to modify the configuration options for your PHP build. Raw opts are lines of data that advanced users can add to a specific file on the server in order to customize the configuration of Apache, ModSecurity, or PHP builds. EasyApache allows you to specify any configuration option that Apache, ModSecurity, or PHP supports.

PHP Security

Warning:

We strongly recommend that you run EasyApache frequently if you configured your system with PHP. PHP updates occur as frequently as every other week. If your server does not have the latest version of PHP, it may be vulnerable.

For more information about PHP security, read the following documentation: