Hello all,

First I would like to thank all the people working on this software, it lets me host 100+ sites without the stress of scripts messing with each others' owners...

I'd tough I share a tip in order to use php5 and suphp at the same time (for example with server-wide software (webmail, phpmyadmin, and so)

In the default setup of a debian lenny, suphp is disabled for /var/www because it would make suphp switch to root. But if you also enable php5, suphp doesn't work because (I guess) since php5 module is loaded first, suphp never gets assign the handler. The simple work around I found is :
1) disable suphp : a2dismod suphp
2) rename /etc/apache2/mods-available/suphp* to /etc/apache2/mods-available/000-suphp*
3) re-enable suphp : a2enmod 000-suphp

Since suphp gets loaded first, it is correctly disabled for /var/www and php5 activates itself correctly.

The only drawback I can imagine is when I will upgrade suphp via apt, which will not find its files... If I am doing anything else wrong (security?), please inform me !

One more tip : having php4 and php5 at the same time (on debian lenny, you must compile your own version of php4 since it has been removed from repos)

/etc/apache2/mods-enabled/000-suphp.conf
<IfModule mod_suphp.c>
        AddType application/x-httpd-php .php .php5
        suPHP_AddHandler application/x-httpd-php
        AddType application/x-httpd-php4 .php4
        suPHP_AddHandler application/x-httpd-php4
        suPHP_Engine on
        (...)
</IfModule>

/etc/suphp/suphp.conf
(...)
[handlers]
;Handler for php-scripts
application/x-httpd-php=php:/usr/bin/php-cgi
application/x-httpd-php4=php:/usr/local/php4/bin/php
(...)

<<attachment: guilhem.vcf>>

_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to