Installing symfony



I am trying to install the PHP framework symfony (
The framework requires PHP5, here is what I have done so far…

1- create my pear config (Note: Using PHP5)
/usr/local/php5/bin/pear config-create $HOME .pearrc

2- Install PEAR in my directory (Note: using PHP5)
/usr/local/php5/bin/pear install -o PEAR

3- Set my PEAR to beta as it is the version I need to install
pear config-set preferred_state beta

4- I do a discovery on the Symfony channel
pear channel-discover

5- I install symfony
pear install symfony/symfony-beta

All up to here goes well

… If I do “symfony -T” I got Pake error:

PHP Warning: include(symfony/pear.php): failed to open stream: No such file or directory in /home/.goober/USERNAME/pear/data/symfony/bin/pakefile.php on line 23

Unable to find symfony librairies

so I added the following to the pake.php (Named above):

set_include_path(get_include_path() . PATH_SEPARATOR . ‘/usr/local/lib/php’. PATH_SEPARATOR .’/home/USERNAME/pear/php’);

Also edited .bash_profile as follows (added to the end to append and fix path):


ALL seams to go well after that…
If I type symfony -T from anywhere I get the expected response.

Here is the problem!!

If I type symfony-init project project_name

it gets built in $HOME/pear/data/symfony/bin/ and not in the directory I am in :frowning: … any help is appreciated.


Did you figure this one out? I’ve hit the same issue.


Hi Hector…

Right now I use the control panel from symfony to create and do all things needed… i.e. clear cache etc…

The rest works… however … I encountered another problem … I keept getting a 200 page stating that the page was moved… and figured out that solution too…

I have figured a better (yet similar) way to set up symfony … I will post the new solution soon.

Fuad A.


I was able to get the stable version running pretty easily using export PHP_CLASSPATH=/home/USERNAME/pear/php, but this is not working on the beta version.

I would be fine using the stable version, but it does not support yml. please let me know if you had any success.