Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP 5.0.5 under IIS 5 (Win2k)

Status
Not open for further replies.

chpicker

Programmer
Apr 10, 2001
1,316
I've been struggling all day to get PHP to work. I thought I had followed all of the instructions properly, but I must have done something wrong. IIS was already set up and running, so I installed PHP into c:\PHP. I tried setting it up to use both the CGI version and the ISAPI version. Neither of them work properly, but in different ways.

ISAPI

With this one, PHP works just fine...by itself. For some reason, many of the extensions refuse to load. The PHP.INI file has the correct folder name for the extensions in the EXTENSION_DIR directive. If I have the ISAPI Filter set up, I get an error as the IIS service starts up that it could not find the module C:\PHP\EXT\PHP_MYSQL.DLL. I have double checked that the file does in fact exist in exactly the location the error message indicates. If I disable the filter, I don't get the error. Either way, however, trying to view a PHP file using any MySQL function throws this error:

Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\ on line 2

I can't for the life of me figure out why it can't load the DLL file. So I decided to try the CGI version instead.

CGI

I set PHP files to be parsed by the c:\php\php-cgi.exe file. Using the CGI version, I am at least able to get past the module loading issue. In fact, everything appears to work just fine...except that the following gets tacked on to the end of every single PHP page the server sends:
Code:
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
This comes up EVERY SINGLE TIME, even if the following PHP code is loaded.
Code:
<?php echo "Testing!<BR />\n"; ?>
The errors are always tacked on to the end of the proper page output. Like I said, everything appears to actually work...except for the errors.

What am I doing wrong? Why does PHP behave so utterly different depending on how it's loading? I realize this really is more a PHP problem than an IIS problem, but the PHP forum seems to be more for coding issues, not server setup.

I'm running Windows 2000 Server SP2 (build 2195) with IIS 5.0.2195.2966. I'm attempting to get PHP version 5.0.5 to run.

Any suggestions?

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top