IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 November 30th, 2005, 11:18 AM
homeshow homeshow is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 6 homeshow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 22 sec
Reputation Power: 0
IIS & PHP Setup-Configuring for multiple sites

Re: IIS & PHP Setup question-Configuring for multiple websites~

My server setup: Win2k, IIS5.0, PHP 4.0.10 running as ISAPI.
Virtual servers (websites) each set up with individual IP addresses.
In IIS, each site is individually set up to use PHP as opposed to having PHP set up at the top level so its use is inherited by the individual sites.

PROBLEM ~ How can I configure IIS and PHP to be able to host multiple virtual server websites with different PHP.ini instructions? (For example, one site needs Zend and I don’t want Zend to be available to other sites)

I've tried putting a copy of php.ini in the individual server/site root folders, and deleting the copy from c:\winnt, and rebooting the system. Phpinfo still shows that PHP is using PHP.ini from c:\winnt, even though it's gone! Can anyone explain what’s going on here?

PHP is supposed to look for a php.ini file as follows ~
1. PHPIniDir directive (Apache only - so does not apply)

2.HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (this is NOT in the registry !)

3. a) Directory of PHP (for CLI - not what we're using), or
b) the web server's directory (for SAPI modules This applies - we are using SAPI; tried this; doesn't work)

4. Windows directory (this is the only place it looks)

Thanks for your assistance !!!

Reply With Quote
  #2  
Old November 30th, 2005, 12:34 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,824 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 19 h 27 m 21 sec
Reputation Power: 765
I don't think IIS supports different php.ini in different sites, but that would be up to php, not IIS. Check the php support documentation.
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old December 5th, 2005, 02:56 PM
homeshow homeshow is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 6 homeshow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 47 m 22 sec
Reputation Power: 0
Closed

Thanks again Doug for your comments. Very much appreciated.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > IIS & PHP Setup-Configuring for multiple sites


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway