0

i'm setting up a laravel project that i firstly developed locally, i'm trying to move it to my droplet and after sucefully configuring .env file and database among others, i still have problems with permissons or at least it seems to be the problem. I'm running Centos 7.2 (on a DigitalOcean droplet) and Laravel 5.6.

I'm getting the following message when i want to access any link other than the index.

Error message

and this is my conf file:

https://pastebin.com/gfh5i93Z

I've already set permissons to correspondent folders with:

sudo chown -R apache: storage
sudo chmod -R 755 storage

and it stills giving me that error.

Any help will be very aprecciated, thanks!

Edit: It temporary works when i set Sellinux Enforcing to 0.

DiegoConD
  • 1
  • 2

1 Answers1

0

try sudo chmod -R 777 storage and if doesn't help maybe running in whole project folder not just storage

775 permission for whole project is good I think , however you can find full answer with more details here.

Masoud Haghbin
  • 863
  • 7
  • 13
  • I wolud consider that as a temporary fix, 777 permissons aren't a real option. – DiegoConD Jun 06 '18 at 22:54
  • https://stackoverflow.com/questions/37257975/permissions-issue-with-laravel-on-centos?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa This was my solution, it's a CentOS specific problem, thanks! – DiegoConD Jun 14 '18 at 19:57