hosting - Uploading Laravel Project into the Web Server -
i have folder web server /
, put files/folders except public folder(with index.php) of new laravel project , in /public_html/
put files public folder.
i didn't have change paths in bootstrap folder containing 2 files app , autoload, , did in first path in uploading laravel project onto web server
instead of showing notorious welcome laravel, shows nothing.
i using godaddy web hosting. doing wrong?
solution:
1. have home directory in web server
/
which parent of public_html folder, here upload folder created files contenting laravel project files, folders except public folder.
in the
/public_html
you upload files containing in public folder of laravel project
2. open index.php public_html , change these things:
require __dir__.'/../bootstrap/autoload.php'; $app = require_once __dir__.'/../bootstrap/app.php';
into
require __dir__.'/../laravelfoldernameinroot/bootstrap/autoload.php'; $app = require_once __dir__.'/../laravelfoldernameinroot/bootstrap/app.php';
3. make sure change php version in cpanel 5.6, obligatory in order website work.
4. other changes depends on changes made after building fresh laravel project.
Comments
Post a Comment