How To Use Laravel On Cpanel (v5.2)

1- public/index.php

// 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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s