...

View Full Version : PHP works on only one site...



amir103
06-11-2007, 10:01 AM
I'm running IIS 6 on Windows Server 2003, and I have one site currently running. PHP works absolutely fine, but when I add a new site, the new site cannot do PHP whatsoever! It doesn't even give me the download thing to download the php file, I only get 404 error.

Remember the first site still works fine and perfect with PHP, but any other site I create doesn't. Both site's properties are identical, I even tried the second site with port 80 but no matter what I do one site will work and the others won't.

What I find strange is that when PHP isn't usually working, I would get a download for the php file, but this 404 error is completely random, and btw, HTML files work fine - the PHP file is actually there and if i put the php file onto the working site, it works. It's as if that single site had somthing magic making it run php

Totally bizare, please help me..

_Aerospace_Eng_
06-11-2007, 10:06 AM
Are you sure the files are there? Filenames are case sensitive on windows.

amir103
06-11-2007, 11:30 AM
Yes! It's definately the file, and to prove it if i copy the EXACT same file and put it on the working site, it works! and directory wise, html files in the SAME directory work. This is soo strange but it's real important that i fix it.

CFMaBiSmAd
06-11-2007, 01:26 PM
Make sure you have set the doc_root = setting in php.ini. If I remember correctly, this must be set on IIS systems. Something like -

doc_root = c:\inetpub\wwwrootOn IIS, reboot your computer (just stopping and starting the web service does not work as of the last time I used IIS) to get any changes made to php.ini to take effect.

amir103
06-12-2007, 08:38 AM
I just tried that: no difference. How can this be happening? How can this even be possible?

CFMaBiSmAd
06-12-2007, 02:50 PM
What method did you use to install PHP?

This sounds like an incomplete installation (not all the steps completed) and/or a permissions problems (only the root folder has the proper user/permissions set.)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum