vendredi 10 juillet 2020

Deploy laravel on VPS

I've VPS With CentOS 7 and CWP and i'm trying to deploy my laravel project

i'm using Laravel 7

First, i created a new user and zip my project folder

and i uploaded it to root file of user account

and i moved the public folder content to public_html

this is my root structure

root directory

also i made some changes in index.php

require __DIR__.'/../../laravel/vendor/autoload.php';
$app = require_once __DIR__.'/../../laravel/bootstrap/app.php';

Now when i visit my Domain i got this message

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@domain.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

so, any idea to fix this?

UPDATE

Log File

End of script output before headers: index.php

SoftException in Application.cpp:356: GID of script "/home/user/public_html/index.php" is smaller than min_gid

End of script output before headers: index.php


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3ec0cq4
via IFTTT

Aucun commentaire:

Enregistrer un commentaire