hyess Posted May 19, 2013 Share Posted May 19, 2013 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.logto this error_log = php_errors.log and created a file "php_errors.log" in the "php" folder changed this ;cgi.force_redirect = 1to this cgi.force_redirect = 0 changed this ;cgi.fix_pathinfo=1to this cgi.fix_pathinfo=1 changed this ;fastcgi.impersonate = 1to this fastcgi.impersonate = 1 changed this ;fastcgi.logging = 0to 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:apphostafter entering these lines, the command line application said something, beginning with "Applied configuration changes..." Thank you!! Quote Link to comment https://forums.phpfreaks.com/topic/278177-installation-on-windows-7-fails/ Share on other sites More sharing options...
xenLiam Posted May 24, 2013 Share Posted May 24, 2013 Doesn't IIS contain a "Web Installer Platform" that allows a one-click installation of PHP for use in IIS? Quote Link to comment https://forums.phpfreaks.com/topic/278177-installation-on-windows-7-fails/#findComment-1432019 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.