Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple PHP instances Windows 2003 Server

Status
Not open for further replies.

KarterJK

Programmer
May 11, 2004
27
0
0
US
Hello to all,

Question to any who might help me understand:

I have a Windows 2003 (Web Version) Server with PHP5 installed. With multiple web Sites. Everything runs great. But, I would like to set up multiple web sites, example:

mydomain1.com
mydomain2.com etc

where they can all run the same version PHP except I would like to have the include folder for

mydomain1.com be set to c:\somedir\include1
mydomain2.com be set to c:\somedir\include2

I use the php5asapi.dll driver

So my thinking is to install PHP as normal
but then create 2 seperated directories with only the following

c:\domain1
--- php5asapi.dll
--- php.ini
c:\domain2
--- php5asapi.dll
--- php.ini

and have domain1.com mapped to c:\domain1\php5asapi.dll
and then domain2.com mapped to c:\domain2\php5asapi.dll

and then would they each read the php.ini file from within their own directory? Where I could configure the php.ini seperatly for each?

I hope that makes sense

or is my thinking totally deranged in this thought process? :)

Thanks



 
What you're trying to do probably won't work. And if it does, it's probably not a good idea.

If you need custom configurations for each website, I recommend that you read this:
You can set up per-directory custom PHP configurations with IIS via the registry.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Hey thank you....

that is exactly what I needed, just didnt know where to look

Greatly appreciated
Don
PDX Oregon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top