Don't do that. Chances are that the file was created while you were testing your app with your account, but if the app is supposed to be executed only by the apache/nobody/whatever CGI user just change the file owner leaving the permissions as they are were before (you probably can afford pretty the same result simply removing the file and letting the application re-create it from scratch).
Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')
Don't fool yourself.