[FASTCGI] Where's the info?
Patrick Galbraith
Patrick.Galbraith at lycos-inc.com
Mon Nov 17 16:45:06 EST 2008
Hi all,
I've been around, set up numerous servers in my life, configured all
manner of things, but trying to get a working fast cgi setup is one of the
most puzzling things I've had to do in a while. There's no concise source
of information on how to simply get php working with FastCGI.
I have Centos 5.2. and was excited when yum search showed me mod_finstall
mod_fcgi thinking that was fast cgi, but it's some fast cgi clone made in
china ( think, I can't really tell)... (http://fastcgi.coremail.cn/) What
that heck??!!!! The config that is installed looks like:
# This is the Apache server configuration file for providing FastCGI
support
# through mod_fcgid
#
# Documentation is available at http://fastcgi.coremail.cn/doc.htm
LoadModule fcgid_module modules/mod_fcgid.so
# Use FastCGI to process .fcg .fcgi & .fpl scripts
# Don't do this if mod_fastcgi is present, as it will try to do the same
thing
<IfModule mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
AddHandler fastcgi-script .fcgi .fcg .fpl
</IfModule>
# Sane place to put sockets and shared memory file
SocketPath run/mod_fcgid
SharememPath run/mod_fcgid/fcgid_shm
This is really confusing. What is this? Is this FastCGI or an clone
project? The documentation on the site they give is severely lacking. None
of the suggested configurations they have on their site work either.
Additionally, I can't get the fast cgi apache module to compile from your
site to compile:
in file included from /usr/include/features.h:352,
from /usr/include/sys/types.h:27,
from /usr/include/apr-1/apr-i386.h:113,
from /usr/include/apr-1/apr.h:7,
from /usr/include/httpd/ap_config.h:25,
from /usr/include/httpd/httpd.h:43,
from fcgi.h:22,
from mod_fastcgi.c:72:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or
directory
mod_fastcgi.c: In function 'open_connection_to_fs':
mod_fastcgi.c:1083: warning: dereferencing type-punned pointer will break
strict-aliasing rules
make: *** [mod_fastcgi.slo] Error 1
All I want to do is run PHP using Fast CGI so I can take advantage of
Suexec. I need to run PHP as the user it's owned by. Every site I look on
has a different way to set up httpd to use Fast CGI, none of which work.
Is Fast CGI maintained? Is this a route worth going down?
Thanks in advance to any information that can help
My setup:
apache 2.2, centos 5.2 64-bit
Kind regards,
Patrick "CaptTofu" Galbraith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20081117/26b69c79/attachment.html>
More information about the FastCGI-developers
mailing list