How To Install Symfony On Linux

Symfony is the collection of classes written in PHP and it is the most commonly used PHP Framework. Here are the steps to install it in Linux ( The following instructions should work on all Linux distros, I followed them on Fedora Core).

First of all make sure that Pear is already installed, open the terminal and download the go-pear file by running the following command:

wget http://pear.php.net/go-pear

Once the go-pear is downloaded, run the following command to install Pear to your system.

php go-pear

Then follow the onscreen instructions and you are done with the Pear installation in some time. Once the Pear installation is completed, then it is the piece of cake to install symfony. ( Sometimes symfony may also require the ‘dom’ extension to be loaded).

Run the following two commands in sequence and you are done with the symfony installation:

pear channel-discover pear.symfony-project.com

pear install symfony/symfony

Thats’s it, type Symfony -V and you will be able to see the symfony version on the screen.

symfony version 1.4.1 (/usr/src/PEAR/symfony)

Cheers!

Tags: , , , , ,

665 Responses Leave a comment

Leave a Reply