[ZBX-22970] Package for Debian 12 need fresh zabbix.conf file Created: 2023 Jun 15  Updated: 2023 Jun 16  Resolved: 2023 Jun 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Marek Krolikowski Assignee: Zabbix Support Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian 12



 Description   

Update Debian 11 to Debian 12.
Login to zabbix get many warnings in dashboard:
PHP option "post_max_size" 8M Minimum required size of PHP post is 16M (configuration option "post_max_size").
PHP option "max_execution_time" 30 Minimum required limit on execution time of PHP scripts is 300 (configuration option "max_execution_time").
PHP option "max_input_time" 60 Minimum required limit on input parse time for PHP scripts is 300 (configuration option "max_input_time").

File /etc/apache2/conf-available/zabbix.conf > /etc/zabbix/apache.conf need get update for php 8.x because there is only for php 5 and 7:

<IfModule mod_php5.c>
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value max_input_vars 10000
php_value always_populate_raw_post_data -1
php_value date.timezone Europe/Warsaw
</IfModule>
<IfModule mod_php7.c>
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value max_input_vars 10000
php_value always_populate_raw_post_data -1
php_value date.timezone Europe/Warsaw
</IfModule>



 Comments   
Comment by Marek Krolikowski [ 2023 Jun 15 ]

Remember php8 is mod_php.c not mod_php8.c
I just repair this problem add to /etc/apache2/conf-available/zabbix.conf file:

<IfModule mod_php.c>
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value max_input_vars 10000
php_value always_populate_raw_post_data -1
php_value date.timezone Europe/Warsaw
</IfModule>

Comment by Marek Krolikowski [ 2023 Jun 15 ]

ok i just read new updated documentation.

apt-get install zabbix-apache-conf
Resolve this problem.

Generated at Fri May 01 18:09:56 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.