-bash: program: command not found

software development


I installed symfony fine but cannot run the symfony command from the command line:

-bash: symfony: command not found

So, my 1st thought was to add path to symfony’s executable to my $PATH

I looked in /home/myaccount/.bash_profile

and saw no $PATH directives at all just this:

~/.bash_profile: executed by bash(1) for login shells.

umask 002
PS1=’[\h]$ ’

I even did this /path/to/executable symfony -V

That did not work either… Same error

-bash: symfony: command not found

Does anyone have any ideas or experience with this?



Yep, I did an export PATH=/path/to/symfony:$PATH
and the shell executed the program but executed it with PHP4 which will not work because symfony uses PHP5

Any thoughts?


Cool,thanks. I used export $PATH path/to/php5 and that’s now working.

I want to enter these export directives into my .bash_profile file so i wont have to enter these every time I start a new session.

I found a .bash_profile in my home web directory here:


I noticed that it did not have ant $PATH directives at all.

Is this the right file?