?
Solved

Advice on implementing mod_fcgid on windows platform

Posted on 2008-10-16
4
Medium Priority
?
1,165 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 80 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

ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This article discusses how to implement server side field validation and display customized error messages to the client.
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 count occurrences of each item in an array.
Suggested Courses

741 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