From 45c5e4587bc23b65c8a995aec7cafeb0620cdd32 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 8 Aug 2017 15:41:52 +0200 Subject: [PATCH] Add FCIID Timeout parameter to 'httpd.conf'. --- install_httpd-2.4.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_httpd-2.4.sh b/install_httpd-2.4.sh index 05a2c16..10b5603 100755 --- a/install_httpd-2.4.sh +++ b/install_httpd-2.4.sh @@ -7,7 +7,7 @@ ## - _VSERVER_GUEST=no -_APACHE_VERSION=2.4.26 +_APACHE_VERSION=2.4.27 _WITH_MOD_PROXY_FCGI=true _WITH_MOD_FCGID=true @@ -2711,10 +2711,10 @@ if $WITH_MOD_FCGID ; then echo "## - httpd.conf: Adjust mod_fcgid module.." >> ${_logdir}/main.log echo "## -" >> ${_logdir}/main.log cat <> ${_logdir}/main.log -perl -i.bak -n -p -e "s#^(\s*LoadModule\s+fcgid_module.+)#\1\n\n\n \# in Abstimmung mit PHP variablen\n \# upload_max_filesize = 32\n \# post_max_size = 128M\n FcgidMaxRequestLen 134217728\n\n \# By default, PHP FastCGI processes exit after handling 500 requests,\n \# and they may exit after this module has already connected to the\n \# application and sent the next request. When that occurs, an error\n \# will be logged and 500 Internal Server Error will be returned to\n \# the client. This PHP behavior can be disabled by setting\n \# PHP_FCGI_MAX_REQUESTS to 0, but that can be a problem if the PHP\n \# application leaks resources. Alternatively, PHP_FCGI_MAX_REQUESTS\n \# can be set to a much higher value than the default to reduce the\n \# frequency of this problem. FcgidMaxRequestsPerProcess can be set to\n \# a value less than or equal to PHP_FCGI_MAX_REQUESTS to resolve the\n \# roblem.\n FcgidMaxRequestsPerProcess 500\n\n \# in Abstimmung mit PHP Variablen\n \# max_execution_time = 180\n \#\n \# Default: 40\n \#\n FcgidIOTimeout 181\n\n#" \$_httpdconf +perl -i.bak -n -p -e "s#^(\s*LoadModule\s+fcgid_module.+)#\1\n\n\n \# in Abstimmung mit PHP variablen\n \# upload_max_filesize = 128M\n \# post_max_size = 512M\n FcgidMaxRequestLen 536870912\n\n \# By default, PHP FastCGI processes exit after handling 500 requests,\n \# and they may exit after this module has already connected to the\n \# application and sent the next request. When that occurs, an error\n \# will be logged and 500 Internal Server Error will be returned to\n \# the client. This PHP behavior can be disabled by setting\n \# PHP_FCGI_MAX_REQUESTS to 0, but that can be a problem if the PHP\n \# application leaks resources. Alternatively, PHP_FCGI_MAX_REQUESTS\n \# can be set to a much higher value than the default to reduce the\n \# frequency of this problem. FcgidMaxRequestsPerProcess can be set to\n \# a value less than or equal to PHP_FCGI_MAX_REQUESTS to resolve the\n \# roblem.\n FcgidMaxRequestsPerProcess 500\n\n \# in Abstimmung mit PHP Variablen\n \# max_execution_time = 180\n \#\n \# Default: 40\n \#\n #FcgidIOTimeout 181\n FcgidIOTimeout 600\n FcgidIdleTimeout 600\n FcgidProcessLifeTime 600\n FcgidConnectTimeout 600\n\n#" \$_httpdconf EOF echononl "\thttpd.conf: Adjust mod_fcgid module.." - perl -i.bak -n -p -e "s#^(\s*LoadModule\s+fcgid_module.+)#\1\n\n\n \# in Abstimmung mit PHP variablen\n \# upload_max_filesize = 32\n \# post_max_size = 128M\n FcgidMaxRequestLen 134217728\n\n \# By default, PHP FastCGI processes exit after handling 500 requests,\n \# and they may exit after this module has already connected to the\n \# application and sent the next request. When that occurs, an error\n \# will be logged and 500 Internal Server Error will be returned to\n \# the client. This PHP behavior can be disabled by setting\n \# PHP_FCGI_MAX_REQUESTS to 0, but that can be a problem if the PHP\n \# application leaks resources. Alternatively, PHP_FCGI_MAX_REQUESTS\n \# can be set to a much higher value than the default to reduce the\n \# frequency of this problem. FcgidMaxRequestsPerProcess can be set to\n \# a value less than or equal to PHP_FCGI_MAX_REQUESTS to resolve the\n \# roblem.\n FcgidMaxRequestsPerProcess 500\n\n \# in Abstimmung mit PHP Variablen\n \# max_execution_time = 180\n \#\n \# Default: 40\n \#\n FcgidIOTimeout 181\n\n#" $_httpdconf + perl -i.bak -n -p -e "s#^(\s*LoadModule\s+fcgid_module.+)#\1\n\n\n \# in Abstimmung mit PHP variablen\n \# upload_max_filesize = 128M\n \# post_max_size = 512M\n FcgidMaxRequestLen 536870912\n\n \# By default, PHP FastCGI processes exit after handling 500 requests,\n \# and they may exit after this module has already connected to the\n \# application and sent the next request. When that occurs, an error\n \# will be logged and 500 Internal Server Error will be returned to\n \# the client. This PHP behavior can be disabled by setting\n \# PHP_FCGI_MAX_REQUESTS to 0, but that can be a problem if the PHP\n \# application leaks resources. Alternatively, PHP_FCGI_MAX_REQUESTS\n \# can be set to a much higher value than the default to reduce the\n \# frequency of this problem. FcgidMaxRequestsPerProcess can be set to\n \# a value less than or equal to PHP_FCGI_MAX_REQUESTS to resolve the\n \# roblem.\n FcgidMaxRequestsPerProcess 500\n\n \# in Abstimmung mit PHP Variablen\n \# max_execution_time = 180\n \#\n \# Default: 40\n \#\n #FcgidIOTimeout 181\n FcgidIOTimeout 600\n FcgidIdleTimeout 600\n FcgidProcessLifeTime 600\n FcgidConnectTimeout 600\n\n#" $_httpdconf if [ "$?" = "0" ]; then echo_ok else