Gojko

Well-Known Member
Nov 24, 2014
101
7
18
Macedonia
cPanel Access Level
Root Administrator
Hello, i found on this forum about add to /var/cpanel/userdata/user/domain.php-fpm.yaml
Code:
---
_is_present: 1
slowlog = /var/log/php-fpm/slow.log
request_slowlog_timeout = 10s
then
Code:
/scripts/php_fpm_config --rebuild --domain=domain.tld
info [php_fpm_config] Rebuilding ...
info [php_fpm_config] Dequeued the following domains
info [php_fpm_config] Dequeued domain.tld
info [php_fpm_config] rebuild_files: working on domain (domain.tld)
Warning: During the PHP-FPM rebuild, the system detected formatting issues with the “/var/cpanel/userdata/user/domain.tld.php-fpm.yaml” file and did not apply any custom values.For more information about the correct formatting of custom values, read our Custom Templates (link: https://go.cpanel.net/EA4CustomTemplates (https://go.cpanel.net/EA4CustomTemplates)) documentation.
info [php_fpm_config] php-fpm: rebuild_files: restart fpm services for Apache
info [php_fpm_config] php-fpm: fpm services restarted
info [php_fpm_config] Rebuilding vhosts in apache conf
info [php_fpm_config] Rebuild Complete
PHP HANDLERS > CGI

i open cpanel documentation and i saw the option and value are the same as i write, so any help?

and one more question about this: this will help me to find out which php script are slow and using process and cpu too much right?
 
Last edited by a moderator:

Gojko

Well-Known Member
Nov 24, 2014
101
7
18
Macedonia
cPanel Access Level
Root Administrator
well support was fast
so this is solved and if someone has the same error need from:

Code:
slowlog = /var/log/php-fpm/slow.log
request_slowlog_timeout = 10s
add like this:
Code:
php_admin_value_slowlog: { name: 'php_admin_value[slowlog]', value: '/var/log/php-fpm/slow.log' }

php_admin_value_request_slowlog_timeout: { name: 'php_admin_value[request_slowlog_timeout]', value: '10s' }