in reply to [Solved]: How to create a log file under a directory owned by app user from cgi script?
Why not create a new group, put both the apache user and the app user into it, then change the group ownership on the directory to the new group?