From 592995082f019f518fa14c89f64c5cd01d3238d7 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sat, 12 Sep 2015 11:52:18 -0400 Subject: [PATCH] Variable to enable / disable php_allow_url_fopen --- defaults/main.yml | 2 ++ templates/php.ini.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 15049fb..7046a48 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -45,6 +45,8 @@ php_upload_max_filesize: "64M" php_post_max_size: "32M" php_date_timezone: "America/Chicago" +php_allow_url_fopen: "Off" + php_sendmail_path: "/usr/sbin/sendmail -t -i" php_short_open_tag: false diff --git a/templates/php.ini.j2 b/templates/php.ini.j2 index 8aa002a..7bc1486 100644 --- a/templates/php.ini.j2 +++ b/templates/php.ini.j2 @@ -88,7 +88,7 @@ max_file_uploads = 20 ; Fopen wrappers ; ;;;;;;;;;;;;;;;;;; -allow_url_fopen = On +allow_url_fopen = {{ php_allow_url_fopen }} allow_url_include = Off default_socket_timeout = 60