On 07/05/2019 20:33, Larry Martell wrote:
The code is identical in foo and foo.new and the perms and owner on log.txt is identical in too and foo.new. I have tried restating apache and rebooting the machine, but no joy. What could be causing the permission error?
Have a look at the folder permissions on foo and foo.new or whatever and make sure they match too? You only mention the file being the same in both folders, but a missing +w on one of the folders could cause the issue you describe, I think.