Click to See Complete Forum and Search --> : Multiple Versions of Php on IIS
Dragons_Eye
04-12-2003, 01:31 PM
I know it can be done, as someone's done it on our servers, but I can't get in touch with him at present. Does anyone know how I configure IIS to have a different version of PHP for different sites?
(ie. one has 4.0.6 for rimps, but I need another with the latest for graphing features I need to create)
Thanks,
D
rklapwijk
04-16-2003, 11:45 AM
I think you should install every version of php in a different dir, like C:\PHP, C:\PHP4_3_1
Then you could lets say .php run with the php 4.3.1 php4isapi.dll in the C:\PHP4_3_1 dir, and .phtml runs as php 4.0.6 with the php4isapi.dll in the C:\PHP dir.
I suppose that could work, but i haven't tested it myself.
Dragons_Eye
04-16-2003, 04:59 PM
Yeah I just tested this last night, and its like you said.
I'm doing it more for seperate sites on the same server, so I can still just associate .php with it.
Now I need to write a converter from a coldfusion message board to Invision :(
shareaweb
04-20-2003, 04:32 PM
In your IIS properties for each site, go to home tab and click configuration, then map the script maps for that site to the version of php you want it to use. *WARNING* if you use the default worker process thread and two sites or more are using the same version of php, and one site crashes php, well guess what (see I knew u were smart..)
BTW.. with ISAPI, you need to restart IIS to reload the php.ini values, unlike the cgi executable version which inits on each call..
Your best to run each site in there own worker process accounts, and this is way better handled in IIS 6
Have phun ;
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.