ASPNetFAQ.com: What is ASP.NET?

Technology posts on ASP.NET, IIS, Windows (+ a little Linux), Cloud Servers, Hosting, and more!
  • Blog Home
Search the site...

Handler "PHP5x_via_FastCGI" has a bad module "FastCgiModule" in its module list

Tweet
Share
0 Shares

Below is a guest post by Desiree at OrcsWeb with an IIS/PHP/CGI troubleshooting tip:


I installed WordPress for one of our managed clients recently, and what should have been a simple install, turned into quite a bit of troubleshooting. The client was running Windows Server and using IIS for their site hosting. Before starting the WordPress install I confirmed that the server showed PHP was previously installed and configured.

Looking for the BEST WordPress Hosting?
Read my review of the Best WordPress Hosting or click the banner below to check out SiteGround's plans - starting under $4/month!
Do you already have a site? They'll migrate it for you - FREE!

Web Hosting

After the install, the site wouldn’t load and returned the error below:

HTTP Error 500.21 - Internal Server Error
Handler "PHP54_via_FastCGI" has a bad module "FastCgiModule" in its module list

Detailed Error Information
 Module    IIS Web Core
 Notification    ExecuteRequestHandler
 Handler    PHP54_via_FastCGI
 Error Code    0x8007000d
 Requested URL    http://test.domain.com

Physical Path    C:\Data\test.domain.com\wp-admin\setup-config.php
 Logon Method    Anonymous
 Logon User    Anonymous
 Failed Request Tracing Log Directory    C:\inetpub\logs\FailedReqLogFiles

The problem is that the error isn’t very clear. After some troubleshooting and research I figured that to resolve the issue I would need to either install CGI or remove and then reinstall CGI. The server showed that CGI was already installed, but perhaps it wasn’t installed properly? As part of continued troubleshooting, I removed and then reinstalled CGI. The application still didn’t work and was now showing the following error:

clip_image002

If this happens, it is because the removal of CGI removes the registration in PHP Manager. In IIS, open PHP Manager. Click on “Register new PHP version” task and then provide the full path to the location of the main PHP executable file: php-cgi.exe (i.e., C:\Program Files (x86)\PHP\v5.4\php-cgi.exe).

After those changes, we reloaded the site and everything worked properly.

If you run into a similar issue getting PHP and CGI (and perhaps specifically WordPress) working on your IIS server, I hope this helps!

More from my site

  • Resolving a “There is a duplicate ‘system.web.extensions/scripting/scriptResourceHandler’ section defined” ErrorResolving a “There is a duplicate ‘system.web.extensions/scripting/scriptResourceHandler’ section defined” Error
  • Implementing Application Initialization on IIS 7.5Implementing Application Initialization on IIS 7.5
  • Orchard: Custom Content in Sub-FoldersOrchard: Custom Content in Sub-Folders
  • MVC3, Visual Studio 2010: Error: Microsoft JScript runtime error: Not implementedMVC3, Visual Studio 2010: Error: Microsoft JScript runtime error: Not implemented
  • Performance Monitor Tips: Identifying BottlenecksPerformance Monitor Tips: Identifying Bottlenecks
Tweet
Share
0 Shares
ASP.NET, tip, Troubleshooting, Windows

One comment on “Handler "PHP5x_via_FastCGI" has a bad module "FastCgiModule" in its module list”

  1. Jonathan Weavers says:
    July 4, 2013 at 7:30 am

    Hey Brad-

    Your last post [Handler “PHP5x_via_FastCGI” has a bad module “FastCgiModule” in its module list] was freaking awesome. I have gone ahead and added your stuff to my Feedly account. Please keep me updated if you post anywhere else.

    Keep rocking –

    Jon

Proverbs 19:20

"Get all the advice and instruction you can, so you will be wise the rest of your life."

A Note On WordPress Hosting

Our main focus is of course .NET, but with a mix of Linux, virtualization, and other technologies. But if you're really looking for the best WordPress hosting specifically, read my WordPress host review to save yourself hassle AND money!




Recent Posts

  • What makes good web hosting?
  • jQuery Mobile C# ASP.NET and N5 Networks Software Repository
  • Open Source Bug Tracking Software and the Orchard Project
  • ASP.NET Development with Dreamweaver MX: Visual QuickPro Guide
  • Kendo UI Sample, ASP.NET Ajax Tutorial & More

Tags

ASP.NET Automation centos CMS css cytanium Development/Coding Email gmail Hosting htaccess http https IIS javascript Learning Linux logparser MySQL nginx openssl OrcsWeb performance PowerShell redirect RHEL security server SherWeb smtp SQL/Databases ssl System Administration telnet terminal tip Troubleshooting Ubuntu virtualization Visual Studio web farm web hosting Windows windows server Wordpress

Categories

  • ASP.net development
  • Development/Coding
  • Hosting
  • IIS (Internet Information Services)
  • SQL/Databases
  • System Administration
  • Virtualization
(c) ASPNETFAQ.com