httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leif W" <warp-...@usa.net>
Subject Re: [users@httpd] let php run with right user/group
Date Tue, 21 Oct 2003 18:58:25 GMT
Hello,

Normally you might need to be a bit more patient and it could take a few
days for people to respond.  :-)

I've wondered about this myself, and have not come up with a good answer.  I
searched for phpsuexec, but could only find some patch files, but not a
website with docs and developer contacts and such.  I went to
http://php.net/ and looked in their docs and FAQs section and read some of
the user comments and found mention of suphp project at http://suphp.org/ ,
but this is for Apache 1.3 only.  It took some docs reading to find that
out.  The only way I am aware of to do this in Apache 2 is to compile php as
a cgi binary, and not use it as a DSO or static module (there are some raw
performance implications of doing this), and then use a program like cgiwrap
to help verify that a script is running as the proper user and group
permissions.

Hope this helps,

Leif

----- Original Message ----- 
From: "Domenico Actis Grosso" <nemod79@tiscali.it>
To: <users@httpd.apache.org>
Sent: Saturday, October 18, 2003 8:37 PM
Subject: Re: [users@httpd] let php run with right user/group


> pls help me
> ----- Original Message -----
> From: "Domenico Actis Grosso" <nemod79@tiscali.it>
> To: <users@httpd.apache.org>
> Sent: Saturday, October 18, 2003 9:17 PM
> Subject: [users@httpd] let php run with right user/group
>
>
> > I to all , i've a little question for you....
> >
> >
> > I'm running apache (2.0.40 installed via rpm) + php (via rpm) with
suexec
> up
> > and running...
> >
> > I would like to do this :
> >
> > when a user set a php script (non cgi) i.e for uploading something ,what
> can
> > i do to force user and group of uploaded file to be user/group of the
> vhost
> > calling that script ? (i've read something about phpsuexec...) and how
to
> > set something like an umask to correctly set the rights of the uploaded
> file
> > ?
> >
> > Thank for your help
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message