add parameter for max_exec_time

This commit is contained in:
2026-10-24 17:01:11 +02:00
parent 7c3808aa16
commit 599b1da433
2 changed files with 7 additions and 3 deletions

View File

@@ -4,11 +4,15 @@
# @summary Class contains all class parameters for this module # @summary Class contains all class parameters for this module
# @param [String] reqpackages which packages to install # @param [String] reqpackages which packages to install
# @param [String] pkg_ensure which version of packages to install # @param [String] pkg_ensure which version of packages to install
# @param [String] php_max_execution_time maximum execution time for PHP scripts
############################################################################## ##############################################################################
class confdroid_php::params ( class confdroid_php::params (
String $reqpackages = 'php', String $reqpackages = 'php',
String $pkg_ensure = 'present', String $pkg_ensure = 'present',
# php.ini
String $php_max_execution_time = '30',
) { ) {
# Facts # Facts

View File

@@ -411,7 +411,7 @@ expose_php = On
; Maximum execution time of each script, in seconds ; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time ; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI ; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 30 max_execution_time = <%= @php_max_execution_time %>
; Maximum amount of time each script may spend parsing request data. It's a good ; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly ; idea to limit this time on productions servers in order to eliminate unexpectedly