From bb870ab3faecfda3c9343e3ade09308aa2d9db49 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 7 Jan 2024 15:05:39 +0100 Subject: [PATCH] Extend max query execution time to 1 hour (#206) --- phpmyadmin/rootfs/etc/nginx/servers/ingress.conf | 2 +- phpmyadmin/rootfs/etc/php81/conf.d/99-phpmyadmin.ini | 2 +- phpmyadmin/rootfs/etc/phpmyadmin/config.inc.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/phpmyadmin/rootfs/etc/nginx/servers/ingress.conf b/phpmyadmin/rootfs/etc/nginx/servers/ingress.conf index e8a4a9f..126ad2a 100644 --- a/phpmyadmin/rootfs/etc/nginx/servers/ingress.conf +++ b/phpmyadmin/rootfs/etc/nginx/servers/ingress.conf @@ -8,7 +8,7 @@ server { location ~ .php$ { fastcgi_pass 127.0.0.1:9001; - fastcgi_read_timeout 900; + fastcgi_read_timeout 3610; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; diff --git a/phpmyadmin/rootfs/etc/php81/conf.d/99-phpmyadmin.ini b/phpmyadmin/rootfs/etc/php81/conf.d/99-phpmyadmin.ini index 0b02221..e68a992 100644 --- a/phpmyadmin/rootfs/etc/php81/conf.d/99-phpmyadmin.ini +++ b/phpmyadmin/rootfs/etc/php81/conf.d/99-phpmyadmin.ini @@ -1,6 +1,6 @@ [general] allow_url_fopen = Off -max_execution_time = 900 +max_execution_time = 3610 memory_limit=256M opcache.enable=1 opcache.fast_shutdown=1 diff --git a/phpmyadmin/rootfs/etc/phpmyadmin/config.inc.php b/phpmyadmin/rootfs/etc/phpmyadmin/config.inc.php index 1c540e8..03a9f29 100644 --- a/phpmyadmin/rootfs/etc/phpmyadmin/config.inc.php +++ b/phpmyadmin/rootfs/etc/phpmyadmin/config.inc.php @@ -4,6 +4,7 @@ $cfg['AllowThirdPartyFraming'] = true; $cfg['CheckConfigurationPermissions'] = false; +$cfg['ExecTimeLimit'] = 3600; $cfg['SaveDir'] = ''; $cfg['TempDir'] = sys_get_temp_dir(); $cfg['UploadDir'] = '';