I'm while using fastcgi C/C++ toolkit, to build up an evaluation fastcgi application. I built (and am now testing) this example supplied by the toolkit.

I've loaded Apache mod_fcgid and effectively restarted the apache2 daemon. However, after i attempt to access the fastcgi resource, it's coming back an empty page.

Note: I made the next changes towards the example code (because it did not use the default socket fd worth of ):

int sock_fd = FCGX_OpenSocket(":5000", 1);
FCGX_InitRequest(&request, sock_fd, 0);

My /etc/apache2/mods-enabled/fcgid.conf file appears like this:

<IfModule mod_fcgid.c>
     AddHandler fcgid-script .fcgi
     SocketPath /var/lib/apache2/fcgid/sock
     IPCConnectTimeout 10
     IPCCommTimeout 20
     OutputBufferSize 0
     MaxRequestsPerProcess 500
</IfModule>

My /etc/apache2/mods-enabled/fcgid.load file appears like this:

LoadModule fcgid_module /my/path/here/libs/mod_fcgid.so

Then i utilized the 'resource' inside a browser while using following url:

http://127.0.0.1:5000

What shall we be held doing wrong? (presuming that somebody has really handled to obtain the example reported above, to operate)

I'm developing/testing on Linux Ubuntu 10.x

i do not use apache for while, however i think your url isn't good i suppose your apache operate on port 80 as well as your echo.fcgi reaches cause of apache folder

for information, i personally use nginx for serve fcgi application

http://localhost/echo.fcgi