Installing symfony

Installing symfony

Posted by: fofo
Posted on: 2006-09-11 22:01:00

Hi,

I am trying to install the PHP framework symfony (symfony-project.com).
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 pear.symfony-project.com

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

[Exception]
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):

DEFAULT_DH_ACCOUNT_PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
PEAR_LOCAL=$HOME/pear
PHP_PEAR_PHP_BIN=/usr/local/php5/bin
PATH=$PEAR_LOCAL:$PHP_PEAR_PHP_BIN:$DEFAULT_DH_ACCOUNT_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 :-( .... any help is appreciated.


Re: Installing symfony

Posted by: Hector
Posted on: 2006-09-24 09:55:00

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

Re: Installing symfony

Posted by: fofo
Posted on: 2006-09-25 12:56:00

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.

Regards,
Fuad A.

Re: Installing symfony

Posted by: sumeet
Posted on: 2006-09-27 19:33:00

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.

Tags: pearpath pathphppath separatorusrlocalphp5betadefaultbin bin