From 7fddfe840a1c8680e9103bc6b93465f3390de7bb Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 08 Jul 2010 09:56:05 -0400
Subject: [PATCH] - Implemented: FS#1079 - Custom php.ini files for fcgi and mod_php - Fixed a formatting problem with suphp.conf and newer suphp versions.

---
 server/conf/vhost.conf.master |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master
index 1a12fa8..d6f33a9 100644
--- a/server/conf/vhost.conf.master
+++ b/server/conf/vhost.conf.master
@@ -118,6 +118,7 @@
     php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>"	
     php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp
     php_admin_value session.save_path <tmpl_var name='document_root'>/tmp
+	PHPIniDir <tmpl_var name='custom_php_ini_dir'>
 <tmpl_if name='security_level' op='==' value='20'>
     php_admin_value open_basedir <tmpl_var name='php_open_basedir'>
 </tmpl_if>
@@ -127,6 +128,9 @@
     <Directory {tmpl_var name='web_document_root'}>
         suPHP_Engine on
         # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
+<tmpl_if name='has_custom_php_ini'>
+	suPHP_ConfigPath <tmpl_var name='custom_php_ini_dir'>
+</tmpl_if>
         AddHandler x-httpd-suphp .php .php3 .php4 .php5
         suPHP_AddHandler x-httpd-suphp
     </Directory>
@@ -305,6 +309,7 @@
     php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>"	
     php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp
     php_admin_value session.save_path <tmpl_var name='document_root'>/tmp
+	PHPIniDir <tmpl_var name='custom_php_ini_dir'>
 <tmpl_if name='security_level' op='==' value='20'>
     php_admin_value open_basedir <tmpl_var name='php_open_basedir'>
 </tmpl_if>
@@ -312,6 +317,9 @@
 <tmpl_if name='php' op='==' value='suphp'>
     suPHP_Engine on
     # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'>
+<tmpl_if name='has_custom_php_ini'>
+	suPHP_ConfigPath <tmpl_var name='custom_php_ini_dir'>
+</tmpl_if>
     AddHandler x-httpd-suphp .php .php3 .php4 .php5
     suPHP_AddHandler x-httpd-suphp
 </tmpl_if>

--
Gitblit v1.9.1