Symfony 2 on cPanel based dedicated server.

Setting up the environment for a Symfony 2 project on a dedicated server with cPanel.

I've tried locating the app, src and vendor directories outside of the public_html directory with no success and a lot of frustration.  The solution that I've found is to place the entire project inside the public_html directory and then change the DocumentRoot so that it points at the web folder.

DocumentRoot /public_html

changed to:

DocumentRoot /public_html/Symfony/web

Modifying the vhost information on cPanel is a bit confusing if you haven't done it before.  Here's the best resource I've found: Editing Virtualhost Settings in WHM / cPanel

Another Helpful link: Best method of changing the document root of your primary domain