-1

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

3
  • put php in the path - bingo Commented Jun 23, 2015 at 21:35
  • And once php is in your PATH you will be pleasently surprosed to find you no longer need to type php. app/console will work by itself thanks to the first line in the console file. Commented Jun 23, 2015 at 23:30
  • possible duplicate of php related error in linux terminal while setting up symfony framework Commented Jun 26, 2015 at 22:14

1 Answer 1

1

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"

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.