Re: FastCGI and CGI Library -> Build FastCGI and Apache
Bryan White <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Jack wrote:
> Here comes my question 2:
> I have an application that uses a problematic library which has
> problems with .so (on Apache2, Linux) It can not be linked to .so
> projects. Its initialization always fails. It seems that I'm getting
> the same problem when running it from fcgi app. The app runs ok from
> command line. But if it's started by mod_fastcgi, it'll fail to
> initialize. So, I'm thinking of building mod_fastcgi into Apache
> source, just to avoid calling my app from a shared object mod_fastcgi.
> However, I'm not sure if anyone has managed to do that, as mod_fastcgi
> is typically used as a .so file. I'm not quite familiar with building
> apache2 modules into apache, nor with mod_fastcgi. I searched the net
> in the past few days and didn't find much useful info. So if anyone
> has experience with this, I'd be happy to know. Instructions would
> be even better.
I don't think you correctly understand how mod_fastcgi works. It sounds
like you are trying to link you application to apache. Your fastcgi
application is not part of the mod_fastcgi process. Instead the
mod_fastcgi handler creates a process manager process. The process
manager shows up as another httpd process. It takes care of running
fastcgi applications, each as their own process. Your cgi will listen
for socket connections.
Here is what my process tree currently looks like:
httpd-+-httpd-+-adredirect
| +-2*[news]
+-179*[httpd]
adredirect and news are both fastcgi applications. They run as children
of the process manager. There are curently two copies of news running
and 179 standard web server processes.
Statically linking mod_fastcgi into the httpd process would not change
the structure of this process tree.
I don't know why your application is failing when called from the
process manager. What does the apache error log say?
--
Bryan White
There's no point in acting all surprised about it. All the planning
charts and demolition orders have been on display in your local
planning department on Alpha Centauri for fifty of your Earth years,
so you've had plenty of time to lodge any formal complaint and it's
far too late to start making a fuss about it now.
- Prostetnic Vogon Jeltz
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/