could somebody explain why this:
sudo Console/cake
works when I am inside path/to/cakeproject/app
while this:
sudo cake
absolutely does NOT work whe I am inside path/to/cakeproject/app/Console
?
Actually, understanding this would be simply a first step for me to understand why I can run sudo Console/cake
when I am in the right directory (app), but I cannot run sudo cake
anywhere even after modifying the PATH variable following these steps. If someone knows any possible causes for this already, please also feel free to share your thoughts.
PS: About when I said "I cannot run sudo cake
anywhere", this is the error I get:
sudo: cake: command not found
I had the same problem.
You just need to install "php5-cli" to make it works.
$ sudo apt-get install php5-cli
Then try again with "cake" in your console.
$ cake
It should work.