From 2f34c49a698f3dab523102f12d39de9bed233b12 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Wed, 12 Jan 2022 11:44:04 +0100 Subject: [PATCH] test timeout adjustment --- tests/test.sh | 80 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 73 insertions(+), 7 deletions(-) diff --git a/tests/test.sh b/tests/test.sh index ef106a01cd..926bb5ec53 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -29,13 +29,79 @@ echo "php_value[upload_max_filesize] = 800M" >> /etc/php-fpm.d/www.conf echo "php_value[post_max_size] = 800M" >> /etc/php-fpm.d/www.conf echo "php_value[memory_limit] = -1" >> /etc/php-fpm.d/www.conf -# Customize timeouts. -sed -i 's/SetHandler "proxy:unix:\/run\/php-fpm\/www.sock|fcgi:\/\/localhost"/SetHandler "proxy:unix:\/run\/php-fpm\/www.sock\|fcgi:\/\/localhost" timeout 1200/' /etc/httpd/conf.d/php.conf -cat</etc/httpd/conf.d/fcgi.conf -FcgidIdleTimeout 1200 -FcgidProcessLifeTime 1200 -FcgidConnectTimeout 1200 -FcgidIOTimeout 1200 +# Customize php handling. +cat </etc/httpd/conf.d/php.conf +# +# The following lines prevent .user.ini files from being viewed by Web clients. +# + + + Require all denied + + + Order allow,deny + Deny from all + Satisfy All + + + +# +# Allow php to handle Multiviews +# +AddType text/html .php + +# +# Add index.php to the list of files that will be served as directory +# indexes. +# +DirectoryIndex index.php + +# mod_php options + + # + # Cause the PHP interpreter to handle files with a .php extension. + # + + SetHandler application/x-httpd-php + + + # + # Uncomment the following lines to allow PHP to pretty-print .phps + # files as PHP source code: + # + # + # SetHandler application/x-httpd-php-source + # + + # + # Apache specific PHP configuration options + # those can be override in each configured vhost + # + php_value session.save_handler "files" + php_value session.save_path "/var/lib/php/session" + php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache" + + #php_value opcache.file_cache "/var/lib/php/opcache" + + +# Redirect to local php-fpm if mod_php (5 or 7) is not available + + + + # Enable http authorization headers + SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 + + ProxySet timeout=1200 + + + + SetHandler "proxy:fcgi://localhost" + + + + + + EO_F mkdir -p /run/php-fpm/ 2>/dev/null