I am trying to open/read and copy/delete files on the disk in a Linux-system, using a PHP-script. The files remain in Billy's directory (/home/billy/uploads
), all sent by FTP. They have basic rights (rw on the user only) and are owned by, according to 'ls -lr
', by billy:billy
.
Trying to fopen
or copy the file does not work, neither chown
or chmod
using PHP.
How can I make the 'PHP-user
', www-data
, to do what I want? What is need to be done? I set the owner of the containing directory, 'uploads
', to be www-data
, but no luck there.