Increasing Timeout

Discussion in 'Installation/Configuration' started by ulugbek, Jul 28, 2017.

  1. ulugbek

    ulugbek New Member

    When I used Plesk control panel, I used to upload large files. Recently, I switched to ISPconfig and now my php.ini files, Apache configuration is very similar. When I am uploading large files via web browser, exactly after 20 seconds, it stops uploading. Specifically, approximately 40% of 100 MB file uploads fine during 20 seconds; I see the percentage of the upload under the Chrome browser. Then, the value of the percentage stops after 20 seconds and shows ERR_CONNECTION_RESET error. I checked logs, but there is nothing regarding the issue. My php.ini configuration as follows:

    max_execution_time 300000
    max_input_time 300000
    upload_max_filesize 500M
    post_max_size 500M
    memory_limit 1024M
    max_file_uploads 30
    Timeout8000(in apache2.conf)
    LimitRequestBody0(in htaccess)​

    What else should I change in order to increase an execution time? Obviously, there is some config that does not allow to upload a file after 20 seconds. My assumption is that there is something in ISPconfig Configuration that must be tuned.

    OS: Debian GNU/Linux 8
    Ispconfig: 3
     
    Last edited: Jul 28, 2017
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    There is no such Limit in ISPConfig.

    Which PHP mode do you use?
    Where did you set these settings?
     
  3. ulugbek

    ulugbek New Member

    I use PHP 7.1, fast-cgi, prefork mpm, apache 2.4.

    The following codes are written in /opt/php-7.1/lib/php.ini and when I use phpinfo(), these settings are displayed:
    max_execution_time 300000
    max_input_time 300000
    upload_max_filesize 500M
    post_max_size 500M
    memory_limit 1024M
    max_file_uploads 30​

    Timeout 8000 in /etc/apache2/apache2.conf
    LimitRequestBody 0 at the bottom of .htaccess file of the web directory of the domain.

    What else should I change in order to overcome timeout of 20 seconds?
     
    Last edited: Jul 28, 2017
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, so the settings gt applied when you see them in phpinfo(). Try to use php-fpm mode, do you see the same behaviour?
     
  5. ulugbek

    ulugbek New Member

    Thank you for your quick answer. Ok, I'll try and let you know.
     
  6. ulugbek

    ulugbek New Member

    I just tried to switch to php-fpm mode, but it did not help. Exactly after 20 seconds, uploading stops.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you check the error.log of the website?
     
  8. ulugbek

    ulugbek New Member

    Yes, I checked, but there is nothing related to this issue.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Maybe you have the apache reqtimeout module enabled? if yes, try to disable it.
     

Share This Page