From ea7f12b2ce18f43dd23d914338226801f1030ae9 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Wed, 06 Feb 2013 11:22:47 -0500 Subject: [PATCH] Fixed: FS#2637 - Default php.ini will not be used when set custom php.ini directives --- server/plugins-available/apache2_plugin.inc.php | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php index 2c93cc8..ed8a371 100644 --- a/server/plugins-available/apache2_plugin.inc.php +++ b/server/plugins-available/apache2_plugin.inc.php @@ -834,6 +834,12 @@ $master_php_ini_path = $web_config['php_ini_path_cgi']; } } + + //* Add php.ini to the path in case that the master_php_ini_path is a directory + if($master_php_ini_path != '' && is_dir($master_php_ini_path) && is_file($master_php_ini_path.'/php.ini')) { + $master_php_ini_path .= '/php.ini'; + } + if($master_php_ini_path != '' && substr($master_php_ini_path,-7) == 'php.ini' && is_file($master_php_ini_path)) { $php_ini_content .= $app->system->file_get_contents($master_php_ini_path)."\n"; } -- Gitblit v1.9.1