I'm been trying with every tutorial to deploy laravel 5.1 app on OVH via Filezilla FTP. I'm always getting Internal server error or blank page.
I unzipped my project into root/ ( same level as www) then I copied public content into www.
/www
public content
/project ( has no public folder)
Done 777 chmod in storage folder.
htaccess in www folder
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^www
RewriteRule ^(.*)$ www/$1 [L]
index.php in www folder
<?php
require __DIR__.'/../bootstrap/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire