2
votes

I have developed my own website by using Laravel.It is working fine in Localhost.

So I have moved my files into live server(byethost.com). When I'm trying to access my site, I got an error (Server Error 500). I am new to this laravel.Please Any one help me to solve my problem.

Note: Moved all local files into public_html folder in server. then moved public_html/public files to public_html directory in server.And also changed path in app file.

Code:

require __ DIR__.'/bootstrap/autoload.php';
$app = require_once __ DIR__.'/bootstrap/app.php';

Free hosting URL: www.sankaran.bytehost15.com

Log file: sankaran.byethost15.com [22/Dec/2015:06:48:15 -0500] 106.51.135.213 - - "GET /favicon.ico HTTP/1.0" 302 208 "http://sankaran.byethost15.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:06:48:43 -0500] 106.51.135.213 - - "GET /images/slider/bg1.jpg HTTP/1.0" 302 208 "http://sankaran.byethost15.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:07:47:59 -0500] 106.51.135.213 - - "GET /index.php HTTP/1.0" 500 - "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:07:47:59 -0500] 106.51.135.213 - - "GET /index.php HTTP/1.0" 500 - "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:07:48:18 -0500] 106.51.135.213 - - "GET /favicon.ico HTTP/1.0" 200 - "http://sankaran.byethost15.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:07:48:44 -0500] 106.51.135.213 - - "GET /fonts/fontawesome-webfont.woff?v=4.0.3 HTTP/1.0" 302 208 "http://sankaran.byethost15.com/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:07:49:12 -0500] 106.51.135.213 - - "GET /sankaran/ HTTP/1.0" 302 208 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:08:47:32 -0500] 106.51.135.213 - - "GET /nano/ HTTP/1.0" 500 - "Server 500 Error - Laravel" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:08:47:57 -0500] 41.189.90.42 - - "GET /first/ HTTP/1.0" 200 1321 "http://sankaran.byethost15.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:08:48:24 -0500] 119.160.193.114 - - "GET /nano/?ckattempt=1 HTTP/1.0" 500 - "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:08:48:24 -0500] 119.160.193.114 - - "GET /nano/?ckattempt=1 HTTP/1.0" 500 - "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:09:47:28 -0500] 80.252.79.186 - - "GET /nano/?ckattempt=1 HTTP/1.0" 500 - "http://sankaran.byethost15.com/nano/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36"

sankaran.byethost15.com [22/Dec/2015:09:47:47 -0500] 96.225.60.66 - - "GET /nano/?ckattempt=1 HTTP/1.0" 500 - "http://sankaran.byethost15.com/nano/" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36"

1
You need to give read/write permissions to the storage/* directory and bootstrap/cache directory.Andrei
Can you please check error log for same?Ishan Shah
probably some php extension you have in your project that isn't installed on byethost.com. And check error log for sure like mentioned aboveStrahinja Djurić
Firstly, please comment / remove the .htaccess file temporary then check. Still if you face the same then check the error log.thepaks
I think the logs will have the error. So you can either go through them or paste them in the question as that will give a better picture.Obscure Geek

1 Answers

0
votes

You need to give read/write permissions.

On Laravel 5.2.* open up terminal (on mac) cd into /storage and run the following command:

sudo chmod -R 777 .

You will be asked to enter your administrator password, do this and then go refresh the page. You should see Laravel 5