Letting ASP pages work in PHP site

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
BDB100
Forum Newbie
Posts: 8
Joined: Tue Sep 07, 2010 2:15 am

Letting ASP pages work in PHP site

Post 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
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Letting ASP pages work in PHP site

Post 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.
BDB100
Forum Newbie
Posts: 8
Joined: Tue Sep 07, 2010 2:15 am

Re: Letting ASP pages work in PHP site

Post 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
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Letting ASP pages work in PHP site

Post 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.
Post Reply