PHP_FPM max_execution timeout

Discussion in 'General' started by lano, Mar 19, 2025.

  1. lano

    lano Member

    This is driving me crazy for couple of days now, trying to find the solution.
    I'm running a script and I get "Gateway Timeout" errors after 5 minutes (300s).
    I checked and changed every parameters I could find:
    /etc/php/7.3/fpm/php.ini
    /etc/php/7.3/apache2/php.ini
    /etc/php/7.3/cgi/php.ini
    /etc/php/7.3/cli/php.ini
    to
    max_execution_time = 3000
    max_input_time = 3000​

    I also entered that parameters to Custom php.ini settings in ISPC site options.

    Next I tried to change:
    in /usr/local/ispconfig/server/conf/vhost.conf.master:

    <tmpl_if name='fastcgi_config_syntax' op='==' value='2'>
    FcgidIdleTimeout 3000​


    Current setup:
    Ispconfig 3.2.12p1
    Debian Buster (at this moment no option to upgrade)
    Apache, custom PHP versions
    On website I have enabled PHP-FPM
    (PHP 7.3 is used due to interbase / firebird module).

    I also wrote a test.php script, which terminates after 5min
    <?php
    set_time_limit(0);
    while(1) {
    sleep(10);
    }
    ?>​
    Phpinfo also shows all values correctly, "3000"
    What am I missing? I checked every known configuration file and I can't find any parameter that would limit execution time to 5min.
     

Share This Page