1. check what user apache is running as: it may be http or www. Run top or check the /etc/passwd file
2. amend that line in sudoers to only allow the chown cmd. 'ALL' is extremely dangerous if anyone manages to exploit your apache.
3. If this only need run on this one machine, don't specify ALL
eg
Code:
apache <your_system>=(root) NOPASSWD /bin/chown
root is the default user to RunAs (usually) so you could skip that. Also, always specify the full path, for security.
Incidentally, your sudoers file has a lot of ALL users run ALL cmds eveywhere as anyone... are you sure you want that??