Solved

Advice on implementing mod_fcgid on windows platform

Posted on 2008-10-16
4
1,163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

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…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

738 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