mod-fastcgi

mod_perl vs mod_fastcgi

I'm developing a web app in Perl with some C as necessary for some heavy duty number crunching. The main problem I'm having so far is trying to decide if I should use mod-perl, mod-fastcgi or both to run my scripts because I'm having a difficult time trying to analyze the pros and cons of each mod. Can anyone post a summary or give a li...

Can I get a Java Socket from a file descriptor number?

When a program is started via FastCGI, it is exec'd with a socket already open to talk to the web server. The socket's file descriptor number is handed to the program, but how can that be converted to something useful in Java, such as a Socket instance? My hosting service uses mod_fastcgi for Apache httpd. They won't allow me to configu...

How can I show a maintenance page when my FastCGI app is restarting?

I am serving my FastCGI application in Apache2 using the standalone FastCGI server and the FastCgiExternalServer directive. When I restart my FastCGI app my users get a 500 error. What can I do to prevent this? I want to show them a nice 'maintenance' page or something. It is a Catalyst application written in perl and I have followed t...

Which FastCGI server mode should I choose under Apache?

I am new to FastCGI and looking to use this platform to speed up my existing vanilla CGI (perl) programs. However in reading the FastCGI/Apache FAQ, it appears I can setup my scripts (once converted to use separate initialization/request sections) in the Apache config as one of the following: 1) dynamic 2) static "inside the scope of ...

What does "Maximal count of pending signals (120) exceeded" mean?

My Perl web-app, running under Apache mod_fastcgi, frequently gets errors like the following: Maximal count of pending signals (120) exceeded at line 119. I've seen this happen in relation to file uploads but I'm not sure that's the only time it happens. I also get a SIGPIPE right before (or possibly after) I get that error. Any ...

How are data shared between fastCGI processes?

I've written a simple perl script that I'm running via fastCGI on Apache. The application loads a set of XML data files which are used to lookup values based upon the the query parameters of an incoming request. As I understand it, if I want to increase the amount of concurrent requests my application can handle I need to allow fastCGI t...

FastCGI with Apache 2.2 stops responding, warning messages

I've seen this question posted a few times using a Google search, with no real answers. I have a multi-threaded FastCGI application running with Apache 2.2 on FreeBSD 7.2. There are a few issues with it, and I am unable to really figure out the source of the problem even after poking through a bunch of the mod_fastcgi source code. My F...

C++: What script can I use to test my Apache and FastCGI set up?

I asked at serverfault: How to set up apache with fastcgi and a simple test script? I have been having real difficulties for a couple of weeks trying to understand how to set up my machine so that I can test my C++ application with Apache/FastCGI. I tried with the simplest "Hello World" type of script. The only reply I have had so far...