Entry
How do I load extensions in IIS5 with PHP 4.2.3?
Nov 18th, 2002 18:03
Chris Z,
In my case I'm using Windows2000 with IIS5, and wwwroot was on my D:
drive (D:\Inetpub\wwwroot). After you get php running using the
installer for windows, you'll want to enable some extensions, and this
is where the problems began but I figured it out. You can copy your
extensions to your C:\winnt\system32 folder or you can copy them to
C:\php\extensions directory. I put mine in c:\php\extensions because it
makes it easier to find and update later. It doesn't matter where you
put this folder so long as two things happen. First, edit your php.ini
file found in C:\winnt\ to point to the correct directory for your
extensions. Second, you need to edit your permissions on your
Extensions folder and allow the computername_IUSR (the local account
that IIS creates on your machine) to read and read/execute and this was
satisfactory enough to not get the access denied messages. Next go your
page where you have the phpinfo () function and see if your modules
load without error. This should do the trick.
I did run across one problem loading the snmp module (php_snmp.dll). It
seems that when this loads you get an error at the bottom of you
phpinfo page starting with: "Cannot find module (IP-MIB): At line 0
in (none)..." and so on. If you used the windows installer you'll need
to download the zip package, which you should already have if your
loading extensions. In this zip file you'll find a "mibs" directory.
Since my website is on the D: drive I created a folder called "usr" and
copied this mibs folder into it (D:\usr\mibs\). Once I did this all
those errors went away. I would assume that you might need to do the
same thing if your website is being hosted off your c: drive, although
I'm not sure. I hope this helps.