1

I am getting this error on the end of php-fpm container initialization. This one and another with upload_max_filesize as unknown entry.

[04-Jun-2018 13:07:59] ERROR: [/usr/local/etc/php-fpm.d/zz-docker.conf:4] unknown entry 'post_max_size'
[04-Jun-2018 13:07:59] ERROR: Unable to include /usr/local/etc/php-fpm.d/zz-docker.conf from /usr/local/etc/php-fpm.conf at line 4
[04-Jun-2018 13:07:59] ERROR: failed to load configuration file '/usr/local/etc/php-fpm.conf'
[04-Jun-2018 13:07:59] ERROR: FPM initialization failed

After changing to what was suggested in the comment:

[20-Jun-2018 10:31:03] ERROR: [/usr/local/etc/php-fpm.d/zz-docker.conf:3] Array are not allowed in the global section

My zz-docker.conf:

[global]
daemonize = no
upload_max_filesize = 4M
post_max_size = 32M

[www]
listen = [::]:9000
user = 1001
group = www-data
  • 1
    Change to php_value[upload_max_filesize] and php_admin_value[post_max_size] – Federico Sierra Jun 4 '18 at 14:05
  • Now I am getting this: [20-Jun-2018 10:31:03] ERROR: [/usr/local/etc/php-fpm.d/zz-docker.conf:3] Array are not allowed in the global section – rishta Jun 20 '18 at 10:36
  • 1
    Move inside the pool configuration [www] – Federico Sierra Jun 20 '18 at 12:46
  • 1
    Any specific reason that you are putting those parameters in php-fpm config instead of ini files? – Tejas Sarade Jun 20 '18 at 14:23
  • @Tejas, it helped when I moved it to ini, thanks. I followed some howto or doc when creating this (albeit probably not carefully enough). – rishta Jun 21 '18 at 14:55
0

As explained by Tejas Sarade, the configuration should reside in the ini file, not fpm pool config.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.