Re: Two version of php in the same system
| From: | Analysis & Solutions | Date: | Tue, 06 Aug 2002 05:29:45 +0000 |
| Subject: | Re: Two version of php in the same system | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111338@lists.php.net to get a copy of this message | ||
Hi Breno:
On Tue, Aug 06, 2002 at 02:20:19AM -0300, Breno Cardoso Perucchi wrote:
> Exists some way of to have 2 different versions in the same system ?
> I am trying to running the version 4.2.2 and 4.0.3 .
Sure. Install them in separate directories. In this example,
/usr/local/bin/php has two sub directories, ver403 and ver422.
Then, in httpd.conf, put:
Action application/x-httpd-php403 "/php403/php.exe"
ScriptAlias /php403/ "/usr/local/bin/php/ver403"
Action application/x-httpd-php "/php422/php.exe"
ScriptAlias /php422/ "/usr/local/bin/php/ver422"
Now, in your various directories, use .htaccess files to control which
version is to be called:
AddType application/x-httpd-php403 .html
AddType application/x-httpd-php .php
Modify everything above to suit your real needs.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409