Start by understanding the error 403 Access Denied – You don’t have permission to access
.
First ensure the following directories are writable:
chmod -R 777 storage
chmod -R 777 bootstrap/cache
Also check ownership of public folder - directory flags drwxr-x---
( octal notation 750) and all the files contained (index.php, .htaccess) with directory flags -rw-r--r--
(octal notation 644)
Also try a simple .htaccess as done here How to setup a Laravel application on CyberPanel! in the blog post.
Also scan you server files for malware using ImunifyAV offered via CyberP or whichever malware scanner your hosting provider offers you.
I see you are serving public files from same folder as the application files are in. This is not recommended. To deploy Laravel application you need to separate public folder (served files) from application files.e.g. /home/ cloudride.com/aap for application files, copy all public contents to /home/ cloudride.com/public_html or if its a subdomain move public files to location such as /home/ cloudride.com/public_html/subdomain or /home/ cloudride.com/subdomain
Finally change path of
require __DIR__.’/../bootstrap/autoload.php’; and
$app = require_once __DIR__.’/../bootstrap/app.php’;
to
require __DIR__.’/../aap/bootstrap/autoload.php’; and
$app = require_once __DIR__.’/../aap/bootstrap/app.php’;