MultiPHP for cPanel
With cPanel's hosting provided by Hayhost, adjusting your account's PHP settings has never been easier. You can specify PHP versions and configurations for individual domains and subdomains under your cPanel account using the 'MultiPHP Manager' and 'MultiPHP INI Editor' tool.
You will find both tools accessible in the 'Software' section of your cPanel dashboard.
This tool is used to adjust the PHP version used for the various domains under your cPanel account. As stated on the page, any domain that is set to the ‘inherit’ value indicates that it does not have its own PHP version explicitly set. This means that the domain is using the default global PHP version and configuration, which could be adjusted by the server administrator at any time. To lock your domain to one PHP version, we recommend choosing a PHP version explicitly and avoiding the ‘inherit’ option. Using the inherited PHP version also prevents you from utilizing the PHP-FPM option you will also find in this tool.
To change the PHP version of a domain click the checkbox to the left of the domain name, then select your preferred PHP version from the drop-down list on the right side of the page and click ‘Apply’. You can set multiple domains to the same PHP version at once by selecting multiple checkboxes.
MultiPHP INI Editor
This tool is used to edit the various PHP settings and configurations for your domains. To begin, select a domain from the dropdown list at the top of the page. Selecting the ‘Home Directory’ option will adjust settings for all domains on your cPanel account. However, any domains which have options explicitly set via their own entry would have those settings take precedence over any configurations in the main Home Directory entry.
Once a location is chosen from the drop-down list, you will see multiple PHP directives which you can adjust. The directives listed here are simply the most common to require changes, you are able to make changes directly to the local PHP configuration file itself by selecting the ‘Editor Mode’ tab at the top of the screen. Please note that the Editor Mode is intended for advanced users and any misconfigurations within Editor Mode could result in PHP errors or issues on your sites, we recommend keeping track of all changes you make within the Editor Mode in case they need to be reverted.