2

我使用 Laravel 开发了自己的网站。它在 Localhost 中运行良好。

因此,我已将文件移至实时服务器(byethost.com)。当我尝试访问我的站点时,我收到了一个错误(服务器错误 500)。我是这个 laravel 的新手。请任何人帮我解决我的问题。

注意:将所有本地文件移动到服务器中的 public_html 文件夹中。然后将public_html/public文件移动到服务器中的public_html目录。并且还更改了应用程序文件中的路径。

代码:

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

免费托管网址: www.sankaran.bytehost15.com

日志文件: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 - “服务器 500 错误 - Laravel ” “Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, 像 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"

4

1 回答 1

0

您需要授予读/写权限。

在 Laravel 5.2.* 上打开终端(在 mac 上)cd/storage运行以下命令:

sudo chmod -R 777 .

系统将要求您输入管理员密码,执行此操作,然后刷新页面。你应该看到Laravel 5

于 2016-01-22T15:10:17.630 回答