php permission issue with writing files/creating directories

Leb_CRX

Gawd
Joined
Sep 25, 2003
Messages
567
LAMP server...the issue I am having is the user is uploading a file to the server, I have the php script create a random directory and place the file inside

the user needs to be able to FTP into the server and delete the files, but the permissions are all wonky, sets the ownership to 'apache' instead of the user, so he can't delete it...

I've put chmod on it 777 (to test) and no change
I tried chown to the username, and still no go

any other ways?

the ONLY work around I forsee is to have the script FTP into the ftp server itself, and put the file there...just seems really redundant, and a lot of work
 
chmod 777 (or 666) should work, as long as PHP isn't running in safe mode. chown will not work since only root can do it on most systems. You could also add your user to the same group as apache and use 775 instead.
 
chmod 777 (or 666) should work, as long as PHP isn't running in safe mode. chown will not work since only root can do it on most systems. You could also add your user to the same group as apache and use 775 instead.

k cool, thanks!
 
Back
Top