logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: First time mod_fcid user needs help for a Windows setup
Author
icefresh



Joined: 21 Feb 2009
Posts: 7
Location: UK

PostPosted: Sat 21 Feb '09 3:27    Post subject: First time mod_fcid user needs help for a Windows setup Reply with quote

In the past few weeks, I have spent a considerable amount of time researching server configurations, security, performance etc. In that time, I read about the advantages of using mod_fastcgi over mod_php in Apache and decided to test this module. I tried nearly every recommendation, guide and tutorial I could find on the Net (most were Unix/Linux based, incidentally) but could not find a configuration that worked. I was using Apache 2.2.11, PHP 5.2.8 and mod_fastcgi-2.4.6-AP22.dll.

My research led me to this site at one point and notice that there was an alternative fast cgi module, but at that time was still actively attempting to achieve some success with mod_fastcgi. Anyway since I could not get mod_fastcgi to work, I figured I that I would do the logical thing and try mod_fcgid Smile. In order to be more effecient this time I will request some help on setting up mod_fcgid on Windows. I am using XP SP3 as the test machine.

1. Which PHP package should be used? The Windows Installer, the thread-safe zip package or the non-thread-safe zip package. I tried the last two during my mod_fastcgi tests.

2. What directives, if any, should be placed in the php.ini file?

3. What directives should be placed in the Apache httpd.conf file?

4. What other relevant information (either posted here or referred to via links) that I would need for installation and configuration.

I would be extremely grateful for any assistance Smile.

Cheers
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 21 Feb '09 17:21    Post subject: Reply with quote

You can download mod_fcgid from the download page on apachelounge.

Here a very short tutorial for a location, but I'm sure you can get this work over all. The PHPRC sets where the php.ini is located. The php folder itself is a good location.

This requieres mod_setenvif enabled.

Code:

LoadModule fcgid_module modules/mod_fcgid.so
<IfModule mod_fcgid.c>

   IPCCommTimeout 40
   IPCConnectTimeout 10
   MaxProcessCount 8
   OutputBufferSize 64
   ProcessLifeTime 240
   MaxRequestsPerProcess 500
   SetEnv PHPRC "C:/php"
   DefaultInitEnv TEMP "c:/tmp"
   DefaultMinClassProcessCount 0
   
   Alias /fcgi/ "c:/fcgi/"
   <Directory c:/fcgi>   
      AddHandler fcgid-script .php
      Options Indexes FollowSymLinks ExecCGI
      FCGIWrapper "c:/php5/php-cgi.exe" .php
      AllowOverride all
      Order allow,deny
      Allow from all
      Satisfy any
   </Directory>

</IfModule>
Back to top
icefresh



Joined: 21 Feb 2009
Posts: 7
Location: UK

PostPosted: Sat 21 Feb '09 21:41    Post subject: Reply with quote

Thanks Mr. Blond for responding and the tutorial Smile. I'll give it a spin to see how it goes. I gather that any of the PHP packages (auto-installer, thread-safe or non-thread-safe) are fine to use for testing?

Cheers
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sun 22 Feb '09 21:45    Post subject: Reply with quote

I tried the thread safe and the non thread safe package. I dislike self installers.
Back to top


Reply to topic   Topic: First time mod_fcid user needs help for a Windows setup View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules