Re: [PHP] Re: php5 + php4 on same server

2003-07-26 Thread Alexandru N. Barloiu
Two different types of apache & php on the same mashine is possible. I
used to do that when I used both apache-2 & apache-1. The thing I did is
that I used different ports, one ot them default 80 and the other 8000
for example.

On Sat, 2003-07-26 at 09:24, Comex wrote:
> Volker wrote:
> > hi,
> > 
> > you also could run two static compiled versions of apache (if apache) with
> > php4 and 5 compiled in, 
> Possible...
> > but you need another ip-address to bind to
> No, you can run them both on the same IP address... that's what he wanted.
> > - also
> > have to manage 2 apaches(not a problem or what? ;-)
> 


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



Re: [PHP] Re: php5 + php4 on same server

2003-07-26 Thread Comex
Volker wrote:
hi,

you also could run two static compiled versions of apache (if apache) with
php4 and 5 compiled in, 
Possible...
but you need another ip-address to bind to
No, you can run them both on the same IP address... that's what he wanted.
- also
have to manage 2 apaches(not a problem or what? ;-)


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


Re: [PHP] Re: php5 + php4 on same server

2003-07-25 Thread Volker
hi,

you also could run two static compiled versions of apache (if apache) with
php4 and 5 compiled in, but you need another ip-address to bind to - also
have to manage 2 apaches(not a problem or what? ,-).

sorry for my english.
volker
- Original Message -
From: "Comex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 26, 2003 12:42 AM
Subject: Re: [PHP] Re: php5 + php4 on same server


> <[EMAIL PROTECTED]>
> Comex:
> > <[EMAIL PROTECTED]>
> > Thomas Hochstetter:
> >> Hi guys.
> >>
> >> Sorry, i know that was discussed earlier this month ... i just looked
> >> for the posting again in the archives ... i could only find the
> >> question post ... but there was an answer.
> >>
> >> So, how do you setup the server again to have php4 run on the :80
> >> port and php5 on :8080 (apache server). Does it collide?
> >>
> >> Thanks
> >> Thomas
> >
> > I've done it... but you have to run one as CGI, one can be module or
> > CGI. To run one as CGI and one as module:
> >
> > LoadModule php5_module "/path/to/php4apache.dll"
> > ScriptAlias /php/ "/path/to/php4/folder/"
> > AddType application/x-httpd-php .php5
> > AddType application/x-httpd-php4 .php4
> > Action application/x-httpd-php4 /php/php.exe (I'm using windows)
> >
> > Or to run both as CGI:
> > ScriptAlias /php4/ "/path/to/php4/folder"
> > ScriptAlias /php5/ "/path/to/php5/folder"
> > AddType application/x-httpd-php .php5
> > AddType application/x-httpd-php4 .php4
> > Action application/x-httpd-php4 /php4/php.exe
> > Action application/x-httpd-php /php5/php.exe
>
> Oh, I'm stupid!  That is how you have .php5 as php5 and .php4 as php4...
if
> you're using virtual hosts, you just replace:
> AddType application/x-httpd-php4 .php4
> with:
> AddType application/x-httpd-php4 .php
>
> and put the AddType in the .
>
>
>
> --
> 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



Re: [PHP] Re: php5 + php4 on same server

2003-07-25 Thread Comex
<[EMAIL PROTECTED]>
Comex:
> <[EMAIL PROTECTED]>
> Thomas Hochstetter:
>> Hi guys.
>>
>> Sorry, i know that was discussed earlier this month ... i just looked
>> for the posting again in the archives ... i could only find the
>> question post ... but there was an answer.
>>
>> So, how do you setup the server again to have php4 run on the :80
>> port and php5 on :8080 (apache server). Does it collide?
>>
>> Thanks
>> Thomas
>
> I've done it... but you have to run one as CGI, one can be module or
> CGI. To run one as CGI and one as module:
>
> LoadModule php5_module "/path/to/php4apache.dll"
> ScriptAlias /php/ "/path/to/php4/folder/"
> AddType application/x-httpd-php .php5
> AddType application/x-httpd-php4 .php4
> Action application/x-httpd-php4 /php/php.exe (I'm using windows)
>
> Or to run both as CGI:
> ScriptAlias /php4/ "/path/to/php4/folder"
> ScriptAlias /php5/ "/path/to/php5/folder"
> AddType application/x-httpd-php .php5
> AddType application/x-httpd-php4 .php4
> Action application/x-httpd-php4 /php4/php.exe
> Action application/x-httpd-php /php5/php.exe

Oh, I'm stupid!  That is how you have .php5 as php5 and .php4 as php4...  if
you're using virtual hosts, you just replace:
AddType application/x-httpd-php4 .php4
with:
AddType application/x-httpd-php4 .php

and put the AddType in the .



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



[PHP] Re: php5 + php4 on same server

2003-07-25 Thread Comex
<[EMAIL PROTECTED]>
Thomas Hochstetter:
> Hi guys.
>
> Sorry, i know that was discussed earlier this month ... i just looked
> for the posting again in the archives ... i could only find the
> question post ... but there was an answer.
>
> So, how do you setup the server again to have php4 run on the :80
> port and php5 on :8080 (apache server). Does it collide?
>
> Thanks
> Thomas

I've done it... but you have to run one as CGI, one can be module or CGI.
To run one as CGI and one as module:

LoadModule php5_module "/path/to/php4apache.dll"
ScriptAlias /php/ "/path/to/php4/folder/"
AddType application/x-httpd-php .php5
AddType application/x-httpd-php4 .php4
Action application/x-httpd-php4 /php/php.exe (I'm using windows)

Or to run both as CGI:
ScriptAlias /php4/ "/path/to/php4/folder"
ScriptAlias /php5/ "/path/to/php5/folder"
AddType application/x-httpd-php .php5
AddType application/x-httpd-php4 .php4
Action application/x-httpd-php4 /php4/php.exe
Action application/x-httpd-php /php5/php.exe



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