fix: avoid timeout during install (php + httpd)
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Glenn Y. Rolland 2024-08-06 16:01:21 +02:00
parent 85de3324a5
commit e7108f75ff
2 changed files with 6 additions and 5 deletions

View file

@ -57,10 +57,11 @@ WORKDIR /var/www/html
# && mv composer.json.disabled composer.json \ # && mv composer.json.disabled composer.json \
# && composer install # && composer install
RUN sed \ # Fix configuration
-i 's|/var/www/html|/var/www/html/htdocs|' \ RUN sed -i 's|/var/www/html|/var/www/html/htdocs|' \
/etc/apache2/sites-enabled/000-default.conf /etc/apache2/sites-enabled/000-default.conf \
&& sed -i 's|^Timeout .*|Timeout 1200|' \
/etc/apache2/apache2.conf
CMD ["apache2-foreground"] CMD ["apache2-foreground"]

View file

@ -1,5 +1,5 @@
file_uploads = On file_uploads = On
upload_max_filesize = 128M upload_max_filesize = 128M
post_max_size = 128M post_max_size = 128M
max_execution_time = 600 max_execution_time = 1200
max_input_time = 120 max_input_time = 120