Php 如何在live server中托管Laravel 5.1

Php 如何在live server中托管Laravel 5.1,php,webserver,laravel-5.1,web-deployment,Php,Webserver,Laravel 5.1,Web Deployment,我采用了larave 5.1框架并创建了自己的简单项目。它在localhost中运行良好 我尝试使用免费托管的live server(byethost.com-php版本>5.4)。但我不知道如何在live server中部署 我查阅了一些文件。所以我把所有文件移到了public_html文件夹。然后将public_html/公共文件传输到public_html文件夹中。更改index.php中的文件路径 即使我没有看到任何正确的输出。我是否需要任何附加配置?请帮帮我 注意:我遇到了服务器500

我采用了larave 5.1框架并创建了自己的简单项目。它在localhost中运行良好

我尝试使用免费托管的live server(byethost.com-php版本>5.4)。但我不知道如何在live server中部署

我查阅了一些文件。所以我把所有文件移到了public_html文件夹。然后将public_html/公共文件传输到public_html文件夹中。更改index.php中的文件路径

即使我没有看到任何正确的输出。我是否需要任何附加配置?请帮帮我


注意:我遇到了服务器500错误。!发生此错误的确切原因是什么?

首先,您必须上载根目录中的所有文件(公共
目录除外)。然后上传服务器
public\u html
目录中
public
目录的所有内容。然后编辑
server.php
文件并将所有
public
替换为
public\u html
,如下所示

$uri = urldecode(
    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);

// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public_html'.$uri)) {
    return false;
}

require_once __DIR__.'/public_html/index.php';
还记得laravel使用php版本5.5.9>运行吗。如果您的服务器未满足要求,则可能无法正常工作。

可能存在重复的