From 5ace1f2da0b7110d645faa89801d7eca59add24d Mon Sep 17 00:00:00 2001 From: Stefan Galinski <stefan@sgalinski.de> Date: Tue, 3 Mar 2015 21:11:39 +0100 Subject: [PATCH] [TASK] Increate PHP memory limit --- recipes/default.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/recipes/default.rb b/recipes/default.rb index db1c537..76900ef 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -67,6 +67,18 @@ replace_or_add 'Increase time limit - CLI' do line 'max_execution_time = 240' end +replace_or_add 'Increase memory limit' do + path '/etc/php5/apache2/php.ini' + pattern 'memory_limit = 128M' + line 'memory_limit = 256M' +end + +replace_or_add 'Increase memory limit - CLI' do + path '/etc/php5/cli/php.ini' + pattern 'memory_limit = 128M' + line 'memory_limit = 256M' +end + replace_or_add 'Increase upload size limit' do path '/etc/php5/apache2/php.ini' pattern 'upload_max_filesize = 2M' -- GitLab