tbrehm
2008-09-21 cea56e30c3a3109f829ccaa3ccc84b4b009ea6b3
Small mods to vhost configuration and installer.
2 files modified
14 ■■■■ changed files
install/lib/installer_base.lib.php 2 ●●● patch | view | raw | blame | history
server/conf/vhost.conf.master 12 ●●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php
@@ -611,7 +611,7 @@
        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);
        }
        
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