Skip to content

Commit

Permalink
Allow customizing PHP CLI memory_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus authored and kennyr87 committed Oct 21, 2021
1 parent ec7ce3f commit 70d56e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/php/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ php_max_execution_time: 120
php_max_input_time: 300
php_max_input_vars: 1000
php_memory_limit: 96M
php_cli_memory_limit: "{{ php_memory_limit }}"
php_mysqlnd_collect_memory_statistics: 'Off'
php_post_max_size: 25M
php_sendmail_path: /usr/sbin/ssmtp -t
Expand Down
1 change: 1 addition & 0 deletions roles/php/templates/php-cli.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ error_reporting = {{ php_error_reporting }}
sendmail_path = {{ php_sendmail_path }}
expose_php = Off
date.timezone = {{ php_timezone }}
memory_limit = {{ php_cli_memory_limit }}

[mysqlnd]
mysqlnd.collect_memory_statistics = {{ php_mysqlnd_collect_memory_statistics }}
Expand Down

0 comments on commit 70d56e1

Please sign in to comment.