Solved

Advice on implementing mod_fcgid on windows platform

Posted on 2008-10-16
4
1,162 Views
Last Modified: 2013-12-13
I have a production server running Windows 2003 SP1.
Apache 2.2.9 is installed with 5.2.6 PHP called using LoadModule php5_module.

The Apache daemon will frequently crash, windows application event log recoding "Faulting application httpd.exe, version 2.2.9.0, faulting module php5ts.dll, version 5.2.6.6, fault address 0x0000b009."
On start up the Apache daemon behaves well. After a ( short ) period the Apache daemon consumes almost all of the processing ability of the new server when making MySQL database queries.

Non PHP database queries are handled in timely, low processor overhead manner.

The problem appears to be due to the volume and frequency of PHP database connects.

After much internet browsing there appears to be a repeatable PHP bug for several years, without any obvious resolution.  I see FastCGI as a potential saviour, and have a configuration that is presumably processing PHP scripts, since I don't have a PHP script delivered as text.  Pertinent current httpd.conf section is:

#Section Start

LoadModule fcgid_module modules/mod_fcgid.so
DefaultInitEnv PHPRC "c:/php/"
DefaultInitEnv PATH "c:/php;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"
DefaultInitEnv SystemRoot "C:/Windows"
DefaultInitEnv SystemDrive "C:"
DefaultInitEnv TEMP "C:/WINDOWS/TEMP"
DefaultInitEnv TMP "C:/WINDOWS/TEMP"
DefaultInitEnv windir "C:/WINDOWS"
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
    SetHandler fcgid-script
    Options execCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    FCGIWrapper "c:/php/php.exe" .php

</Directory>

# Section Finish

If I make a call http://localhost/phpinfo.php sited at "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" I now get a 403 error - 'You don't have permission to access /phpinfo.php on this server'.  This file and the windows/temp folder now have OS ACLs to allow everyone to modify.  Using php5_module the file processes fine.

Could anyone provide advice on mod_fcgid configuration to allow testing to resolve the servers underlying problems.
0
Comment
Question by:psquance
  • 2
4 Comments
 
LVL 6

Assisted Solution

by:thebradnetwork
thebradnetwork earned 20 total points
ID: 22746877
Seems like your ultimate goal is to get fastcgi running on your apache server. Check out this link:

http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html
0
 

Author Comment

by:psquance
ID: 23225314
The comment from thebradnetwork is alink to existing originator documentation.  This omplementation had already been attempted prior to posting.  It was not assistance in resolvling a problem.
0
 

Accepted Solution

by:
psquance earned 0 total points
ID: 23225331
Original problem curcumvented by implementing wampserver install
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question