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 <VirtualHost>.
>
>
>
> --
> 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