put a laravel 9 project online on OVH using filezilla
Answers to your questions / Web Hosting / put a laravel 9 project o...
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

put a laravel 9 project online on OVH using filezilla

by
JoG
Created on 2023-05-02 13:43:50 (edited on 2024-09-04 14:24:44) in Web Hosting

Hello everyone,

I made a Laravel 9 project with a mysql database and I try to put it online with the OVH as host.
I used FileZilla to:
1. I checked the version of php in "composer.json" and updated on OVH to be the same.
2. I copied my project in the "www" directory (no failed tranfert)
3. I moved the contain of the public directory to be in the same place than the project file.
4. I updated my index.php by delete everything and adding the following code:

define('LARAVEL_START', microtime(true));

require__DIR__.'/ADA2023/vendor/autoload.php';
$app = require_once__DIR__.'/ADA2023/bootstrap/app.php';
?>

"ADA2023" is the name of the project
And after that I saved but when I tried to access my project online with the name of my domain "https://adatfejogendarme2022.be/" I have the HTTP ERROR 500