Hello,
I am trying to change the level of logging from notice to warning as well as the location of the logs in my /var/cpanel/userdata/user/domain.php-fpm.yaml config file. I am also trying to enable slowlog but changes are not being processed by the server. This is how my domain php-fpm config file looks right now:
I then ran : Run /scripts/php_fpm_config --rebuild --domain="domain"
(where "domain" is the domain name) with the following console output:
I also restarted PHP-FPM from WHM restart services after that but the changes are not taking place.
I think the problem may be coming from the php-fpm cache config files. Under /var/cpanel/userdata/user/ I have a file domain.php-fpm.cache alongside domain.php-fpm.yaml. But the cache file only ahows :
So I tried to run /scripts/updateuserdatacache and /scripts/updateuserdatacache --force to regenerate the correct cache file but there was no output and the cache file was not regenerated.
Even after removing the old cache file, no new cache file was regenerated.
I then restarted the Apache server with no luck.
I have followed instructions from this page: Configurations Values of PHP-FPM - Version 68 Documentation - cPanel Documentation and also from the different posts ont this subject in the forum.
I also tried to make these changes in the global configuration for PHP-FPM by creating the following file /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml and adding the lines above and then run /scripts/php_fpm_config --rebuild but nothing changes.
At this point, I am not sure what to do :-(
Many thanks
sebastien
I am trying to change the level of logging from notice to warning as well as the location of the logs in my /var/cpanel/userdata/user/domain.php-fpm.yaml config file. I am also trying to enable slowlog but changes are not being processed by the server. This is how my domain php-fpm config file looks right now:
Code:
---
_is_present: 1
log_level = warning
error_log = /var/log/php-pfm/fpm_error.log
slowlog = /var/log/php-pfm/slow.log
request_slowlog_timeout = 10s
(where "domain" is the domain name) with the following console output:
Code:
info [php_fpm_config] rebuild_files: working on domain (domain.com)
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 apache conf
I think the problem may be coming from the php-fpm cache config files. Under /var/cpanel/userdata/user/ I have a file domain.php-fpm.cache alongside domain.php-fpm.yaml. But the cache file only ahows :
Code:
{"_is_present":1}
Even after removing the old cache file, no new cache file was regenerated.
I then restarted the Apache server with no luck.
I have followed instructions from this page: Configurations Values of PHP-FPM - Version 68 Documentation - cPanel Documentation and also from the different posts ont this subject in the forum.
I also tried to make these changes in the global configuration for PHP-FPM by creating the following file /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml and adding the lines above and then run /scripts/php_fpm_config --rebuild but nothing changes.
At this point, I am not sure what to do :-(
Many thanks
sebastien