2

I am running IIS 6.0 on Windows Server 2003 using FastCGI. I have followed the instructions here:

http://www.php.net/manual/en/install.windows.iis6.php

including this line in my command prompt:

cscript %windir%\system32\inetsrv\fcgiconfig.js -add -section:"PHP" ^ -extension:php -path:"C:\PHP\php-cgi.exe"

However, my server does not recognise .php files. How do I configure my server to send php files to the php-cgi.exe, instead of downloading them?

Question is copied from https://stackoverflow.com/questions/6905811/server-cannot-process-php-files-downloads-them-instead

7
  • have you tried restarting the server? Commented Aug 1, 2011 at 23:53
  • PHP appears to be working. I can run my hello world program from the command prompt using php.exe and php-cgi.exe. The issue seems to be getting the server to associate php files with the executable. Commented Aug 1, 2011 at 23:56
  • @jeune No. It would take down an unknown number of services on my business, so I'd leave that as a last resort. Any other ideas what is causing the problem? Commented Aug 1, 2011 at 23:57
  • You can always align with your services that you will have a down time of say 10 minutes to restart. Isn't that possible? Commented Aug 2, 2011 at 0:01
  • it might be a webserver issue, setting your file handler to php extensions. Commented Aug 2, 2011 at 0:12

1 Answer 1

1

If you open your IIS manager and browse to "Web Service Extensions" under your server, do you see "PHP ISAPI" in the right pane?

(from here: http://www.iisadmin.co.uk/?p=4&page=2)

2
  • I only have PHP pointing to php5.dll. What is the ISAPI? I downloaded PHP version 5.3 and I don't have the phpisapi.dll that a ton of guides mention. Commented Aug 2, 2011 at 5:55
  • How did you install PHP? Commented Aug 3, 2011 at 23:59

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.