WHM Tutorials – How to Manage Your System PHP-FPM Configuration

WHM Tutorials - How to Manage Your System PHP-FPM Configuration howdy this is Rosie our slay a technical writer for cPanel the hosting platform of choice today I will show you the new system PHP fpm configuration interface this interface is available within whm so multi PHP manager interface in cPanel and WM version 78 in this interface you can set an edit pool name and PHP ini directives for your server these settings cover the domains on your server that use PHP fpm unlike previous versions of cPanel and WHM you no longer have to make these changes from the command line as a version 78 of cPanel and WHM you can update these settings from the interface as a reminder you can only access the multi PHP manager interface if you have enabled easy Apache 4 on your system cPanel and WHM version 78 only uses easy Apache 4 if you are upgrading to cPanel and WM version 78 from an older version be sure to upgrade to easy Apache 4 first for more information check out the links in the description also remember that domains that are set to inherit their PHP version cannot use PHP fpm for more information I've included documentation links to the multi PHP manager interface in the description plus we've shown you the cool things PHP fpm can do for your domains in another video now let's see how we can further customize the PHP fpm configuration of your domains login to WHM search for multi PHP manager in the search bar or find it under the software section in the left menu once the multi PHP manager interface appears you will see three tabs these are the PHP versions tab the PHP handlers tab and the system PHP fpm configuration tab the interface opens the PHP versions tab by default let's click the system PHP fpm configuration tab to open it a new interface will appear this tab contains two sections the first section configures the system's PHP fpm pool options the second section configures the system's PHP ini directives currently the configurations in this tab contain the default system settings I will show you later in the video how to edit the PHP fpm configuration settings for one domain for now let's focus on this tab the PHP fpm pull options section allows you to edit three settings these settings are max requests process idle timeout and max children let me explain each one of these the max request value determines how many website requests a child process can handle before the process ends this helps limit the impact of memory leaks in a customized PHP script the process idle timeout value tells the system how long a child process will continue to exist after the website requests end in seconds the max children value determines how many fork processes the system can create based on the incoming requests to the PHP fpm pool since cPanel and W Thames PHP fpm setup is on demand these children only exist when you need them the next section is the php.ini directive section there are seven directives in this section allow underscore your LF open blog underscore errors short underscore open underscore tag doc underscore route air underscore log disabled underscore functions and error underscore reporting these directives give special instructions on how PHP will work on your servers domains you can find further information on these directives at secure php.net I'll add that website to the list in the description below as you can see the doc underscore route and error underscore log directives can only be edited at the domain level you'll see these directives in the domain PHP fpm configuration interface later in this video click the arrow to edit the function list for disable underscore functions to remove a function click the red X next the function you want to remove follow the same process to remove errors from the error underscore reporting list I need to make some changes to this configuration I want to increase the number of Mac's children for the domains on my server so I'll change this value to 10 would you like your cPanel account users to use their custom PHP ini directives in my case I want to let them decide at the domain level which errors they want to report I will click the unlock user overwrite ability button for the report these error setting the interface will remind you that you will need to save your changes the button clears up and if I click again it will lock the error underscore reporting directive again so I'll leave it alone for now to ensure that these settings work before you save them like validate configuration if like me you regret your life choices huh at least for this interface click reset configuration click return to PHP versions if you only wanted to look at the table to see how pretty it is and not change anything in it since I'm not going to change anything else on this page i will click validate configuration the success message tells me that the settings work so now I will click save configuration there's the success message so I know that the system saved my settings these settings will now apply to all the domains that use the system's configuration you can configure these directives at the domain level to change a domains PHP fpm configuration settings let's return to the domains table you can find the domains table in the PHP versions tab once you're in the PHP versions tab scroll down to find the domains table let's look at how to edit the PHP fpm configuration for the example.com domain remember that to be able to edit this configuration you must set PHP fpm to on for at least that domain find the example.com domain on the table then look for the edit.php fvm button at the end of the domains row click the Edit PHP fpm button to edit the PHP FPN configuration for the example.com domain a new interface will appear this interface is the domain PHP fpm configuration tab for the example.com domain this tab contains the same sections as the system PHP fpm configuration tab the first section configures the domains PHP fpm pool options the second section configures the domains PHP ini directives the current settings we have here are the system's default settings but I want to change the directory where the error log file resides I shall call it example underscore com dot PHP error dot log slash puppy I will type in the new name in the error log file error underscore log text box now I want the user that manages this domain to be able to override the settings for the system error log file I will click unlock user override ability the system will remind me to click Save configuration at the end of the interface to save my changes since I'm not going to change anything else on this page I will click Save configuration there is my confirmation message and we can close this video out because now you know how to edit the system and domain PHP fbm configuration tabs for more information about cpanel visit cpanel calm or follow us on twitter at cpanel oh don't forget to subscribe to our youtube channel cPanel TV and always remember to make good life choices example underscore cop with the heck

Leave a Reply

Your email address will not be published. Required fields are marked *