This tool will generate the shell commands to fix permissions on a Apache folder. It's particularly useful for fixing Wordpress permissions.