1. <small id='HILau'></small><noframes id='HILau'>

      2. <legend id='HILau'><style id='HILau'><dir id='HILau'><q id='HILau'></q></dir></style></legend>

        <tfoot id='HILau'></tfoot>
      3. <i id='HILau'><tr id='HILau'><dt id='HILau'><q id='HILau'><span id='HILau'><b id='HILau'><form id='HILau'><ins id='HILau'></ins><ul id='HILau'></ul><sub id='HILau'></sub></form><legend id='HILau'></legend><bdo id='HILau'><pre id='HILau'><center id='HILau'></center></pre></bdo></b><th id='HILau'></th></span></q></dt></tr></i><div id='HILau'><tfoot id='HILau'></tfoot><dl id='HILau'><fieldset id='HILau'></fieldset></dl></div>
        • <bdo id='HILau'></bdo><ul id='HILau'></ul>

        如何在共享主机上部署 laravel 4.2?

        How to deploy laravel 4.2 on shared hosting?(如何在共享主机上部署 laravel 4.2?)
      4. <legend id='FEkMI'><style id='FEkMI'><dir id='FEkMI'><q id='FEkMI'></q></dir></style></legend>

          <small id='FEkMI'></small><noframes id='FEkMI'>

              <bdo id='FEkMI'></bdo><ul id='FEkMI'></ul>

            • <tfoot id='FEkMI'></tfoot>
                  <i id='FEkMI'><tr id='FEkMI'><dt id='FEkMI'><q id='FEkMI'><span id='FEkMI'><b id='FEkMI'><form id='FEkMI'><ins id='FEkMI'></ins><ul id='FEkMI'></ul><sub id='FEkMI'></sub></form><legend id='FEkMI'></legend><bdo id='FEkMI'><pre id='FEkMI'><center id='FEkMI'></center></pre></bdo></b><th id='FEkMI'></th></span></q></dt></tr></i><div id='FEkMI'><tfoot id='FEkMI'></tfoot><dl id='FEkMI'><fieldset id='FEkMI'></fieldset></dl></div>
                    <tbody id='FEkMI'></tbody>
                  本文介绍了如何在共享主机上部署 laravel 4.2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我使用 laravel 4.2.8 开发了一个应用程序,现在我无法部署它.我遵循了这个答案 https://stackoverflow.com/a/16683938/3153380 但它不起作用.我得到一个白屏,并且标题返回 500 Internal Server Error 状态.

                  I developed an application with laravel 4.2.8 and now I am having trouble deploying it. I followed this answer https://stackoverflow.com/a/16683938/3153380 but its not working. I am getting a white screen and the headers are returning a 500 Internal Server Error status.

                  我读到 laravel 4.2 在共享主机上设置有点棘手,这是真的吗?我似乎可以找到一个可行的解决方案,所以那些之前部署过 4.2 的人请帮忙.我的文件夹结构如下所示

                  I read around that laravel 4.2 is a bit tricky to set up on shared hosting is this true? I can seem to find a working solution so those that have deployed 4.2 before please help. My folder structure is like below

                  根/laravel_base/应用程序/...public_html/站点根目录/资产/包/上传/索引.php...有什么指点吗?

                  root/ laravel_base/ app/ ... public_html/ siteroot/ assets/ packages/ uploads/ index.php ... Any pointers?

                  推荐答案

                  首先确保您的共享主机运行 php >= v5.4.第二次尝试按照以下步骤操作:

                  First make sure that your shared host runs php >= v5.4. Second try to follow this steps:

                  1. public_html/www/ 之外创建一个文件夹.例如:project/
                  2. 将您的 laravel 应用中的每个文件夹和文件(public 文件夹除外)复制到该 project/ 文件夹中
                  3. public/ 文件夹的内容复制到您的 public_html/www/ (.htaccess 也必须在那里)
                  4. 在 public/中找到 index.php 文件并更改以下路径:

                  1. Create a folder outside your public_html/ or www/. Ex: project/
                  2. Copy every folder and file (except the public folder) from your laravel app into that project/ folder
                  3. Copy the content of public/ folder into your public_html/ or www/ (the .htaccess must be there too)
                  4. Inside public/ locate the index.php file and change the following paths:

                  一个.autoload.php

                  require __DIR__.'/../bootstrap/autoload.php';
                  

                  进入

                  require __DIR__.'/../project/bootstrap/autoload.php';
                  

                  B.start.php

                  $app = require_once __DIR__.'/../bootstrap/start.php';
                  

                  进入

                  $app = require_once __DIR__.'/../project/bootstrap/start.php';`
                  

                  毕竟它应该可以工作.

                  这篇关于如何在共享主机上部署 laravel 4.2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                          <bdo id='kL47v'></bdo><ul id='kL47v'></ul>

                        • <legend id='kL47v'><style id='kL47v'><dir id='kL47v'><q id='kL47v'></q></dir></style></legend>
                          <i id='kL47v'><tr id='kL47v'><dt id='kL47v'><q id='kL47v'><span id='kL47v'><b id='kL47v'><form id='kL47v'><ins id='kL47v'></ins><ul id='kL47v'></ul><sub id='kL47v'></sub></form><legend id='kL47v'></legend><bdo id='kL47v'><pre id='kL47v'><center id='kL47v'></center></pre></bdo></b><th id='kL47v'></th></span></q></dt></tr></i><div id='kL47v'><tfoot id='kL47v'></tfoot><dl id='kL47v'><fieldset id='kL47v'></fieldset></dl></div>

                            <tbody id='kL47v'></tbody>
                          <tfoot id='kL47v'></tfoot>

                          1. <small id='kL47v'></small><noframes id='kL47v'>