我正在挑战在Bluehost上部署laravel 5.4应用程序。我成功地在不同的主机(web4africa)上部署类似的Web应用程序,并尝试执行类似的步骤,但获得 HTTP ERROR 500 。
这是我到目前为止所做的。
require _DIR_.'/../bootstrap/autoload.php';
和$app = require_once __DIR__.'/../bootstrap/app.php';
在error_log文件中,抛出以下错误
[09-Feb-2018 04:25:09] PHP警告:输入中出现意外的字符:' \'第52行/home2/ppikogco/public_html/index.php中的(ASCII = 92)state = 1 [09-Feb-2018 04:25:09] PHP解析错误:语法错误,第52行/home2/ppikogco/public_html/index.php中的意外T_STRING
这是index.php的第52行和它之前的代码行
$app = require_once __DIR__.'/../bootstrap/app.php';
// $app = require_once __DIR__.'/../ppikog/bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
我需要帮助弄清楚我做错了什么或如何解决问题。