Introduction
This article discusses how you can modify the PHP-FPM pool settings for a specific user domain. If you wish to modify the default used by default, please see the following article instead.
How to modify system PHP-FPM settings in WHM
Procedure
To modify the user domain PHP-FPM settings in WHM, you will first need to navigate to the interface "Home »Software »MultiPHP Manager".
From there, select tab labeled "User Domain Settings" to the right of System Settings.
Inside this tab, you will see a list of all domains on the server. To modify the pool settings for the desired domain you will need to click the button labeled "PHP-FPM Settings" next to it.
Of note, this button is only available if PHP-FPM is enabled for the domain.
Once selected, you will see the following options available to be configured.
PHP-FPM Pool options
- Max Requests
- Max Children
- Process Idle Timeout
PHP-FPM INI Settings
- Treat URLs as files (allow_url_fopen)
- Log errors (log_errors)
- Recognize code between tags as PHP source (short_open_tag)
- Error Log
- Disable Functions
- Error Reporting
Once you have finished updating the settings, click the button labeled 'Update' to apply the changes.
It is advised that you verify the changes by clicking the button labeled 'Validate Settings first. There is also a 'Reset Settings' option if needed.
Documentation is available here for information on the various PHP-FPM configuration values.