Reputation: 1
I've just started trying to put a small web server on a Raspberry Pi running Rasbian Jessie. I've been following the steps to run CakePHP from this article: http://tecadmin.net/setup-cakephp-3-on-linux/
The issue comes when I hit step 3. I typed the command to make an app and it throws the ErrorException mkdir:Permission denied
From searching on here, this has something to do with my group permissions but that setting them to 0777 is dangerous. Can anyone explain what needs permission and how I would do that? Thank you!
Upvotes: 0
Views: 1718
Reputation: 282
Your raspian user seems to have not the permissions.
using sudo should work.
sudo composer create-project --prefer-dist cakephp/app MyApp
Or for the changing maually the permissions after installation
sudo chown -R apache:apache MyApp
sudo chmod -R 755 MyApp
Upvotes: 1