J'essaie de faire en sorte que mon application laravel5.1 vive sur un hébergeur partagé, mais je n'y arrive pas, peu importe les efforts que j'essaie. ma structure hôte est donnée au this image. L'application laravel est sous le dossier de l'application et le contenu du dossier public de laravel coupé à public_html. au index.php public_html J'ai:Comment faire pour installer Laravel5.1 App sur SharedHost?
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <[email protected]>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/
require __DIR__.'/../app/bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
$app = require_once __DIR__.'/../app/bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Maintenant, je ne vois ni ma page d'index, ni regarder des erreurs dans /app/storage/logs/laravel.log.
par la façon dont mon .htaccess dans le contenu public_html est:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule^index.php [L]
</IfModule>
merci pour votre réponse mais ça n'a pas marché! il est toujours dit erreur interne sans aucun journal !! : | –
hmm j'ai tout fait étape par étape et cela fonctionne pour moi sur godaddy. J'utilise aussi l'hébergement partagé – Adnan
juste pour être sûr, comment les autorisations de stockage de laravel? il devrait être 775 (rwx rwx r-x). et avant de télécharger, assurez-vous qu'aucun php pré-compilé n'est parti, utilisez 'php artisan clear-compiled'. –