Change the default PHP version

You can define which version of PHP the system uses when Apache serves a .php file.

To change the default PHP version, select the version of PHP that you wish to use from the Default PHP Version (.php files) menu and click Save New Configuration.

Enable or disable Apache suEXEC

When you enable suEXEC, Apache runs CGI software as the account owner rather than as the nobody user.

To enable or disable suEXEC, select on or off from the Apache suEXEC menu and click Save New Configuration.

To test your new configuration, select theDo a dryruncheckbox. This feature allows you to verify the new configuration before deployment. After you clickSave New Configuration, clickApply Settingsin the following interface to apply the new settings to your PHP configuration.

Define a PHP handler

A PHP handler calls the PHP libraries that the system requires to interpret the PHP code. The handler that you choose determines the libraries that the system accesses. You may assign different PHP handlers to different versions of PHP.

Note:

If you build Apache without PHP, the interface will not display any handlers in the menu.

To define new PHP handlers, perform the following steps:

Select the handlers that you wish to handle one or both versions of PHP.

cPanel, WebHost Manager, and WHM are registered trademarks of cPanel, Inc. for providing its computer software that facilitates the management and configuration of Internet web servers. ®2018 All rights reserved.

cPanel, WebHost Manager, and WHM are registered trademarks of cPanel, Inc. for providing its computer software that facilitates the management and configuration of Internet web servers. ®2018 All rights reserved.