How To Use Laravel On Cpanel (v5.2)

inside your laravel app

1- open public/index.php and change

// before
require __DIR__.'/../bootstrap/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';

// after
require __DIR__.'/../Laravel/bootstrap/autoload.php';
$app = require_once __DIR__.'/../Laravel/bootstrap/app.php';

2- zip the public folder and extract its content inside the public_html folder in the cpanel

3- zip everything else “excluding the public folder” and extract it into a folder call Laravel at the same root of the public_html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.