when using move_uploaded_file()
function in php error:
warning: move_uploaded_file(...): failed open stream: permission denied in ...
on server have public_html
permissions like:
drwxr-sr-x 7 user www-data 4096 apr 27 17:48 public_html
which recursively through-out directory.
have got ideas why might not working? or can me find out why not working.
the system
the server cluster files on nas , php on cluster. performing permission commands on device of nas user ftp's to.
user www-data can not write public_html directory. use chmod on public_html give www-data write permission:
chmod 775 public_html -r