Dont confuse the core lib Console folder with the app folder. And you should always navigate to your app folder /root/app/ first and then run your commands from there relatively either using the app one via "Console/cake" or the lib one via "../lib/Cake/Console/cake". That works always - in all environments.
On linux you also need to grant your cake shell script executive rights (+x) for this user. Otherwise you will also get an error. Am Sonntag, 5. Mai 2013 10:29:50 UTC+2 schrieb CrotchFrog: > > I've been running Cake on Ubuntu Server 12.04 for quite some time now and > never a problem. I don't necessarily have a problem with CakePHP itself, > but more than likely something changed on my system and I can't quite > figure it out. > > I recently tried to bake a model for a newly added table in one of my apps > and when I execute "cake" anywhere in my system or app all the way down to > /app/Console I'm greeted with *: No such file or directory*. The version > of Cake makes no difference, I have several versions on the server and I > tried two or three just to be sure. > > echoing *$PATH *returns * > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/mnt/share/cake234/lib/Cake/Console > > *so the problem is not there. > > Everything was working just fine as recently as a couple weeks ago and the > only real change to the system since then was a new install of Nagios. > > I'm still getting my feet wet with *nix so really unsure of where to start > looking for the cause of the problem. > > Any help would be greatly appreciated. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.