Re: PHP + IIS7 - 'weird stuff' with multiple sites on same server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Shawn McKenzie" <nospam@xxxxxxxxxxxxx> wrote in message 
news:B8.7E.55398.E12B2C94@xxxxxxxxxxxxxxx
> scubak1w1 wrote:
>> Hello,
>>
>> I was/am using the excellent tutorial over at
>> http://learn.iis.net/page.aspx/246/u...ons-on-iis-70/ to get PHP5.2.9 up
>> and running on Server '08 and IIS7.
>>
>> All was working well, got my site migrated across, code was working,
>> data coming and going out of PostgreSQL in the back end, etc, etc...
>>
>> So time to move another couple of sites to the install... and here is
>> where I started to stumble - namely, IIS always 'calls' the PHP file in
>> the first/original site's 'wwwroot' directory, even from other sites
>> 'based' in other directories!? (assuming there is a PHP file there with
>> the *same* name...)
>>
>> That is, if you go to a PHP page on ANY of the sites with, say, the name
>> 'test.php' the PHP page that is displayed is the 'test.php' site on the
>> FIRST site created in the original 'wwwroot', not the 'test.php' in the
>> different directory for that site!!??
>>
>> ASP, HTM, etc files are working as you would expect, that is calling
>> them from the 'correct' site
>>
>> I am thinking that 'PHP via Fast CGI' is somehow erroneously defaulting
>> to the always 'calling' the PHP files of the same name in 'wwwroot'??
>>
>> I went back to the same (default) application pool rather than one for
>> every site - as I saw that hinted it as an issue onlin - but with no
>> luck...
>>
>> Any advice or suggestions would be GREATLY appreciated, 'cause I am
>> stuck!
>>
>> Note that I am a geologist who now does GIS, data management, web pages,
>> etc for sharing scientific data... i.e., rather than a system admin; I
>> am very happy to puzzle things out my self, but sometimes I of course
>> get stuck like this due to my lack of specific knowledge! <smile>
>>
>> Cheers: GREG...
>
> I've never done this, but just scanning that link, did you do the
> "Per-site PHP process pools" steps?

I tried that, both via the GUI and then via the applicationHost.config file 
with Notepad2... (and copied & specified individual php.ini files for all 
sites, even though I am using the same PHP all around as it were...) -  no 
luck - searching around on line, at https://forums.iis.net/t/1147812.aspx in 
teh last post there is a note that "I did notice that when I make multiple 
websites with IIS they needed to be in the default application pool or I 
would get errors."

I am going to head further into this, even with my lack of experience - so 
had IT take a snapshot of the server with Acronis!   <grin>

A hunch suggests it MIGHT be an open_bas direcotory thing...

I will post any progress I find...

Cheers... 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux