CakePHP 3.0 bin / cake command not found

I am going to CakePHP from Codeigniter. I started a new project and installed CakePHP 3.0 using Composer in the Ubuntu Vagrant machine that I use for development.

I am trying to create a database migration, but it seems that the bin / cake console is not working for me.

I can not find anything in the bin / cake configuration docs, I also tried to set the cake script as an executable ... without joy.

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

Any help is appreciated,

+4
source share
4 answers

your current permission mask is 664, there is no executable bit.

to try:

chmod 755 bin/cake 
+12
source

OK, this is how I fixed it.

It turns out that the version of the stroller that I use does not allow changing the file permissions from the terminal, which must be done in the stray file. So I just set the resolution of the file in the stray file to 755 and voila!

Thanks for the help.

+1
source

For me, this works to invoke cake commands via php, for example:

 /usr/local/php70/bin/php bin/cake.php <command arguments> 

Depends on where your php command is located.

0
source

I came across this permission issue when creating a user table, but when making these changes, "chmod 755 bin / cake" fixed my problem. thanks

0
source

All Articles