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
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.
Do you think this has something to do with PHP or Apache configuration?