Wai Yan Hein
Wai Yan Hein

Reputation: 14811

Cannot host Laravel 5.2 on Arvixe shared hosting

I am deploying my Laravel 5.2 application to production server. I bought shared hosting plan (Personal use) form Arvixe with C Panel access and PHP version 7.0.5. But I am having problems with hosting my application.

I created a sub folder under public_html and put all contents to it

enter image description here

Then I browsed to subdomains:

enter image description here

Then I created a subdomain and mapped it to public folder of my project:

enter image description here

Then I redirected that subdomain to public/index.php like this:

enter image description here

Then when I access to http://mmfashion.mmfashionnetwork.com, it is giving me this error.

enter image description here

How can I share my application on Arvixe shared hosting? What is wrong with my configuration? When I run it on local machine, it is working.

Upvotes: 2

Views: 280

Answers (1)

Solar
Solar

Reputation: 1015

I don't think you need the third step (redirection) since the second step 'document root' had already point to the document root, which is in your case public_html/mmfashion/public;

So, if anybody visits the subdomain URL, the first place it will point them to is the public_html/mmfashion/public;

Other steps you need to look out for

  1. Make sure your .env have APP_KEY generated or run php artisan key:generate if it's not there.
  2. Make sure you are running on PHP 7^

Upvotes: 0

Related Questions