Re: Trying to use FastCGI to run PHP as UID of file owner
"Henry C." <[email protected]> Thu, 5 May 2011 16:10:05 +0200
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, May 5, 2011 15:31, David Birnbaum wrote: > You appear to be missing the User/Group Apache directives. Presumably this must be the user/group who owns the PHP files in question? > Also, the > php_ directives won't work if you're running the PHP binary from Apache > directly, I don't think (as opposed to mod_php). Thanks - yes, these were detritus from the original config. I'll remove th= em. > Finally, are you running the > php-cgi binary (instead of the php binary?) There's two different ones n= ow. I suspect this is where the real problem is. Unfortunately on this particu= lar server I have to compile the PHP binary from source (it's not centos/debian/etc where I can simply yum install php-cgi/apt-get install php-cgi, etc). So, for PHP-5.3.3 source, how do I compile it to 'talk' the fastcgi protoco= l? = Is it different to standard CGI? Sadly, php 5.3.3 does not seem to have a --with-fastcgi directive for ./configure). Is there a fastcgi patch or something for PHP 5.3.x? Thanks Henry