here is the steps
Installation On Shared Hostings
Unzip the main zip file and upload your public_html folder ( upload vendor folder as well)
Give 777 recursive permission to storage/ and bootstrap/ folder
Create database in phpmyadmin and import .sql file
Set Database in .env file
- Move all public folder files to root folder in(public_html or your website folder)
- open
index.php
Replace these lines with
require __DIR__."/../bootstrap/autoload.php";
$app = require_once __DIR__."/../bootstrap/app.php";
To
require __DIR__.'/bootstrap/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
Add these line for setting public path
$app->bind('path.public', function() { return __DIR__; });
(Add this index.php)
Site is ready
Installation On Linux
Unzip the main zip file and upload your html folder (without vendor folder)
Give 777 permission to storage/ and bootstrap folder
i.e (Linux: chmod -R 777 foldername)
- Run Linux command (composer install or composer update)
- Create database in phpmyadmin and import .sql file from DB folder
- Set Database in .env file
- create vertual host for removing public folder from url
Done