You are here: Re: Two version of PHP in single server « PHP « IT news, forums, messages
Re: Two version of PHP in single server

Posted by Petr Smith on 11/29/05 10:31

Run two Apache servers, second (with old PHP version) on another port.
Internally forward all requests to old PHP project to this second server.

We tested most methods but this was the best.

Petr

J.F.Kishor wrote:
> Hi,
>
> Thanks.......!
>
> Even the second is server-parsed not cgi
>
> Some more suggestions are welcomed, so we can succeed in
> experimentation of Two version of PHP in same server.
>
>
>
>
>>i haven't tried this since php3/4, but it used to be that you could
>>install them both (as server parsed, not one as a cgi) and then use
>>different file extensions (and appropriate apache entries) to direct
>>which php version parsed the page. e.g., we used ".php3" to use the
>>php3 install and ".php" for php4.
>>
>>i have a sense that this may be harder (or potentially impossible)
>>now, but you may want to look at the apache install documentation to
>>see if it gives hints. there used to be information in, i believe,
>>the apache source install documentation explaining how to do this.
>>
>>as someone else has indicated, you can (or at least should be able
>>to) install one version as server-parsed and the second as cgi,
>>though that may not meet your needs.
>>
>>
>>------------ Original Message ------------
>>
>>>Date: Monday, November 28, 2005 12:07:02 PM +0530
>>>From: "J.F.Kishor" <kishor@ooty.tenet.res.in>
>>>To: php-general@lists.php.net
>>>Subject: [PHP] Two version of PHP in single server
>>>
>>>Hi,
>>>
>>> I have a query, can we run two versions of PHP in linux 7.2
>>> server.
>>>
>>> I want to use PHP 4.x for one application and PHP 5.1.0 for
>>> another application in the same server.
>>>
>>> Do I need to do some configuration changes to set the php
>>> path. To look up different versions based on the request of
>>> the application.
>>>
>>>
>>>
>>>Regards,
>>> - JFK
>>>kishor
>>>Nilgiri Networks
>>>
>>>--
>>>PHP General Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>---------- End Original Message ----------
>>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация