English 中文(简体)
PHP on IIS 5.1 is not working
原标题:

I know this has been asked a few times here. But none of the suggestions or answers related to PHP on IIS have helped.

I have tried installing PHP ON IIS 5.1 (XP SP 3) on two computers and it still doesn t work. I ve even began to think that all of the articles and installers for PHP on IIS are a huge prank...and that PHP on IIS doesn t actually work.

I ve spent the last 6 hours trying to get it to work. Nothing does. As of right now when I navigate to http://localhost/phpinfo.php all that shows up is: "The specified module could not be found." My IIS applications still work perfectly.

phpinfo.php contains:

<?php echo phpinfo(); ?>

Even loading test.php with "Hello World." in it gives me the same error message.

The current installation of PHP was installed from http://php.iis.net/ (the big blue button in the middle of the page). This installed PHP in my programs directory (F:PHP).

That didn t configure PHP to work so I manually added the Application Mapping in "Web Sites" > Properties > Home Directory > Configuration > Mappings > Add. I added C:WINDOWSsystem32inetsrvfcgiext.dll, ext .php, "GET,HEAD,POST"

Anyone have any idea what my problem is?

最佳回答

Sounds like you ve not installed the FastCGI components (which to be honest you don t really need on your local development machine). Can I suggest mapping the .php extension to:

F:phpphp-cgi.exe (or wherever the PHP binaries are installed)

Also make sure you give your site s anonymous user account at least read access to the F:PHP folder and children.

问题回答

I think the DLL you are using for getting PHP to work have a missing dependency. Why don t you get a WAMP.

Do you really need to use IIS, using Apache would be far more easy IMHO. If you really want to use IIS, I advise to install the official PHP release they have a good README which describe all the steps to configure IIS or even an installer.





相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签