473,796 Members | 2,728 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP5 on IIS7 in Windows Server '08 - multiple site issues (sic)

scubak1w1
53 New Member
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 directory for that site!!??

ASP, HTM, etc files are working as you would expect, that is calling them from the 'correct' site - and so I set the handler mapping for 'PHP via Fast CGI' to have the same Path Type as 'ASP', namely 'File', as a test - no luck...

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'??

Any advice or suggestions would be GREATLY appreciated, 'cause I am stuck!

Note that I have just one php.ini file - but reading online I may need one for each site??

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...
Mar 13 '09 #1
1 2700
scubak1w1
53 New Member
Found it!

I was using a php.ini file, a little adjusted, from the test server on IIS5.1 on an XP box, to help ensure I kept my settings as I had tweaked them...

In this 'carry over' php.ini file I had

Expand|Select|Wrap|Line Numbers
  1. ...
  2. doc_root = "C:\inetpub\wwwroot"
  3. ...
  4.  
I just REMed this out, rebooted the server (an IIS restart was not enough), viola!

Phew! I thought I was going nuts - and learnt to check my .ini file in great detail!

Cheers!
Mar 23 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
4759
by: Spidah | last post by:
Looking at the list of changes made in PHP5 one of them is "Removed the bundled MySQL client library" Does anyone know exactly what this means? I assume we will still be able to code for MySQL as we do now? Thanks Hamilton
11
3768
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET actiavted Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
14
9508
by: Brad | last post by:
I have a .net 2.0 web application project that creates a pdf file, saves the pdf to disk (crystal reports does this part), and then my code reads the pdf file and writes it to the httpresponse The web app works great on win2003 and xp and the end result is a pdf file is displayed in the browser. When I run the same code on Vista, the browser displays the message "Internet Explorer cannot display the web page". If I open the same...
5
2683
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it across the network, so i've installed IIS7 on my Vista machine and created a new website, point at the website's directory. After I switched to the 'Classic .net' app pool, it shows up on the port.
6
9646
by: ma | last post by:
Hello, I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to deploy in to a system which has Vista Business and IIS7. I copied my files to the target computer and created a virtual directory. I add default.aspx to the list of default pages for the virtual directory. My problems are: 1- On vista computer I am trying to see the output of my ASP.NET
3
3116
by: =?Utf-8?B?T2xpdmllciBNQVRST1Q=?= | last post by:
I'm trying to run an ASP.NET 2.0 web site on Windows Server 2008 RC1. I encounter a server error : HTTP 500.19 - Configuration data is invalid IIS7 claims that the <appSettingssection in web.config is invalid. The management tools are also unable to parse the configuration. The same web site, with the same configuration, is running perfectly on Vista. Is it tied to Windows Server 2008 RC1 ? Any help appreciated.
12
2594
by: Alan M Dunsmuir | last post by:
After having worked with Apache/MySQL/PHP for a year or so under Linux I need, purely for convenience, to set up a parallel platform under Windows. Unfortunately, since I last did this (using Windows XP Pro) I've moved on to Windows Vista (Home Premium). MySQL and Apache2 have both installed satisfactorily, but I'm having problems with PHP5. I downloaded the PHP5 Windows installer (the .msi file) for 32-bit Windows, which is supposed...
2
6565
by: David Thielen | last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows 2008 Server running IIS7. We have copied all files to the Windwardreports\apps directory and that apps directory has been converted to an application running in ..NET 2.X and Integrated mode. We copied over the DB and edited the web.config file to the DB username and password. I also added the NETWORK SERVICE user to the DB.
5
9581
by: DustinP | last post by:
I have installed PHP5 as ISAPI several times per every single guide I could find in the first 50 pages of results on google.. Server is Windows 2008 runing IIS7, phpinfo works and tells me the configuration.. but there is an issue.. i see the following.. Configuration File (php.ini) Path C:\Windows Loaded Configuration File C:\php\php.ini PHP in installed to C:\php and the php.ini ONLY exists in that location and the permissions for...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10467
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10244
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.