I am having problems with a picture uploading script.
I know there are hundreds of the same questions, but I haven\'t found the one that would be work for me.
<
I was having similar troubles using chmod, although the file was owned by apache:apache (webserver user). In my case SELinux was getting in the way, disabling it made this clear:
sudo setenforce 0
And the chmod works. Now on to figuring out how to make a SELinux exception for this case... (and don't forget to enable SELinux, of course)