How to host my site created in Laravel on the Hosting Server? [HTTP ERROR 500] [closed]

1

I'm trying to host my site developed in Laravel on the web site (Locaweb), but an error (HTTP ERROR 500) is not working.

File structure:

link

PHP Version: PHP Version 5.6.14

I modified public / index.php

//require __DIR__.'/../bootstrap/autoload.php';
require __DIR__.'/../core/bootstrap/autoload.php';

//$app = require_once __DIR__.'/../bootstrap/app.php';
$app = require_once __DIR__.'/../core/bootstrap/app.php';

.htaccess (this is Laravel's default)

<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]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

</IfModule>

After these changes, this error appears to me:

A página de xxx.com.br não está funcionando

xxx.com.br não consegue atender a esta solicitação no momento.

HTTP ERROR 500

I use Locaweb for hosting, and also set the core folder and subfolders as 777 permission.

ps. Locally everything works.

    
asked by anonymous 14.09.2016 / 16:14

0 answers