Jump to content

installation on Windows 7 fails


Recommended Posts

Hello everybody!!

Could you please help me? I'm trying to run php on IIS in Windows 7 and when I try to install it following every step closely from php.net, it gives me an error:

HTTP Error 500.0 - Internal Server Error

 An unknown FastCGI error occurred

Module FastCgiModule Notification ExecuteRequestHandler Handler PHP_via_FastCGI Error Code 0x8007010b
Requested URL http://localhost:80/index.php Physical Path C:\inetpub\wwwroot\index.php Logon Method Anonymous Logon User Anonymous

 

I have no clue what I did wrong or what is wrong. Here's how I tried to install it:

 

enabled IIS and CGI

control panel > programs > Turn Windows features on or off > enabled Internet Information Service > World Wide Web Services >  Application Development Features > enabled CGI (all other checkmarks in the Application Development Features are OFF)

http://localhost/  works

downloaded and installed Microsoft 2008 C++ Runtime (x64) and did a Windows Update, updating it

downloaded PHP 5.4.15 VC9 x86 Non Thread Safe. unzipped it onto desktop to folder "php"

inside the folder "php", renamed the file "php.ini-production" into "php.ini"

edited the php.ini file:
 

changed this
 ; extension_dir = "ext"
 to this
 extension_dir = "ext"
 
changed this
 ;extension=php_fileinfo.dll
 to this
 extension=php_fileinfo.dll

 

also enabled these
 extension=php_gd2.dll
 extension=php_imap.dll
 extension=php_mysql.dll
 extension=php_mysqli.dll

left this line untouched
 log_errors = On

changed this
 ;error_log = php_errors.log
to this
 error_log = php_errors.log
 and created a file "php_errors.log" in the "php" folder

changed this
 ;cgi.force_redirect = 1
to this
 cgi.force_redirect = 0

changed this
 ;cgi.fix_pathinfo=1
to this
 cgi.fix_pathinfo=1

changed this
 ;fastcgi.impersonate = 1
to this
 fastcgi.impersonate = 1

changed this
 ;fastcgi.logging = 0
to this
 fastcgi.logging = 0

 

followed these instructions:
 1. In the Windows Start Menu choose "Run:", type "inetmgr" and click "Ok";
 2. In the IIS Manager user interface select the server node in the "Connections" tree view;
 3. In the "Features View" page open the "Handler Mappings" feature;
 4. In the "Actions" pane click "Add Module Mapping...";
 5. In the "Add Module Mapping" dialog enter the following:
  Request path: *.php
  Module: FastCgiModule
  Executable: C:\Users\Yanka\Desktop\php\php-cgi.exe
  Name: PHP_via_FastCGI
 6. Click "Request Restrictions" button and then configure the mapping to invoke handler only if request is mapped to a file or a folder;
 7. Click OK on all the dialogs to save the configuration.

in command line application, entered these 3 lines, pressing the "Enter" key after each line:
 %windir%\system32\inetsrv\appcmd.exe set config ^
 -section:system.webServer/defaultDocument /+"files.[value=index.php]" ^
 /commit:apphost
after entering these lines, the command line application said something, beginning with "Applied configuration changes..."

 

 

Thank you!!

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.