Gojko

Well-Known Member
Nov 24, 2014
112
7
68
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:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!
 

Gojko

Well-Known Member
Nov 24, 2014
112
7
68
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' }