That's what I suspected and yes, that does work.  However, it causes
problems with session handling variables since 'www' doesn't own the 'tmp'
file, etc.  Thanks though for confirming what I suspected.

Any other thoughts from anyone?

--
Gaylen
[EMAIL PROTECTED]
http://www.gaylenandmargie.com
PHP KISGB v1.01 Guestbook http://www.gaylenandmargie.com/publicscripts

"Chris Schneck" <[EMAIL PROTECTED]> wrote in message
003d01c13ef8$84435020$[EMAIL PROTECTED]">news:003d01c13ef8$84435020$[EMAIL PROTECTED]...
> Although this is a little OT, I dont remember any online tutorials that
> helped me and this is a fairly lengthy explanation. In your httpd.conf
(this
> is how i did it you can find your own way im sure) set the apache user to
be
> www and the group to www. Apache now knows to run as that user, but your
> linux box doesnt know that user which seems to be the root of your
problem.
> Now you have to edit the file '/etc/passwd' and add a line like
> 'www:x:105:105:www::' then edit your '/etc/group' file and a dd a line
like
> 'www::105:'.
> Restart your Apache server.
> Now your Apache server is ready to run as user www group www. Any
Directory
> of Files that Apache is going to be working with should be chown'ed to
> www.www
>
> Remember not to 'adduser' to accomplish this, you dont want anyone
actually
> logging in as www :) Hope this helped a little.
>
>
> From: "Gaylen Fraley" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, September 16, 2001 2:07 PM
> Subject: [PHP] Re: Problem with Rename() and linux - update
>
>
> > It is the delete (unlink) portion that the page cannot execute.  So, I
> > assume this is a setting in my server conf?  Apache is running as
nobody,
> > but nobody is not a valid user on my linux server.  Is that the problem?
> If
> > so, is the normal prcatice to have a user like 'web' and give all rights
> to
> > that user?  Alternatively I could do a copy and truncate to accomplish
the
> > same task, but this seems too laborious.  Thoughts?
> >
> > --
> > Gaylen
> > [EMAIL PROTECTED]
> > http://www.gaylenandmargie.com
> > PHP KISGB v1.01 Guestbook http://www.gaylenandmargie.com/publicscripts
> >
> > "Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I am attempting to use the rename() function and am receiving the
> > following
> > > error:
> > >
> > > Warning: Rename failed (Permission denied) in
> > > /usr/local/apache/htdocs/mydir/myfile.php on line 7
> > >
> > > The files all have a mod of 777 .  My application can update the same
> file
> > > w/o any problem, it's only when attempting to use rename.  Is there
> > > something else I need to do?  It's as if delete is not allowed by
httpd,
> > > although as root I can.  This does work in windows, so I know the
syntax
> > is
> > > correct.
> > >
> > > Thanks.
> > >
> > > --
> > > Gaylen
> > > [EMAIL PROTECTED]
> > > http://www.gaylenandmargie.com
> > > PHP KISGB v1.01 Guestbook http://www.gaylenandmargie.com/publicscripts
> > >
> > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to