Re: Two version of php in the same system
| From: | @ Edwin | Date: | Tue, 06 Aug 2002 08:10:26 +0000 |
| Subject: | Re: Two version of php in the same system | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111349@lists.php.net to get a copy of this message | ||
Or, you could try running two different httpd daemon for two different virtual servers (with two different httpd.conf for two different php) inside the same machine...
- E
PS
I haven't done it but I know some people did.
Also, this might be more difficult than the one (a good idea) already suggested here...
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 --_________________________________________________________________ キャリアアップを目指すあなたのナビゲーター MSN 就職・転職 http://career.msn.co.jp/PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.infoT 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 Y4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php