[FASTCGI] Newbit questions about PHP

Aron Szabo aron at aron.ws
Mon Jan 18 16:39:03 EST 2010


Well if you handle the incoming files with PHP using FastCGI than the 
file will be created with the permissions of the running php interpreter.
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 -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

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: aron.vcf
Type: text/x-vcard
Size: 155 bytes
Desc: not available
URL: <http://mailman.pins.net/mailman/private.cgi/fastcgi-developers/attachments/20100118/1678860e/attachment.vcf>

More information about the FastCGI-developers mailing list