Symfony2 Install In Linux

Step 1:

Make sure your operating system supports Symfony2 requirements stated below-

  • PHP 5.3.2
  • Apache Webserver.
  • MySql Database.
  • Sqllite 3 needs to be enabled.
  • JSON needs to be enabled
  • ctype needs to be enabled

Your PHP.ini needs to have the date.timezone setting like uncomment the line date.timezone and it will be look like –

Type this to open php.ini in terminal –

Step 2:

  • Once you install apache webserver, goto /var/www . This is your webroot.
  • Download Symfony2 from [Without Vendor] and place the tgz folder inside /var/www/
  • Extract the contets of the folder.
  • Rename the folder to [project name] or anything u want from Symfony.
  • Don’t forget to give permission to the folder

Step 3:
Go to http://localhost/[project folder name]/web/config.php to verify everything is fine.
If not then –
1. Install curl type –

And also install Php curl –

Then open the terminal go into your symfony project folder and do same as below –
2. Install composer type-

3. Install composer.phar type –

4. Update composer.phar type-

Step 4:
Go to http://localhost/[project folder name]/web/config.php to access your Symfony project welcome page.
You will see screen like below once you have successfully installed Symfony2 instance.

  • To enhance your Symfony experience, it’s recommended that you fix the following:
  • Install PHP 5.3.8 or newer if your project uses annotations.
  • Install and enable the intl extension (used for validators).
  • Install and enable a PHP accelerator like APC (highly recommended).


If you see any problem then please give permission to your project folder and you are ready to go.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.