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.

-- 
| Jeremy Chadwick                                    jdc at parodius.com |
| Parodius Networking                           http://www.parodius.com/ |
| UNIX Systems Administrator                      Mountain View, CA, USA |
| Making life hard for others since 1977.                  PGP: 4BD6C0CB |

On Sun, Dec 02, 2007 at 08:09:50PM -0600, Carlos C Soto wrote:
> Hi everyone! first of all, tanks for the great development of suPHP.
> 
> Is there any chance to tell suPHP wich php-cgi should run ? By example, 
> a configuration variable wich tells suPHP the full path of php-cgi.
> 
> I want to configure an apache server to run PHP4 and PHP5 scripts by 
> virtualhost. In Debian you can install both, php4-cgi and php5-cgi. This 
> is to be able to setup the engine for each configured account. Not every 
> application is ready for PHP5 and not every PHP4 application runs on 
> PHP4. It will be great to be able con configure this setting since it is 
> possible to have PHP4 and PHP5 running.
> 
> Thanks for your attention and I hope this little wish get introduced 
> into suPHP.
> 
> -- 
> Carlos C Soto :: SIA Solutions
> Tel: +52 (722) 2078949
> 
> 
> _______________________________________________
> suPHP mailing list
> [email protected]
> http://lists.marsching.biz/mailman/listinfo/suphp

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

Reply via email to