application mappings?

I just ran the iis-aid installer (for php4 under iis5.1 ... win xp pro).

It gave no errors and I accepted all defaults.

After installing I tried to load a php sample at http://localhost/test.php
With this: echo phpinfo();

The browser attempted to download the php document. Hmmmm, not reading the script.

I checked my website in the mmc and it showed no application mappings or isapi filters. I added them, pointing to the appropriate c:\php-iis\php4\sapi\php4isapi.dll. Did iisreset and ...

It doesn't prompt a download but now it says:

The specified module could not be found.

any suggestions? I'm a raw php newbie.

Average rating
(0 votes)
Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

Hi Tom,

First off, apologies for the late reply. Your post somehow slipped by me. Weird that the application mapping was not created as I haven't come across that before in IIS 5.1. Two points;

1. Remove PHP as an ISAPI FIlter as you only need an application mapping for PHP to parse PHP scripts.

2. Had you attempted to install PHP prior to using the IIS Aid Installer?

tomcollins's picture

Joined: Sep 2007

Send PM

tomcollins said:

re: 2. I had installed php5 prior to using the IIS Aid installer. (added it to the env. variable path= and the php5 isapi dll). This had worked fine for me.

Anyway, I've dealt with my problem in other ways (php install on a linux install) but I'm still curious as to why it didn't work (as I might come back to php under windows in the future).

keep up the good work.

Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

Hi Tom,

I'd say would be it then. My installer is still relatively early on in development and I've noticed that it doesn't always work when there are prior versions of PHP installed. I hope to have that sorted in future versions.

tomcollins's picture

Joined: Sep 2007

Send PM

tomcollins said:

mmm. Curious. I had uninstalled php5 before installing. And I don't think it leaves anything behind does it? But you're probably right.

And I couldn't make a plain php4 installation work for me the same way I got 5 to work either, so maybe there's something else at play.

Wish I could offer more useful debugging info for you. Oh well.

Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

If you used the installer from PHP I would think it would remove all the files, but honestly I haven't tested it. Another thing it could be is the inheritance in your IIS metabase. On a clean install of IIS the scriptmaps (aka application mapping) are inherited from the root. However, if you manually edit, add or remove a scriptmap for a particular site then that inheritance link is removed. The result of this is that if you then alter any scriptmap settings at the root they are only propagated down through the metabase where the inheritance attribute is still set. I think this is where the problem with my installer is as I don't think it is doing a fully recursive search through the metabase to find, update or create new PHP application mappings. Anyway, you can use Metabase Explorer from the IIS resource kit to browse the metabase and view these inheritance links.

tomcollins's picture

Joined: Sep 2007

Send PM

tomcollins said:

I did not use the installer. Which is why I figure that none of the files were missed during the install (since they were only in one directory and that directory was removed). Along with the path env. variable and, yes, the manually added application mappings I was definitely able to remove everything.

However, your description of the metabase makes me realize that there are things where my understanding is kind of ... weak.

Thanks for the thoughts. I may try this all again in the future.

Brashquido's picture

Location: Melbourne, Australia

Joined: Sep 2003

Send PM

Brashquido said:

No problems Tom. Thanks for the feedback.