ok.. thanx

ive looked at it a little, and havent tested this yet as my server "broke" 
down recently. but i thought this might work:

the php4 and php5 modules have different modules name, if i dont remember 
totaly wrong, so writing 

LoadModule php4_module modules/libphp4.so
LoadModule php5_module modules/libphp5.so

should work. Then by changing the mime type of php5 to 
"application/x-httpd-php5" ( in the main/php.h file at line 228 this is 
defined ) on can add to different virtualhost with different mime types:

<virtualhost 123.123.123.123>
  DocumentRoot /var/www/html
  ServerName www.domain.com
  AddType application/x-httpd-php .php  #php4
</virtualhost>

<virtualhost 123.123.123.123>
  DocumentRoot /var/www/html
  ServerName www.domain.com
  AddType application/x-httpd-php5 .php  #php5
</virtualhost>

but then again i havent tested this, its just a thought i was gonna try as 
soon as i get my server online again...

Terje


On Tue, 17 Jun 2003 3:23:08 +0200, Dvdmandt wrote
(in message <[EMAIL PROTECTED]>):

> Hehe, ok... I can't even count the number of servers I use at different
> ports... But I prefer to use the one on port 80...
> // DvDmanDT
> 
> <[EMAIL PROTECTED]> skrev i meddelandet
> news:[EMAIL PROTECTED]
>> hmm to spare the pain i run another instance of apache on a different
>> port , one runs php4.3 one runs php5 :D
>>> If you bug the PHP team some, they might rename the PHP5 module so you
>>> can use both... I have PHP3, 4 and 5 (can someone please give me a
>>> working binary PHP1 and PHP2 for windows? PLEASE!!!) installed and
>>> working on the same server... Simply use the CGI version... But server
>>> gets slower and slower on every request (well, maybe not _every_
>>> request but)...
>>> 
>>> // DvDmanDT
>>> "Terje Torkelsen" <[EMAIL PROTECTED]> skrev i meddelandet
>>> news:[EMAIL PROTECTED]
>>>> is there a way to install two phps on one apache server? want a stable
>>> php4
>>>> on my production site and a php5-dev to test on.. just use different
>>>> virtualhosts, like php5.domain.com for the one with php5 installed.
>>>> looked
>>> in
>>>> the apache docs, seems like LoadModule cant be used inside
>>>> <VirtualHost>,
>>> its
>>>> a global var.
>>>> 
>>>> thanx
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>> 
>> 
>> 
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to