0

Hi everyone, I use laravel because its great. but i didnt use it on live server yet. I am using a sheared server and i uploaded my files to public_html folder and run my website. But browser shows a white blank page and then i open my browser console it show me a 500 internal error. So how can i solve this problem. Thanks everyone

3
Contributors
4
Replies
17
Views
1 Year
Discussion Span
Last Post by diafol
1

Hi,

you should move on public_html only the files that are in the public folder of your laravel application, all the other files should be placed in the parent directory, so that are not accessible by a browser.

0

I did it but it also not working.
my current folder structure is given billow

--> laravel
-->public_html
    --> index.php
    -->favicon.ico
    -->.htaccess
    -->robots.txt



Please help me for the problem
Browser console says 500 internal server error

I changed the index.php directory root as well as
0

It should look like:

-> app/
-> public_html/
        -> index.php
        -> ...
-> vendor/
-> bootstrap/

If there is something different then it must reflect in the index.php paths:

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

// and
$app = require_once __DIR__.'/../bootstrap/start.php';

Note I'm referring to 4.2, still not using new version, so there could be some differences.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.