[FASTCGI] Newbit questions about PHP
mysql.jorge at decimal.pt
Mon Jan 18 16:48:56 EST 2010
Before going to the guide, let me ask two more questions:
1-the running PHP interpreter, can be set with just UID's and GID's? to
match the files with the FTP users, has to be that way, since I don't use
2-software's like joomla/moodle/etc etc, will complain about this, or they
don't even know that they are being executed with fcgi?
> Well if you handle the incoming files with PHP using FastCGI than the
> file will be created with the permissions of the running php
> But you can can create a php script file like "avatar.uphp" and add a
> handler for them. After that you can use spawn-fcgi.
> Check this guide out:
> So here:
> /usr/bin/spawn-fcgi -c /httpdjail -a 127.0.0.1 -p 9000 -P /var/run/php-
> cgi.fastcgi.pid -u apache -g apache -- /usr/bin/php-cgi
> You have fcgi daemon that listens on port 9000 for requests.
> After that you have to set apache to send the request and receive
> response from your fcgi daemon:
> AddHandler php5-fastcgi .uphp
> FastCgiExternalServer /webroot/http -host 127.0.0.1:9000
> Aron Szabo
> Pointless Software
> On 01/18/2010 10:14 PM, Jorge Bastos wrote:
> > Howdy,
> > I'm new to FastCGI, and i'd like to know if it does what I need.
> > I have several virtualhosts on my apache server, and I want that the
> > files what are uploaded via HTTP stay with certain permissions per
> > virtualhost, other than the user and group of the webserver.
> > I've saw this and I don't know if it does the job for me.
> > Can someone help me on this?
> > Thanks,
> > Jorge,
> > _______________________________________________
> > FastCGI-developers mailing list
> > FastCGI-developers at mailman.fastcgi.com
> > http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
More information about the FastCGI-developers