Solved

Advice on implementing mod_fcgid on windows platform

Posted on 2008-10-16
4
1,157 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now