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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community