Re: PHP and a general problem understanding fastcgi
Benjamin Podszun <ben-/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
David Birnbaum wrote: > On Tue, 12 Jul 2005, Benjamin Podszun wrote: > >>> Here's a sample vhost configuration for you: >>> >>> User blah >>> Group blahgrp >>> FastCgiServer /export/httpd/DOMAINS/blah.com/cgi-bin/php -port 9050 >>> AddHandler php-fastcgi .php >>> <Location /cgi-bin/php> >>> SetHandler fastcgi-script >>> </Location> >>> Action php-fastcgi /cgi-bin/php >> >> >> Just tried the above.. User and Group are not correct, I guess. Did >> you mean SuexecUserGroup? > > > Yes, that's correct. I'm using a slightly older version of FastCGI. > >> When I try to use this config I get "FastCgiServer cannot occur within >> <VirtualHost> section" as answer. > > > [ Rob, what have you done? ] I think the documentation is a bit out of > date; it looks like the -user and -group switches are added to the > FastCgiServer directive, so they would all be moved up and run with the > correct context. Thanks for your comments here. I thought I understand what you mean and tried the following: FastCgiServer /var/www/default/php/php -user web-default -group web-users -socket default and in my vhost definition something like FastCgiExternalServer /fast-cgi/default/php -user web-default -group web-users -socket default But that didn't work, since FastCgiExternalServer isn't allowed in a vhost either..? The current/last approach was to both define those lines outside the vhost scope and try to do a AddHandler php-fastcgi .php Action php-fastcgi /fast-cgi/default/php later.. I thought that I can use this virtual path to connect to that external server, but - this time no config error, I only (..) get a 404 with "The requested URL /fast-cgi/default/php/test/index.php was not found on this server." I think I'm still lacking a deeper understanding here.. Can you help out again? > Hope this helps - maybe you could post your updated configurations and > we could update the FAQ. I'd love to - but right now I can only come up with ways that _don't_ work.. Something like a "Don't try the following" FAQ.. ;-) Regards, Ben ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/