On Sun, 2 Dec 2007, Jeremy Chadwick wrote:

> This should already be possible.  The suphp.conf file allows you to
> specific a specific handle type for whatever parser you wish to use.
> I assume you can specify more than one.
>
> Example: in your suphp.conf file:
>
> [handlers]
> x-httpd-php4=php:/usr/local/bin/php4-cgi
> x-httpd-php5=php:/usr/local/bin/php5-cgi
>
> Then your Apache configuration:
>
> suPHP_Engine on
>
> <VirtualHost php4_site>
>  AddType x-httpd-php4 .php
>  suPHP_AddHandler x-httpd-php4
> </VirtualHost>
>
> <VirtualHost php5_site>
>  AddType x-httpd-php5 .php
>  suPHP_AddHandler x-httpd-php5
> </VirtualHost>
>
> You might need to place the suPHP_AddHandler directives outside of the
> VirutalHost blocks (I'd have to go look at the scope of the directive in
> the C code).  In that case, just put both suPHP_AddHandler lines below
> the "suPHP_Engine on" global statement, and leave the AddType lines
> defined per VirtualHost.

You can even do this in .htaccess files, for example, my php5 is not yet 
the default, but MediaWiki really wants php5, so I offer this option.

-Dan


--

"It doesn't matter where I live, because I live in dataspace.  That's my
hometown."

-Steve Roberts, Builder of BEHEMOTH

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------


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

Reply via email to