[FASTCGI] Newbit questions about PHP
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:
/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
On 01/18/2010 10:14 PM, Jorge Bastos wrote:
> 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?
> FastCGI-developers mailing list
> FastCGI-developers at mailman.fastcgi.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 155 bytes
Desc: not available
More information about the FastCGI-developers