FastCgiServer in VirtualHost doesn't work?

Rodney Gordon II <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <1101747813.18959.28.camel@ghreen>
Hi, I am running Apache2 with FastCGI, I have got most of it working
except the php part. I am on Debian Sid with the latest php4-cgi package
that is built w/ fcgi support. Currently I have as follows:

# turn on fastcgi
FastCgiWrapper On
FastCgiServer /usr/lib/cgi-bin/php4
FastCgiIpcDir /var/lib/apache2/fastcgi

# in my vhost (related to FastCGI):
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
        </Directory>
 
	AddHandler php-fastcgi .php

        <Location "/cgi-bin/php4">
                SetHandler fastcgi-script
        </Location>

        <Files ~ "\.php$">
                Options +ExecCGI
        </Files>
        Action php-fastcgi /cgi-bin/php4


Using this layout, suEXEC throws out an error trying to run php4 as an
invalid uid (suEXEC is compiled with allowed uid =>100 iirc) .. and all
php apps time out. I should note that I have got FastCGI to work fine
with MoinMoinWiki, as (though not listed above) I have the line:
'SuexecUserGroup spherenet spherenet' in my vhost config also.

Now, what I thought was the correct way was to place the FastCgiServer
directive in the vhost sections so it uses seperate privleges on each
vhost.. but it says that directive is not allowed in vhosts when I tried
it.. Now I am really confused and frustrated..

If anyone can lend some help, pleaso do so

Thank-you
-r
-- 
Rodney Gordon II (meff)               meff <at> pobox <dot> com
Web: http://www.spherevision.org                   AIM: mefforz

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBq1ZlwAh1Un/0srwRAglnAKDHe/kswMLxPelx51S8z/96CH6YsACfROMr
ZopR82UD+jQ9PF/DPWbW5FY=
=4F/I
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.