Skip to content

Commit b044e53

Browse files
committed
Adds php_max_execution time support
1 parent d58f59b commit b044e53

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- yaml -*-
22

33
php7_fix_pathinfo: 1
4+
php7_max_execution_time: 30
45
php7_memory_limit: 128M
56
php7_post_max_size: 40M
67
php7_upload_max_filesize: 20M

templates/php.ini.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ expose_php = On
453453
; Maximum execution time of each script, in seconds
454454
; http://php.net/max-execution-time
455455
; Note: This directive is hardcoded to 0 for the CLI SAPI
456-
max_execution_time = 30
456+
max_execution_time = {{ php7_max_execution_time }}
457457

458458
; Maximum amount of time each script may spend parsing request data. It's a good
459459
; idea to limit this time on productions servers in order to eliminate unexpectedly

0 commit comments

Comments
 (0)