Re: Newbit questions about PHP
Aron Szabo <aron-Iv/[email protected]> Mon, 18 Jan 2010 22:39:03 +0100
| Newsgroups | gmane.comp.web.fastcgi.devel,gmane.spam.detected |
|---|---|
| Message-ID | <[email protected]> |
Hi! 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: http://www.cyberciti.biz/tips/rhel-fedora-centos-apache2-external-php-spawn.html 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 http://pointless.hu/ 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-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org > http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers _______________________________________________ FastCGI-developers mailing list FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
aron.vcf
(text/x-vcard, 176 B)
begin:vcard fn:Aron Szabo n:Szabo;Aron email;internet:aron-Iv/[email protected] tel;home:+36212025238 tel;cell:+36703271722 x-mozilla-html:FALSE version:2.1 end:vcard