Solved

Advice on implementing mod_fcgid on windows platform

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

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…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
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 …

867 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

22 Experts available now in Live!

Get 1:1 Help Now