How to: Change php settings in php-fpm (cpanel)

  Control Panel, Web

In cPanel, when PHP-FPM is being used the users FPM settings need to be manually changed in order to modify php settings like upload_max_filesize, max_execution_time, etc..

The following file should be modified: /var/cpanel/userdata/babyli2978/babyliss.com.my.php-fpm.yaml

Depends on the user’s request the lines to be added:

php_admin_value_upload_max_filesize : "200M"
php_admin_value_post_max_size : "200M"
php_admin_value_max_execution_time : "300"
php_admin_value_memory_limit : "256M"
php_admin_value_max_input_vars : "3000"

Once done, run the command below:

/scripts/php_fpm_config --rebuild
/scripts/restartsrv_httpd