I have been working on a website in development environment built on top of Symfony framework and now it is time to deploy it to live site, in development environment we run the
If you are running ubuntu do the following
sudo nano /etc/apache2/sites-enabled/000-default.conf
change document root to and save
DocumentRoot /var/www/html/web
Then run
sudo service apache2 restart
cd /var/www/html php app/console cache:clear --env=prod --no-debug
all done