File upload configuration issues

I am having difficulty reconfiguring file upload size limits.
Almalinux 10. PHP 8.4.16

/etc/php.ini:
upload_max_filesize = 250M
post_max_size = 300M
memory_limit = 1024M
max_execution_time = 300

The file upload page in the Item Edit page reads:
The maximum file size is 100 MB.

I find this warning:
PHP Warning: PHP Request Startup: POST Content-Length of 112723636 bytes exceeds the limit of 104857600 bytes in Unknown on line 0

I resolved this, and I will post the solution here for anyone who might need it.
Almalinux 10. php 8.4

/etc/php-fpm.d/www.conf

Contents:

php_admin_value[upload_max_filesize] = 250M
php_admin_value[post_max_size] = 300M
php_admin_value[memory_limit] = 1024M
php_admin_value[max_execution_time] = 300

systemctl restart php-fpm

1 Like