From e7108f75ff0ef5c5c00808668888e36b72327305 Mon Sep 17 00:00:00 2001 From: Glenn Date: Tue, 6 Aug 2024 16:01:21 +0200 Subject: [PATCH] fix: avoid timeout during install (php + httpd) --- Dockerfile | 9 +++++---- php-uploads.ini | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index da8c9e3..d3df585 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,10 +57,11 @@ WORKDIR /var/www/html # && mv composer.json.disabled composer.json \ # && composer install -RUN sed \ - -i 's|/var/www/html|/var/www/html/htdocs|' \ - /etc/apache2/sites-enabled/000-default.conf - +# Fix configuration +RUN sed -i 's|/var/www/html|/var/www/html/htdocs|' \ + /etc/apache2/sites-enabled/000-default.conf \ + && sed -i 's|^Timeout .*|Timeout 1200|' \ + /etc/apache2/apache2.conf CMD ["apache2-foreground"] diff --git a/php-uploads.ini b/php-uploads.ini index 4ba1ed2..c60e710 100644 --- a/php-uploads.ini +++ b/php-uploads.ini @@ -1,5 +1,5 @@ file_uploads = On upload_max_filesize = 128M post_max_size = 128M -max_execution_time = 600 +max_execution_time = 1200 max_input_time = 120