NYCPHP Meetup

NYPHP.org

[nycphp-talk] Re: File Uploading Permission Problem (solved)

Webapprentice . webapprentice at mail.com
Sat Jan 3 13:21:42 EST 2004


I changed the permission of the target directory to 777, and the file was able to move successfully.  That was the problem.

Good thing I didn't have to contact the host to resolve this.

Thanks, Dan.

>>>>Message: 12
Date: Sat, 03 Jan 2004 00:13:43 -0500
From: Dan Cech <dcech at phpwerx.net>

Subject: Re: [nycphp-talk] File uploading: When PHP doesn't have
	permission to

It sounds like you do have a permissions problem.

You will need to make sure that the webserver process (usually
www-data 
for apache) has permissions to write to the directory where you want
to 
put the uploaded file.

A simple test is to create a new directory and set permissions to 
rwxrwxrwx (chmod 777), then try to move the file there.  If it works 
then you know what your problem is.

As for fixing the permissions, you are going to have to figure out a 
setting which gives the webserver the access it needs, without
causing 
any security problems.	There are several different ways to do it,
one 
method is to set the group of the directory to www-data and use the 
group permission setting to control the access you want to give to
php.

Hope this helps,

Dan<<<<<<<
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm




More information about the talk mailing list