Im trying to deploy my laravel project with namecheap however I'm getting a 500 server error.I've updated the server.php and index.php to point to the correct directories but I'm still getting the error. I've checked the error.log file in the public_html directory but it doesn't give any error when loading the site. I've also double checked the .env file to make sure the correct database credentials were entered.
index.php
if (file_exists(__DIR__.'/../nue/storage/framework/maintenance.php')) {
require __DIR__.'/../nue/storage/framework/maintenance.php';
}
require __DIR__.'/../nameofproject/vendor/autoload.php';
$app = require_once __DIR__.'/../nameofproject/bootstrap/app.php';
server.php
require_once __DIR__.'/../nameofproject/public_html/index.php';
server.phporindex.phpfiles. Such configuration should be done via yourapacheornginxconfig files.