简体   繁体   中英

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

在此处输入图片说明

Then I browsed to subdomains:

在此处输入图片说明

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

在此处输入图片说明

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

在此处输入图片说明

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

在此处输入图片说明

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.

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^

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM