php fpm – php-fpm records errors twice

For some reason, PHP-FPM is registering the errors twice in the error_log file. First I thought it was a method that was executed twice, but I did a small test on the index.php and it is still being recorded twice.

I have tried to search, but I have not found anyone who is doing this same problem.

I am using the Apache MPM event. This is the PHP-FPM configuration:

[global]



pid = /run/php-fpm/php-fpm.pid
log_level = notice
error_log = /srv/protected/default/logs/php-fpm_error.log
emergency_restart_threshold = 4
emergency_restart_interval = 10s
events.mechanism = epoll
includes = / etc / php / pools / * / *. conf

And the pool that I am using:

[domain_www]



user = domain
group = domain
listen = /run/php-fpm/www.domain.sock
listen.owner = http
listen.group = http
listen.mode = 0660
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 10
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.max_requests = 1000
access.log = /srv/protected/domain.tld/logs/$pool-access.log
slowlog = /srv/protected/domain.tld/logs/$pool-slow.log
request_slowlog_timeout = 10s
request_terminate_timeout = 16s
rlimit_files = 1024
rlimit_core = 0
catch_workers_output = yes
; PHP by vhost / pool of values
php_admin_value[max_execution_time] = 15; 10
php_admin_value[max_input_time] = 30; 60
php_admin_value[memory_limit] = 5M; 5M
php_admin_value[error_log] = /srv/protected/domain.tld/logs/$pool-error.log
php_admin_value[post_max_size] = 1M; 1M
php_admin_value[sys_temp_dir] = /srv/protected/domain.tld/tmp/
; php_admin_value[file_uploads] = Off
php_admin_value[upload_tmp_dir] = /srv/protected/domain.tld/uploads/
php_admin_value[session.save_path] = /srv/protected/domain.tld/sessions/

I've been trying to solve this, but I can not find where the problem is, I've even enabled the php directive ignore_repeated_errors unlucky

ignore_repeated_errors = On

Is there any other directive that controls this?