Ad Widget

Collapse

Configure Max_Input_time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Philipp Müller
    Junior Member
    • Mar 2021
    • 7

    #1

    Configure Max_Input_time

    Hello together,

    we would like to set up Zabbix.

    We got a Debian 10 (Buster), where an Idoit Service is installed.

    So I set up Zabbix. But I get the Error (Minimum required limit on input parse time for PHP scripts is 300 (configuration option "max_input_time"). I can’t find out how to fix this.

    Maybe you can give me some advice

    Best Regards,
    Phil




  • mwildam
    Member
    • Feb 2021
    • 72

    #2
    Somehow your screenshots are not displayed, everything black when I click one of them.
    However, I imagine, you are searching for the php.ini - that is, where the max_input_time is found. Try using
    Code:
    locate php.ini
    or
    Code:
    find / -name "php.ini"
    You might have several php.ini around. The one in the apache2 folder most probably is the one relevant to you.

    Comment

    • Philipp Müller
      Junior Member
      • Mar 2021
      • 7

      #3
      Hi,

      i don´t know why they are not visible.

      Click image for larger version

Name:	phpini.png
Views:	1171
Size:	20.0 KB
ID:	421851 Click image for larger version

Name:	Apache2conf.png
Views:	1186
Size:	36.2 KB
ID:	421852 Click image for larger version

Name:	Zabbix_Webinterface.png
Views:	1191
Size:	31.1 KB
ID:	421853

      Comment

      • mwildam
        Member
        • Feb 2021
        • 72

        #4
        I have set it to 300. - But I have several php.ini on my server. Maybe you too and you checked the wrong one.

        Comment

        • mwildam
          Member
          • Feb 2021
          • 72

          #5
          I also have a debian buster - and look how many php.ini:
          Code:
          /etc/php/7.3/apache2/php.ini
          /etc/php/7.3/apache2/php.ini.backup
          /etc/php/7.3/cli/php.ini
          /usr/lib/php/7.3/php.ini-development
          /usr/lib/php/7.3/php.ini-production
          /usr/lib/php/7.3/php.ini-production.cli
          In my case the first was the right one, but I compiled and installed zabbix server from the sources.

          Comment

          • Philipp Müller
            Junior Member
            • Mar 2021
            • 7

            #6
            I searched and found 3 php.ini. I changed the value on all of them, but no change.

            Click image for larger version

Name:	phpini2.png
Views:	1099
Size:	2.0 KB
ID:	421869


            Click image for larger version  Name:	Php-files.png Views:	0 Size:	27.6 KB ID:	421868
            Attached Files
            Last edited by Philipp Müller; 31-03-2021, 14:35.

            Comment

            • mwildam
              Member
              • Feb 2021
              • 72

              #7
              It must come from somewhere - maybe you could find the culprit with lsof or strace - to find potential files where it may come from.
              Do you have a .htaccess file there within your apache or zabbix web? - There are rumours, that you can configure php settings there also (as you did it in your apache.conf).
              Last edited by mwildam; 12-04-2021, 10:06.

              Comment

              • Philipp Müller
                Junior Member
                • Mar 2021
                • 7

                #8
                How can i find out which Config-File Zabbix is using?
                I just cant find out which config File I have to change.

                Comment

                • mwildam
                  Member
                  • Feb 2021
                  • 72

                  #9
                  You could create a php file on your zabbix web interface location with the following content:

                  Code:
                  <?php phpinfo(); ?>
                  and then got to that page - it should print out your php settings including the location from where it took the php.ini.

                  Comment

                  Working...