[FASTCGI] FastCGI not working on Linux (Red Hat)

Majed Al-Dolaimi majed.aldolaimi at gmail.com
Tue Mar 15 07:56:36 EDT 2011

I am no expert, but allow me to give you some hints.
inside the Location clause add the line "options +execCGI".
Make sure you have set the permissions of the cgi program file correctly,
r-x-r-x at least.
Make sure that the file extension is *.exe or remove it. Usually linux
binaries don't have extensions.
try this
<Location "/cgi-bin/mainapp">
setHandler fcgid-script
Options  +ExecCGI

The 503 error (which is service not available) hints that apache did not
find the exact file name "mainapp.exe" ... (maybe).
Hope it works for you. (don't give up, fastcgi works on linux)


On Tue, Mar 15, 2011 at 9:54 AM, Muneeb A. Shakoor <muneebhere at gmail.com>wrote:

> Hi all!
> My product is cross platform (Win/Linux/AIX/Solaris/HP-UX) (using C/C++). I
> have recently switched to FastCGI from trivial CGI. I have developed the
> FastCGI app for windows successfully. Now when going to port the code to
> Linux, I successfully gone passed the compilation phase (both my code and
> the libfcgi.so). Then I configured and built apache with FastCgi module
> (mod_fcgid) and added int the http.conf file as,
> <IfModule fcgid_module>
>     FcgidMaxRequestsPerProcess 10
>     FcgidMaxRequestLen 1073741824
>     <Location "/cgi-bin/mainapp.exe">
>         SetHandler fcgid-script
>     </Location>
> </IfModule>
> Before that I also built mod_fcgid as separate Load Module and added
> LoadModule mod_fcgid in conf file.
> In both cases apache starts fine but the browser throw 503 error.
> Any help is welcomed.
> --
> Thanks,
> Muneeb Abdul Shakoor,
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers at mailman.fastcgi.com
> http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20110315/871205a9/attachment.html>

More information about the FastCGI-developers mailing list