Link to home
Start Free TrialLog in
Avatar of guruerror
guruerrorFlag for United States of America

asked on

IIS 6.0 and PHP 5.2.5 'The specified procedure could not be found.'

I am running a Windows 2003 Standard SP2 server (fairly fresh/clean installation) and have installed PHP 5.2.5.  After the installation I receive the following message in IE 6.0 for every .php page I attempt to view: "The specified procedure could not be found."

I've tried the PHP installation in several different manners with the same result.  The current installation was performed with the "Do not setup a web server" option selected and the installation folder was set to C:\PHP.  

After the install I then configured Windows/IIS as follows:

* I copied the php5ts.dll file to the C:\WINDOWS folder

* In IIS I added a new Web Service Extension (Extension Name "PHP", Required Files "C:\PHP\php5ts.dll", set to Allow)

* In the Application Configuration dialog box found under the Configuration button on the Home Directory tab of my Default Web Site properties I added an Application Extension (Executable "C:\PHP\php5ts.dll", Extension ".php", Verbs "All Verbs")

When I attempt to browse my test.php file (consitinting of the following code: "<?phpinfo(); ?>" I receive the following message in IE: "The specified procedure could not be found."  This message is displayed for every .php file I attempt to browse.

Thanks in advance.
Avatar of Paulo Pimenta
Paulo Pimenta
Flag of Portugal image

Instead of "C:\PHP\php5ts.dll" extension, I believe you should apply "C:\PHP\php5isapi.dll" extension.
Have you tried that?

Cheers,
PP
Avatar of guruerror

ASKER

With the current installation (having selected "Do not setup a web server") the php5isapi.dll was not installed.

Earlier I tried installing PHP 5.2.5 using "ISS ISAPI module" option during setup, which did install the isapi .dll...I got the same results.
Well, you could try registering "C:\PHP\php_cgi.exe" that was the one I used to have, before moving to Apache.

Anyway, I never liked PHP installation setup. Don't know why, but it never worked for me.
I always download Win32 zip file (http://pt.php.net/get/php-5.2.5-Win32.zip/from/a/mirror) - this file contains the whole PHP packdge - and follow manual installation on Windows systems (IIS) (http://pt.php.net/manual/en/install.windows.iis.php) and extensions installation on Windows systems (http://pt.php.net/manual/en/install.windows.extensions.php).
PHP file configuration is also very important. Remarks and Comments on PHP.INI file are suggestive enough, but you can get more info here: http://pt.php.net/manual/en/ini.core.php

I'd suggest you to do the same, since it always worked for me.
Let me know if it did you any good.

Cheers,
PP
Well...I've made some progress on my own, but am still left with a linger question/issue.

Following along the lines of what paulop1975 said earlier I removed my manually-configured Web Services Extension and Application Extensions and un-installed PHP; then re-installed PHP selecting "IIS ISAPI module."

After that I no longer received the "The specified procedure could not be found" message, instead I was receiving a 404 error.  I double-checked the Web Service Extension and Application Extension that was configured by PHP setup and didn't find a problem, so on a whim I allowed "All Unknown ISAPI Extensions"...and, tada, the .php page is displayed!

This meets my immediate need, since PHP is working, but I'd still like to know what needs to be tweaked so that I can prohibit Unknown ISAPI Extension and maintain functionality.
ASKER CERTIFIED SOLUTION
Avatar of Paulo Pimenta
Paulo Pimenta
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial