• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1134
  • Last Modified:

Configuring fcgi or fastcgi mods with Apache 2.2 (WAMP server)

I’m running a WAMP environment consisting of Windows 2008 server R2 with Apache 2.2 openSSL 0.9 and PHP 5.3.5. All is running ok. Due to performance issues with loading some large web pages, I have read that configuring Apache with either fcgi or fastcgi will somewhat provide performance improvements. The problem is that I’m having trouble configuring Apache 2.2 with either FCGI or FastCGI mod. Please note - I’m not ofay with Apache (I’m from a .net background) …

I’ve added in the httpd.conf a reference to “LoadModule  fcgid_module modules/mod_fcgid.so”

When I restart the Apache service, it doesn’t start and only commenting out the above line it then restarts fine. There is a Mod_fcgi_so file in the Apache/modules folder. This file was not part of the Apache2.2 install but was downloaded from another site. Obviously Apache doesn’t like this file….

So plan B -  I’ve downloaded mod_fcgid-2.3.9 from Apachelounge. The download consists of many folders and files and there is no clear documentation of where to copy the files to under the Apache folder on the WAMP server. I can’t even locate the Mod_fcgi_so file..

My  queries are:

1)      With regards to the reference in httpd.conf file: LoadModule  fcgid_module modules/mod_fcgid.so  - where do I get this file from?
2)      What files do I need from the downloaded mod_fcgid-2.3.9 file and where do I copy them to under the Apache folder?
3)      Ultimately… how the hell do I get either fcgi or fastcgi integrated as seamlessly and painlessly as possible?!?

Any advice will be greatly appreciated!
0
Seven0fNine
Asked:
Seven0fNine
2 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
You can't just add modules from different sources to Apache or PHP.  Both programs are very version and compiler sensitive.  Trying to use modules from different versions or compilers usually crashes the main program.

And the WAMP people compile their own versions so they can substitute in different versions of the main programs.  Trying to install a module from a different source probably isn't going to work.

My version of WAMP has a mod_cgi.so file in the Apache modules directory and phpinfo() says it running using 'cgi' interface.
0
 
gheistCommented:
mod_fcgid is separate product from apache httpd, and does not offer binary windows download.
As mentioned before you need exact version from same source as apache httpd (apache.org is not valid source for that)
Or build everything on your own with your own visual studio compilers.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now