Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CakePHP 3.0 bin/cake command not found

I'm coming to CakePHP from Codeigniter. I started a new project and installed CakePHP 3.0 using Composer into a Ubuntu Vagrant machine I use for development.

I'm trying to create a DB Migration but it seems the bin/cake console isnt working for me.

I can't find anything in the docs about setting up bin/cake, I also tried setting the cake script as executable.... no joy.

All I get is either "permission denied", if I then run as sudo i get "Command not found".

Any help appreciated,

like image 844
Olly Warren Avatar asked Jul 30 '15 21:07

Olly Warren


1 Answers

your current permission mask is 664, executable bit is missing.

try:

chmod 755 bin/cake
like image 123
urulab Avatar answered Sep 21 '22 18:09

urulab