in reply to Cannot open file for appending

Thanks for your help. It turned out to be a permissions problem after all. When I changed the permissions from 775 to 776 everything worked just fine.