tbrehm
2008-12-23 9e356a00eac7a4c45cc38177e5dfa7a806dc620b
Fixed php cgi configuration.
5 files modified
35 ■■■■ changed files
INSTALL_DEBIAN_4.0.txt 1 ●●●● patch | view | raw | blame | history
INSTALL_DEBIAN_LENNY.txt 2 ●●● patch | view | raw | blame | history
INSTALL_OPENSUSE_11.txt 1 ●●●● patch | view | raw | blame | history
INSTALL_UBUNTU_8.04.txt 1 ●●●● patch | view | raw | blame | history
server/conf/vhost.conf.master 30 ●●●● patch | view | raw | blame | history
INSTALL_DEBIAN_4.0.txt
@@ -68,6 +68,7 @@
a2enmod suexec
a2enmod rewrite
a2enmod ssl
a2enmod actions
4) Install pure-ftpd and quota
INSTALL_DEBIAN_LENNY.txt
@@ -87,7 +87,7 @@
# Then run the following to enable the Apache modules suexec, rewrite and ssl:
a2enmod suexec rewrite ssl
a2enmod suexec rewrite ssl actions
# Secure phpMyAdmin by deleting setuppassword-file
# and removing/commenting Setup Authorization from apache.conf
INSTALL_OPENSUSE_11.txt
@@ -80,6 +80,7 @@
a2enmod suexec
a2enmod rewrite
a2enmod ssl
a2enmod actions
chkconfig --add apache2
/etc/init.d/apache2 start
INSTALL_UBUNTU_8.04.txt
@@ -45,6 +45,7 @@
a2enmod rewrite
a2enmod ssl
a2enmod include
a2enmod actions
3.1) Optional: Install SuPHP
server/conf/vhost.conf.master
@@ -51,6 +51,10 @@
<tmpl_if name='php' op='==' value='mod'>
    # mod_php enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
    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
    #php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
</tmpl_if>
<tmpl_if name='php' op='==' value='suphp'>
    # suphp enabled
@@ -63,7 +67,9 @@
</tmpl_if>
<tmpl_if name='php' op='==' value='cgi'>
    # php as cgi enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
    ScriptAlias /php5-cgi /usr/bin/php5-cgi
    Action php5-cgi /php5-cgi
    AddHandler php5-cgi .php .php3 .php4 .php5
</tmpl_if>
<tmpl_if name='php' op='==' value='fast-cgi'>
    # php as fast-cgi enabled
@@ -83,13 +89,6 @@
    RewriteCond %{HTTP_HOST}   ^<tmpl_var name='rewrite_domain'> [NC]
    RewriteRule   ^/(.*)$ <tmpl_var name='rewrite_target'>$1  [<tmpl_var name='rewrite_type'>]
</tmpl_loop>
</tmpl_if>
<tmpl_if name='php' op='!=' value=''>
    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
    #php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
</tmpl_if>
<tmpl_var name='apache_directives'>
@@ -153,6 +152,10 @@
<tmpl_if name='php' op='==' value='mod'>
    # mod_php enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
    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
    #php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
</tmpl_if>
<tmpl_if name='php' op='==' value='suphp'>
    # suphp enabled
@@ -163,7 +166,9 @@
</tmpl_if>
<tmpl_if name='php' op='==' value='cgi'>
    # php as cgi enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
    ScriptAlias /php5-cgi /usr/bin/php5-cgi
    Action php5-cgi /php5-cgi
    AddHandler php5-cgi .php .php3 .php4 .php5
</tmpl_if>
<tmpl_if name='php' op='==' value='fast-cgi'>
    # php as fast-cgi enabled
@@ -184,13 +189,6 @@
    RewriteCond %{HTTP_HOST}   ^<tmpl_var name='rewrite_domain'> [NC]
    RewriteRule   ^/(.*)$ <tmpl_var name='rewrite_target'>$1  [<tmpl_var name='rewrite_type'>]
</tmpl_loop>
</tmpl_if>
<tmpl_if name='php' op='!=' value=''>
    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
    #php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
</tmpl_if>
<tmpl_var name='apache_directives'>