Add FCIID Timeout parameter to 'httpd.conf'.
This commit is contained in:
		| @@ -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 <<EOF >> ${_logdir}/main.log | ||||
| perl -i.bak -n -p -e "s#^(\s*LoadModule\s+fcgid_module.+)#\1\n<IfModule mod_fcgid.c>\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</IfModule>#" \$_httpdconf | ||||
| perl -i.bak -n -p -e "s#^(\s*LoadModule\s+fcgid_module.+)#\1\n<IfModule mod_fcgid.c>\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</IfModule>#" \$_httpdconf | ||||
| EOF | ||||
|    echononl "\thttpd.conf: Adjust mod_fcgid module.." | ||||
|    perl -i.bak -n -p -e "s#^(\s*LoadModule\s+fcgid_module.+)#\1\n<IfModule mod_fcgid.c>\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</IfModule>#" $_httpdconf | ||||
|    perl -i.bak -n -p -e "s#^(\s*LoadModule\s+fcgid_module.+)#\1\n<IfModule mod_fcgid.c>\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</IfModule>#" $_httpdconf | ||||
|    if [ "$?" = "0" ]; then | ||||
|       echo_ok | ||||
|    else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user