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

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


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:


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

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

        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|

        <Directory |DOCROOT|>
                Options +Includes -Indexes

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


Comments are closed.