CakePHP. app / Console / cake: allowed for root user

I am using CakePHP 2.4.7 and I am trying to run CakePHP shell on a remote host.

I connect to the server as root and then execute $ [path_to_my_foler]/app/Console/cake

Output: -bash: [path_to_my_foler]/app/Console/cake: Permission denied

How could this be? How to fix it?

+5
source share
2 answers

Did you get this solution? I think this can do the trick. (Executing a command from a directoryapp

 chmod +x Console/cake
+28
source

In CakePHP version 3 and above, this is the correct command.

chmod +x bin/cake

This is the CakePHP documentation for reference.

Console

The Cake executable has been moved from the app / Console directory to the bin directory in the application framework. Now you can call the CakePHPs Console with a basket / cake.

0

All Articles