Not able to delete file from server with permissions of 644 via PHP script

Posted by letseatfood on Server Fault See other posts from Server Fault or by letseatfood
Published on 2010-05-19T14:39:22Z Indexed on 2010/05/19 14:41 UTC
Read the original article Hit count: 279

Filed under:
|
|
|
|

I am trying to delete JPEG files that were uploaded to the server via FTP. The files are uploaded and written with permissions of 644. The owner and group of the upload directory are mike and mike.

I have tried changing the owner and group to www-data, but that does not seem to work.

I am trying to delete the files with a PHP script using unlink(). This works on the production server (which is a hosting service), but not my development server, which is a LAMP setup. This leads me to believe it has something to do with permissions on my development server.

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu