Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CakePHP. app/Console/cake: Permission denied for root user

I am using CakePHP 2.4.7 and I'm trying to execute CakePHP shell on remote host.

I'm connecting to server as root and then executing $ [path_to_my_foler]/app/Console/cake

The output is: -bash: [path_to_my_foler]/app/Console/cake: Permission denied

How could it be? How to fix it?

like image 260
Alexander Avatar asked Sep 09 '14 07:09

Alexander


2 Answers

In CakePHP Version 3 and above this is the right command.

chmod +x bin/cake

This is CakePHP documentation for reference.

Console

The cake executable has been moved from the app/Console directory to the bin directory within the application skeleton. You can now invoke CakePHP’s console with bin/cake.

Documentation link

like image 169
Ariful Haque Avatar answered Oct 23 '22 01:10

Ariful Haque


Did you get this solve? I think this could do the trick. (Running the command from your app directory

 chmod +x Console/cake
like image 33
antoniovassell Avatar answered Oct 23 '22 01:10

antoniovassell