I’m using the symfony2 framework,
and I need to run “php app/console” commands frequently,
however when I run "php app/console"
it says
The program ‘php’ is currently not installed. You can install it by typing:
sudo apt-get install php5-cli
this is working though
/usr/local/php7/bin/php app/console
how can I make 'php'
out of '/usr/local/php7/bin/php'
for the command line? I’m on linux Mint/Ubuntu
Advertisement
Answer
you can put “/usr/local/php7/bin/” to $PATH or use shell alias command with writing following line to console:
alias php=/usr/local/php7/bin/php
after that you can use “php app/console”