Symfony Framework Installation in Ubuntu LAMP Server

         Symfony is a open source PHP Framework and this is suitable for small to large scale web applications. Popular CMS Drupal, PHPbb are developed using the Symfony Frameworks.

Installation
        I hope you have LAMP working on your ubuntu. Here i share my work experience.

Open the Terminal

            Locate /usr/local/bin and download the symfony installer


$ sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony

Then change the permission for the symfony Folder using the Following commands

$ sudo chmod a+x /usr/local/bin/symfony

To test symfony Installer

$ symfony

we are getting Message like This



Symfony Installer (1.5.10)


==========================

This is the official installer to start new projects based on the
Symfony full-stack framework.
the latest stable version of Symfony, execute the following command:
To create a new project called blog in the current directory using symfony new blog
symfony new blog lts
Create a project based on the Symfony Long Term Support version (LTS):


Now its getting time to starts our symfony framework in PHP.

Create a New Symfony PRojects


         Locate the PHP home directory and using the below command we create a new project

                   $ symfony new project_name

                                 or 
                   $ symfony new project_name 3.4 (3.4 is symfony Version)

                                  or
                   $ symfony new project_name lts (Long Term Support Version Default)

      After successfully create the Symfony project you Run this Web App using 

                  $ php bin/console server:starts

     Then open the Browser and points the below URL
                  
                  http://127.0.0.1:8000/

I hope you enjoyed this tutorial.