Page 1 of 1

Letting ASP pages work in PHP site

Posted: Tue Sep 07, 2010 2:31 am
by BDB100
Hello,

We run a PHP-website through IIS v6.0 (windows server 2003). The site was configured by an ex-collegue. Now I have to add a couple of existing
ASP-pages to the site. I have tried this, but it won't work. When calling an ASP page in Internet Explorer, we get the following message : "The page cannot be found". However, if I rename the asp-pages to php, it does work fine, but this is not the way I want it to work (I like to keep the asp pages, to be sure they work well). Can one configure IIS so ASP pages can run aside our existing PHP-pages ?

Some basic settings in our IIS :
Web Sites => Properties => ISAPI Filters => .php (php5isapi.dll)
Web Service Extensions => Only php is allowed

I have tried to add the following settings :
Web Sites => Propeties => ISAPI Filters => .asp (aspnet_filter.dll)
Web Service Extensions => ASP.NET => allowed

Even with these settings I keep getting the "HTTP Error 404 - File or directory not found" :(
Extra remark : I don't know the version of ASP, in which the ASP pages are made. Does this matter in any way or are
there some other settings I have forgotten to define ?

Thx

Re: Letting ASP pages work in PHP site

Posted: Wed Sep 08, 2010 12:08 am
by Doug G
It seem to me a quick look in the web server logs should point out why you're getting a 404.

Perhaps you haven't configured a virtual directory that's needed.

PHP and ASP can both exist and work on a properly configured IIS server, but you won't be able to include pages from one technology in the other, or share sessions, etc. About the only interaction you can get between asp and php pages is to use xmlhttp or similar to do http requests to a 2nd page and use the results in your original page code.

Re: Letting ASP pages work in PHP site

Posted: Wed Sep 08, 2010 2:37 am
by BDB100
Hi,

The pages should not interact. I just need to be able to call the asp pages, which doesn't work for the moment.
I have checked in the following directory to find some more info about the error : "C:\WINDOWS\system32\LogFiles" (that's the path that is
mentionned in the logging properties in the IIS => W3C Extended Log File Format), but I couldn't find the 404 error ?

Regards,
Brecht

Re: Letting ASP pages work in PHP site

Posted: Wed Sep 08, 2010 5:28 pm
by Doug G
There should be log files for each day, or there used to be anyway, I haven't used IIS is a couple years.