This video shows you how to edit the Apache PHP settings in the MultiPHP Manager interface in WHM, for cPanel & WHM version 76.
* MultiPHP Manager – Apache PHP-FPM video: COMING SOON
* PHP Inheritance documentation – https://go.cpanel.net/inherit
* MultiPHP Manager for WHM documentation – https://documentation.cpanel.net/display/76Docs/MultiPHP+Manager+for+WHM
* cPanel & WHM version 76 documentation – https://documentation.cpanel.net
Howdy! This is Rosie Arcelay, a technical writer for cPanel, the hosting platform of choice. In this video, I will show you how to edit the Apache PHP settings in the MultiPHP Manager interface in WHM.
With MultiPHP Manager, you can manage the Apache PHP and PHP-FPM settings for your server. You can also edit individual Apache PHP and PHP-FPM settings for your cPanel users.
Use the Apache PHP settings to help your cPanel users select the best PHP version to run PHP on their website. If you want to give your users a faster website load time, then enable the Apache PHP-FPM setting.
This video focuses on the Apache PHP version settings in the MultiPHP Manager interface. Click the card or view the link in the description to watch the Apache PHP-FPM video.
Let’s navigate to the MultiPHP Manager interface in WHM to get started.
To use MultiPHP Manager, your system must already have Apache PHP installed. First, set up and install your Apache server’s PHP options in WHM’s EasyApache 4 interface. I’m going to assume that you did that already for the purposes of this video.
The System PHP Version section displays the default Apache PHP version. New cPanel domains will use this PHP version by default. To change this version, click Edit. Then, click the arrow to open the menu. Select the version that you wish to use from the list. I’m going to select PHP version 7.2. Then, click Apply. You’ll get a success or failure message after the system completes the changes.
To edit the Apache PHP handlers for your system’s PHP versions, select the PHP Handlers tab at the top of the interface. The default PHP handler for each PHP version is suphp. To change the handler for a PHP version, click Edit. I’m going to open the editor for PHP version 7.0. You can select between the default suphp handler, the cgi handler, or none. ‘None’ disables that version of PHP. Choose your handler—I’m going to select suphp—then click Apply. Again, the system will show you a success or failure message when it completes the changes.
With WHM’s MultiPHP Manager, you can also edit the Apache PHP version for a single domain, or for select domains. Let me show you how to edit the Apache PHP version for a single domain.
From the MultiPHP Manager interface, scroll down to the domain’s table in the PHP Version tab. Find the domain whose Apache PHP you want to edit. In this case, I will update example dot com’s PHP version. I’m going to find example dot com on the list, then I will click the arrows to open the menu in the PHP Version column. I’m going to select PHP version 7.2 and the system does the rest.
Now I want to change the PHP version for some domains. To do this, I’m going to select the example dot com domain, and the example one dot info domains from the domains table. I want to change their Apache PHP versions from PHP 7.0 to PHP 7.2. I already selected the checkbox next to their names. So, now I’m going to scroll up a bit to the Set PHP Version per Domain section.
From the PHP version menu, select the version that you want for these domains, then click Apply. The system updates the Apache PHP version for those domains.
Here is a little note about the inherit PHP version setting. When you set a domain to ‘inherit’, Apache looks at the domain’s file structure. When it finds the first ‘.htaccess’ file, it will use that file’s PHP version. If Apache doesn’t find the ‘.htaccess’ file, it will use the system Apache PHP version. That’s the PHP version that you set in the MultiPHP Manager interface.
You can only enable the ‘inherit’ setting when you have not enabled Apache PHP-FPM for that domain. For more information about how ‘inherit’ works, read the PHP Inheritance document. I’ve included a link to this document in the description.
And… that’s it! You’re ready to edit the Apache PHP version for your cPanel users’ domains.
For more information about cPanel, visit cPanel dot com. Or follows on Twitter, at cPanel. Thanks for watching!