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

        <bdo id='ftHtd'></bdo><ul id='ftHtd'></ul>
      <legend id='ftHtd'><style id='ftHtd'><dir id='ftHtd'><q id='ftHtd'></q></dir></style></legend>

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

        如何在 IIS 7.5 上设置 Laravel 项目?

        How can I setup an Laravel project on IIS 7.5?(如何在 IIS 7.5 上设置 Laravel 项目?)
        <legend id='rvVNS'><style id='rvVNS'><dir id='rvVNS'><q id='rvVNS'></q></dir></style></legend>
        • <bdo id='rvVNS'></bdo><ul id='rvVNS'></ul>

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

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

              <tfoot id='rvVNS'></tfoot>

                    <tbody id='rvVNS'></tbody>

                  本文介绍了如何在 IIS 7.5 上设置 Laravel 项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个使用 Laravel 框架编写的 php 应用程序.我使用运行良好的 XAMPP 服务器开发它.

                  我想将其移至生产服务器,在该服务器上我可以使用 IIS 7.5 来管理我的应用程序.

                  这是我所做的

                  1. 我安装了 IIS
                  2. 我安装了 PHP 管理器

                  C:inetpubwwwroot 中创建了一个名为 laravel 的文件夹2. 使用 PHP Manager 我将 PHP 版本更改为 5.6.183. 在我的 5.6.18 版本的 php.ini 中,我启用了以下几行

                  <块引用>

                  extension_dir = "ext"cgi.force_redirect = 0cgi.fix_pathinfo = 1fastcgi.impersonate = 1fastcgi.logging = 0扩展=php_mbstring.dll扩展=php_exif.dll;必须在 mbstring 之后,因为它取决于它扩展=php_mysql.dll扩展=php_mysqli.dll扩展=php_openssl.dll扩展=php_pdo_mysql.dlldate.timezone = "在此处输入您的时区"session.entropy_length = 32

                  1. 我用 php 5.6.18 安装了 composer
                  2. 我使用 IIS 中的 URL 重写模型导入了位于公共文件夹中的 .httaccess 文件.这一步创建了一个 web.config 文件.然后我将其移至公用文件夹.
                  3. 我将 Laravel 转换为 IIS 中的应用程序
                  4. 我在 laravel all 的根目录中添加了 phpinfo.php 文件,我可以通过浏览器看到它.

                  但我无法访问我的 laravel 应用.

                  当我去 http://localhost/laravel/public/index.php 我报错

                  HTTP 500 内部错误

                  我按照下面的博客了解了我现在的位置

                  http://alvarotrigo.com/blog/installing-laravel-4-in-windows-7-with-iis7/

                  https://laracasts.com/discuss/频道/一般讨论/iis7-laravel-5?page=2

                  如何让 laravel 应用程序运行?

                  解决方案

                  我终于弄明白了.

                  我所做的一切都是正确的,除了两件事

                  1. 我将应用程序上的物理路径更改为指向公用文件夹而不是根目录.
                  2. 我的 IIS 用户需要对 bootstrap/cachestorage 有完全控制权限 <<<这是让一切正常运行的非常关键的一步

                  现在一切正常.

                  I have a php application that I write using Laravel framework. I developed it using XAMPP server which was running fine.

                  I want to move it to a production server where I can use IIS 7.5 to manage my applications.

                  Here is what I have done

                  1. I installed IIS
                  2. I installed PHP Manager

                  Created a folder called laravel in C:inetpubwwwroot 2. Using PHP Manager I changed the PHP version to 5.6.18 3. In my php.ini of the version 5.6.18 I enabled the following lines

                  extension_dir = "ext"
                  cgi.force_redirect = 0
                  cgi.fix_pathinfo = 1
                  fastcgi.impersonate = 1
                  fastcgi.logging = 0
                  extension=php_mbstring.dll
                  extension=php_exif.dll      ; Must be after mbstring as it depends on it
                  extension=php_mysql.dll
                  extension=php_mysqli.dll
                  extension=php_openssl.dll
                  extension=php_pdo_mysql.dll
                  date.timezone = "ENTER YOUR TIMEZONE HERE"
                  session.entropy_length = 32
                  

                  1. I installed composer with php 5.6.18
                  2. I imported the .httaccess file located in the public folder using URL Rewrite Model in IIS. This step created a web.config file. Then I moved it to the public folder.
                  3. I converted my Laravel to Application in IIS
                  4. I added phpinfo.php file in the root of my laravel all and I was able to see it via the browser.

                  But I can't access my laravel app.

                  When I go to http://localhost/laravel/public/index.php I get an error

                  HTTP 500 Internal error
                  

                  I followed the blogs below to get where I am at now

                  http://alvarotrigo.com/blog/installing-laravel-4-in-windows-7-with-iis7/

                  https://laracasts.com/discuss/channels/general-discussion/iis7-laravel-5?page=2

                  How can I get laravel app to run?

                  解决方案

                  I finally figure it out.

                  Everything I have done was correct except of 2 things

                  1. I changed the Physical Path on the application to point to the public folder instead of the root.
                  2. I IIS User need to have full control permission on the bootstrap/cache and storage << this is very critical step to get everything to work

                  Everything is running fine now.

                  这篇关于如何在 IIS 7.5 上设置 Laravel 项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 的问题)

                      <tbody id='Azpfa'></tbody>

                    1. <tfoot id='Azpfa'></tfoot>

                      <legend id='Azpfa'><style id='Azpfa'><dir id='Azpfa'><q id='Azpfa'></q></dir></style></legend>

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