Search code examples
cakephpvagrantpuphpet

Permission denied when running Console/cake from Vagrant VM


I've used PuPHPet to configure a Vagrant VM (box: puphpet/debian75-x64) for use with CakePHP.

I vagrant ssh into the vm, and go to /var/www/example.dev/app/, and from that folder I try to run Console/cake.

Result => -bash: Console/cake: Permission denied.

I've tried chmod 777-ing just about everything, but to no avail.

What do I need to do to make the cake command work?


Solution

  • I had the same problem, after doing this(so making it executable) it worked

    chmod +x app/Console/cake
    

    edit: you will need root access to do so