This is sort of a how to not do things:
1. chown -R apache:apache . # Now the webserver will have write access over the whole application!
2. chmod -R u=rwx,g=rwx,o=rx app/cache # Now all files in cache are executable and writable by the webserver!
3. apachectl restart # graceful might be better here.
Securitywise 1 and 2 are not good things to do.