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

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.

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

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.

Member Avatar for diafol

Which version of Laravel is this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.