Re: [PHP]: permission problem www-data

2011-01-18 Thread Al
On 1/18/2011 4:44 AM, Moses wrote: Hi Everyone, I am creating a file in PHP script which takes a value from a form and writes it to a file. However, i don't have the mode permission for the file instead it is owned by www-data.What can i do to ensure that the file is owned by me. drwxr-xr-x

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread Daniel Brown
On Tue, Jan 18, 2011 at 10:55, Jim Lucas wrote: > > You could run PHP in FastCGI mode and start it as your user.  Then have your > web > server use that PHP instance for your web site to process all PHP requests. > > This is how we have our servers at the office setup.  Works great. My guess

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread Jim Lucas
.ashleysheridan.co.uk > > - Reply message - > From: "Moses" > Date: Tue, Jan 18, 2011 10:17 > Subject: [PHP] [PHP]: permission problem www-data > To: "a...@ashleysheridan.co.uk" > Cc: > > You could run PHP in FastCGI mode and start it as your user.

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread Jim Lucas
On 1/18/2011 1:44 AM, Moses wrote: > Hi Everyone, > > I am creating a file in PHP script which takes a value from a form and > writes it > to a file. However, i don't have the mode permission for the file instead it > is owned > by www-data.What can i do to ensure that the file is owned by me. >

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread Donovan Brooke
Moses wrote: Hi Everyone, I am creating a file in PHP script which takes a value from a form and writes it to a file. However, i don't have the mode permission for the file instead it is owned by www-data.What can i do to ensure that the file is owned by me. drwxr-xr-x 2 www-data www-data 4096

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread a...@ashleysheridan.co.uk
17 Subject: [PHP] [PHP]: permission problem www-data To: "a...@ashleysheridan.co.uk" Cc:

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread Moses
; a...@ashleysheridan.co.uk> wrote: > you could use the chown method in php, which should do what you need. > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > - Reply message - > From: "Moses" > Date: Tue, Jan 18, 2011 09:44 > Subject: [PHP] [PHP]: permis

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread a...@ashleysheridan.co.uk
you could use the chown method in php, which should do what you need. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Moses" Date: Tue, Jan 18, 2011 09:44 Subject: [PHP] [PHP]: permission problem www-data To: Hi Everyone, I am creating a file in PHP sc

[PHP] [PHP]: permission problem www-data

2011-01-18 Thread Moses
Hi Everyone, I am creating a file in PHP script which takes a value from a form and writes it to a file. However, i don't have the mode permission for the file instead it is owned by www-data.What can i do to ensure that the file is owned by me. drwxr-xr-x 2 www-data www-data 4096 2011-01-17 22: