Support the ongoing development of Laravel.io →
posted 4 years ago
Last updated 2 years ago.
0

Hi, I faced this problem many times then i solved it. please follow the instruction use chcon for sitepath (chcon stands for Change Context. This command is used to change the SELinux security context of a file) Please run both command (if not run please add sudo first. $SITE_PATH is your application path)

chcon -R -t httpd_sys_content_t $SITE_PATH 
chcon -R -t httpd_sys_rw_content_t $SITE_PATH

make sure application is in correct ownership (nginx is your username, $SITE_PATH is your application path)

sudo chown -R nginx:nginx $SITE_PATH 

hopefully it will run. if not run please change the access permissions of file system objects

sudo chmod -R 755 storage bootstrap/cache

hopefully it will solve your problem. if not please fill free to reply

0

Sign in to participate in this thread!

Eventy

Your banner here too?

pradeep pradeepsrm Joined 30 Sep 2020

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.