PHP is a scripting language that websites often use for applications and content. EasyApache allows you to easily install and modify PHP for your server. When you install cPanel & WHM, the installation process automatically installs PHP with some common PHP options. For more information about the PHP scripting language, view the PHP development website.
How Apache handles PHP
By default, cPanel & WHM configures your Apache web server to use the suPHP handler to handle requests that it receives for PHP content. The PHP handler that you select affects the speed and security of your web server.
When the PHP development team makes a new version of PHP available, we test and then 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 will make the necessary adjustments automatically. If you have a custom configuration then further manual adjustments may be necessary.
If the version of PHP that you wish to use is not available in EasyApache, you must either use a custom module to install the version that you wish to use, or use the PHP Selector feature of the CloudLinux™ operating system.
How to change your PHP version
To change the version of PHP on your server, select a version of PHP in the PHP Version stage of the EasyApache (Apache Update) interface (Home >> Software >> Easyapache (Apache Update)).
There are several methods that allow you to modify your PHP configuration. For more information, read the following documentation:
It is strongly recommended that you run EasyApache frequently if you have PHP on your system. The PHP developers release PHP updates as frequently as every other week. If your server does not have the latest version of PHP, it may be vulnerable to internet attacks and the newest online threats.
PHP Loaders, or encoders
A PHP loader allows a PHP encoder application to work with your PHP scripts. A PHP encoder application encodes your PHP scripts so that others cannot access your code. The following options will install a PHP loader on your web server: