On Sun, Mar 23, 2008 at 11:10:22AM -0700, Jack Bates wrote:
> 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)
> 

I can't accept your patch, we can't relie on the supposed fact that
home directories of users stays in /home.

A lot of people doing mass hosting put the dirs in /var/www.

A better think would be to use an apache limit on files uids, but it
doesn't seems to exist ;)

Any other idea?



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to