Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
ext_php_pgsql ext_php_soap ext_php_sockets
ext_php_sqlite3 ext_php_tidy ext_php_xmlrpc
}
default['php']['package_options'] = "" # Use this to customise your yum or apt command
default['php']['package_options'] = "" # Use this to customise your yum or apt command
default['php']['pear'] = 'pear.bat'
default['php']['pecl'] = 'pecl.bat'
else
Expand All @@ -84,6 +84,8 @@
default['php']['checksum'] = '378de162efdaeeb725ed38d7fe956c9f0b9084ff'
default['php']['prefix_dir'] = '/usr/local'

default['php']['post_max_size'] = '8M'

default['php']['configure_options'] = %W{--prefix=#{php['prefix_dir']}
--with-libdir=#{lib_dir}
--with-config-file-path=#{php['conf_dir']}
Expand Down
5 changes: 4 additions & 1 deletion recipes/ini.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
group 'root'
mode '0644'
end
variables(:directives => node['php']['directives'])
variables({
:directives => node['php']['directives'],
:post_max_size => node['php']['post_max_size']
})
end
2 changes: 1 addition & 1 deletion templates/centos/php.ini.erb
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ register_argc_argv = Off
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
post_max_size = 8M
post_max_size = <%= @post_max_size %>

; Magic quotes
;
Expand Down
2 changes: 1 addition & 1 deletion templates/debian/php.ini.erb
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 8M
post_max_size = <%= @post_max_size %>

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
Expand Down
2 changes: 1 addition & 1 deletion templates/default/php.ini.erb
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 8M
post_max_size = <%= @post_max_size %>

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
Expand Down
2 changes: 1 addition & 1 deletion templates/redhat/php.ini.erb
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ register_argc_argv = Off
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
post_max_size = 8M
post_max_size = <%= @post_max_size %>

; Magic quotes
;
Expand Down
2 changes: 1 addition & 1 deletion templates/ubuntu/php.ini.erb
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 8M
post_max_size = <%= @post_max_size %>

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
Expand Down
2 changes: 1 addition & 1 deletion templates/windows/php.ini.erb
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 8M
post_max_size = <%= @post_max_size %>

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
Expand Down