如何在Bluehost上部署laravel应用程序?

时间:2018-02-09 11:57:24

标签: php laravel shared-hosting

我正在挑战在Bluehost上部署laravel 5.4应用程序。我成功地在不同的主机(web4africa)上部署类似的Web应用程序,并尝试执行类似的步骤,但获得 HTTP ERROR 500

这是我到目前为止所做的。

  1. 将除laravel公用文件夹以外的所有文件夹和文件加载到根目录/ home / ppikogco
  2. 将laravel公共文件夹中的内容移至/ home / ppikogco / public_html
  3. 将/home/ppikogco/public/html/index.php中的自动加载路径更改为require _DIR_.'/../bootstrap/autoload.php';$app = require_once __DIR__.'/../bootstrap/app.php';
  4. 在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);
    

    我需要帮助弄清楚我做错了什么或如何解决问题。

0 个答案:

没有答案