Universal httpd.template (mod_php+mod_ruid2 and php-cgi+suPHP)

Universal httpd.template (mod_php+mod_ruid2 and php-cgi+suPHP)

[QUOTE]Hi.

I have PHP 5.2 (module) and 5.3 (php-cgi) on server.
PHP module uses mod_ruid2, php-cgi uses suPHP. PHP 5.3 dosen’t work (internal error), when mod_ruid is active in user httpd.conf. This is not the problem – i can edit users files, but files are rewrites with DA (from template). Is way for universal tempalte (works with php-cg+suPHP and mod_php+mod_ruid2).

My template:

Code:

<VirtualHost |IP|:|PORT_80| |MULTI_IP|>
|CUSTOM|
|?CGI=ScriptAlias /cgi-bin/ `DOCROOT`/cgi-bin/|
        ServerName www.|DOMAIN|
        ServerAlias www.|DOMAIN| |DOMAIN| |SERVER_ALIASES|
        ServerAdmin |ADMIN|
        DocumentRoot |DOCROOT|
        |CGI|

        |USECANONICALNAME|
        <IfModule !mod_suphp.c>
                RMode config
                RUidGid |USER| |GROUP|
                RGroups apache access
        </IfModule>

        CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
        CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
        ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

        |*if SUSPENDED_REASON|
        <IfModule mod_env.c>
                SetEnv reason |SUSPENDED_REASON|
        </IfModule>
        |*endif|

        <Directory |DOCROOT|>
                Options +Includes -Indexes

|*if HAVE_SAFE_MODE="1"|
                php_admin_flag safe_mode |SAFE_MODE|
|*endif|
|*if CLI="1"|
                php_admin_flag engine |PHP|
                php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|'
|*endif|
|*if OPEN_BASEDIR="ON"|
                php_admin_value open_basedir |OPEN_BASEDIR_PATH|
|*endif|
|*if SUPHP="1"|
                suPHP_Engine |PHP|
                suPHP_UserGroup |USER| |GROUP|
|*endif|
        </Directory>
|HANDLERS|
|MIMETYPES|

</VirtualHost>


Comments are closed.