Package: libapache2-mod-suphp
Version: 0.6.2-2
Severity: normal
Tags: patch

By default, suPHP is configured to handle all PHP scripts, leading to
errors accessing scripts installed by Debian packages:

[Sun Mar 23 10:58:34 2008] [error] [client 127.0.0.1] SoftException in
Application.cpp:297: UID of script "/usr/share/gallery2/main.php" is smaller
than min_uid

I wish by default suPHP were configured to handle only PHP scripts
likely to satisfy min_uid:
http://cgi.sfu.ca/~jdbates/tmp/suphp/200803230/patch

--- /etc/apache2/mods-available/suphp.conf      2008/03/23 17:41:08     1.1
+++ /etc/apache2/mods-available/suphp.conf      2008/03/23 17:42:04
@@ -1,5 +1,7 @@
 <IfModule mod_suphp.c>
+       <Directory /home/*/public_html>
        AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
+       </Directory>
        suPHP_AddHandler application/x-httpd-php
        suPHP_Engine on
 # # Use a specific php config file (a dir which contains a php.ini file)

Much thanks for maintaining suPHP, Jack

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libapache2-mod-suphp depends on:
ii  apache2.2-common              2.2.8-3    Next generation, scalable, extenda
ii  libc6                         2.7-9      GNU C Library: Shared libraries
ii  suphp-common                  0.6.2-2    Common files for mod suphp

libapache2-mod-suphp recommends no packages.

-- no debconf information
--- /etc/apache2/mods-available/suphp.conf      2008/03/23 17:41:08     1.1
+++ /etc/apache2/mods-available/suphp.conf      2008/03/23 17:42:04
@@ -1,5 +1,7 @@
 <IfModule mod_suphp.c>
+       <Directory /home/*/public_html>
        AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
+       </Directory>
        suPHP_AddHandler application/x-httpd-php
        suPHP_Engine on
 # # Use a specific php config file (a dir which contains a php.ini file)

Reply via email to