You need to set the owner in the folder that php is trying to write to, the apache user, which is usually www-data ... ssh, in the field of tramps and try:
sudo chown www-data:www-data <dirname>
This should work ... if it is, just add this to what ever creator you are using.
source share