IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 9th, 2010, 08:47 PM
balzack balzack is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 105 balzack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 20 m 56 sec
Reputation Power: 10
Multiple php versions on a single iis 7 (diff web apps)

hi all

i am trying to run two different versions of php on my windows 2008 r2 server with iis7. phew. haha

my primary one is already setup as 5.3.0 but i also need to run 5.2.x for some legacy app we need.

i installed two directories of php one c:\php\ and c:\php 5.2\ and setup the handler for .php files in IIS to point to the right php-cgi.exe file.

it seems to work (like phpinfo works and shows the correct version) but when i open a command prompt at c:\php 5.2\ and type php -v i get lots of problems with the extensions and mysql for example isn't loading the modules.

for some reason php 5.2 is wrongly loading the php.ini file for 5.3.0. where is this set? how can i get it to use the php.ini file that is located in c:\php 5.2.x\php.ini file?

Code:
Loaded Configuration File 	C:\PHP\php.ini

thanks for any help!

Reply With Quote
  #2  
Old February 12th, 2010, 12:06 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 20 m 7 sec
Reputation Power: 4445
I have no idea how or if you can run two different php versions. You'll obviously need to use different file extensions if it's even possible. I thought v5.3 was backwards compatible with v5.2?
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #3  
Old February 12th, 2010, 02:11 AM
holodoc's Avatar
holodoc holodoc is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2004
Location: Kostolac, Serbia
Posts: 855 holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level)holodoc User rank is General 6th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 4 h 47 m 40 sec
Reputation Power: 1390
On standard Apache configurations in order to use two different versions of PHP simply creating separate server handlers for each of them would solve the problem but to be honest I am not sure if something similar would be possible on IIS (got a bit rusty on it lately )
Quote:
Originally Posted by Doug G
I thought v5.3 was backwards compatible with v5.2?
Well for the most part 5.3 is compatible with previous versions of PHP but there are some major changes that came with PHP v5.3, mostly regarding the configuration of the PHP environment, which make for some headaches when it comes to code written for prior PHP versions. I.e. some optional (but often used) PHP runtime configuration options like magic quotes and register globals are not part of PHP 5.3 anymore etc. Generally therefore PHP 5.3 is considered to be more of an early PHP 6.0 edition that part of the PHP 5.x gamma
__________________
PHP Code:
<?php
abstract class Ignorance extends Stupidity implements Unavoidable 
     public static 
$humiliation

     private function 
__construct(){
        
parent::__destruct();
     }; 

?>

Reply With Quote
  #4  
Old February 12th, 2010, 03:45 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,239 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 15 h 20 m 7 sec
Reputation Power: 4445
Thanks for the info holodoc

Kind of wandering OT, by separate handlers in apache does that mean using different file extensions and setting each extension to map to a different php executable? If so, you can also map file extensions to different binaries in IIS, which would be similar.

I'm assuming there needs to be some mechanism to instruct the web server which version of php to use for the requested page.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Multiple php versions on a single iis 7 (diff web apps)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap