Apache / php-fpm ProxyTimeout

Nethserver 7.6 1810

Good evening!

I have a configuration difficulty in Apache / php-fpm. I have a script that takes about 5 minutes to run, because sql is bringing the base data, this script is always dropped with 30 seconds of execution.

Already changed or max_ Execution_time, request_terminate_timeout but it didn’t work.

If you run the script on another server, without Nethserver and run php-fpm normally.

This link has an error like mine: https://forum.remirepo.net/viewtopic.php?id=3240

The tip would be to insert a TimeOut 300 or ProxyTimeout 300 directive to correct the problem. How would you do that on Nethserver? On the default vhost and all others.

Thanks in advance.

The default vhost doesn’t use the sethandler directive AFAIK.

For all virtualhosts you need a custom template to make the changes persistent.

Create the custom template dir:

mkdir -p /etc/e-smith/templates-custom/httpd/vhost-extra

Create /etc/e-smith/templates-custom/httpd/vhost-extra/14timeout with following content:

    # 14timeout
    TimeOut 300
    ProxyTimeout 300

Apply the configuration:

signal-event nethserver-httpd-virtualhosts-update

I recommend to update to 7.7

+1. Backup before… choose a way to but backup before update

1 Like