From cea56e30c3a3109f829ccaa3ccc84b4b009ea6b3 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sun, 21 Sep 2008 14:44:29 +0000 Subject: [PATCH] Small mods to vhost configuration and installer. --- install/lib/installer_base.lib.php | 2 +- server/conf/vhost.conf.master | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index 84ceea890b..a3eab1ba13 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -611,7 +611,7 @@ class installer_base { exec('mkdir -p /var/log/ispconfig/httpd'); if(is_file('/etc/suphp/suphp.conf')) { - replaceLine('/etc/suphp/suphp.conf','application/x-httpd-php=php:/usr/bin/php-cgi','x-httpd-suphp=php:/usr/bin/php-cgi',0); + replaceLine('/etc/suphp/suphp.conf','php=php:/usr/bin/php-cgi','x-httpd-suphp=php:/usr/bin/php-cgi',0); replaceLine('/etc/suphp/suphp.conf','docroot=','docroot=/var/clients',0); } diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master index 4ba04e6503..36b63ef90b 100644 --- a/server/conf/vhost.conf.master +++ b/server/conf/vhost.conf.master @@ -49,12 +49,12 @@ </tmpl_if> <tmpl_if name='php' op='==' value='suphp'> <Directory {tmpl_var name='web_document_root'}> - # suphp enabled - suPHP_Engine on - # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> - AddHandler x-httpd-suphp .php .php3 .php4 .php5 - suPHP_AddHandler x-httpd-suphp - </Directory> + # suphp enabled + suPHP_Engine on + # suPHP_UserGroup <tmpl_var name='system_user'> <tmpl_var name='system_group'> + AddHandler x-httpd-suphp .php .php3 .php4 .php5 + suPHP_AddHandler x-httpd-suphp + </Directory> </tmpl_if> <tmpl_if name='php' op='==' value='cgi'> # php as cgi enabled -- GitLab