• <bdo id='77TZN'></bdo><ul id='77TZN'></ul>

        <small id='77TZN'></small><noframes id='77TZN'>

        <legend id='77TZN'><style id='77TZN'><dir id='77TZN'><q id='77TZN'></q></dir></style></legend>
        <tfoot id='77TZN'></tfoot>
      1. <i id='77TZN'><tr id='77TZN'><dt id='77TZN'><q id='77TZN'><span id='77TZN'><b id='77TZN'><form id='77TZN'><ins id='77TZN'></ins><ul id='77TZN'></ul><sub id='77TZN'></sub></form><legend id='77TZN'></legend><bdo id='77TZN'><pre id='77TZN'><center id='77TZN'></center></pre></bdo></b><th id='77TZN'></th></span></q></dt></tr></i><div id='77TZN'><tfoot id='77TZN'></tfoot><dl id='77TZN'><fieldset id='77TZN'></fieldset></dl></div>
      2. 无法让 Laravel 4 在本地主机上工作

        Can#39;t make Laravel 4 to work on localhost(无法让 Laravel 4 在本地主机上工作)
          <tbody id='bDlVy'></tbody>

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

                  <tfoot id='bDlVy'></tfoot>
                1. <small id='bDlVy'></small><noframes id='bDlVy'>

                2. 本文介绍了无法让 Laravel 4 在本地主机上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在阅读了 Laravel4 测试版发布的公告后,我第一次尝试 Laravel.

                  I'm trying Laravel for the first time after reading an announcement of the Laravel4 beta releasing.

                  我按照这些步骤安装了 composer 和 laravel 以及它所需的所有依赖项.我把 laravel 放在我的 ~/public_html 目录中——因为我习惯用 Codeigniter 来做,但我认为这里有问题.

                  I followed these steps I installed composer and laravel with all the dependencies it needed. I put the laravel inside my ~/public_html directory - as I'm used to do it with Codeigniter, but I think something's wrong here.

                  如果我将浏览器指向http://localhost/~carlo/laravel-develop/,它只会显示目录的内容.

                  If I point to the browser to http://localhost/~carlo/laravel-develop/, it just displays the content of the directory.

                  然后,当我在文件系统上有一个 laravel-develop/public 文件夹时,它并没有出现在浏览器上.

                  Then, while on the filesystem I had a laravel-develop/public folder, it didn't appear on the browser.

                  我发现像这样更改 .htaccess:

                  <IfModule mod_rewrite.c> 
                  RewriteEngine on 
                  RewriteCond %{REQUEST_FILENAME} !-f 
                  RewriteCond %{REQUEST_FILENAME} !-d 
                  RewriteRule ^(.*)$ index.php/$1 [L] 
                  </IfModule>
                  

                  当我尝试访问公用文件夹时出现错误.错误:

                  resulted in an error when I try to access the public folder. The error:

                  ErrorException:警告:file_put_contents(/home/carlo/public_html/laravel-develop/app/config/../storage/meta/services.json):无法打开流:/home/carlo/public_html 中的权限被拒绝/laravel-develop/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php 第77行

                  ErrorException: Warning: file_put_contents(/home/carlo/public_html/laravel-develop/app/config/../storage/meta/services.json): failed to open stream: Permission denied in /home/carlo/public_html/laravel-develop/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php line 77

                  另一个:

                  /home/carlo/public_html/laravel-develop/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php 第77行

                  /home/carlo/public_html/laravel-develop/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php line 77

                  然后是一长串错误.最后一个是:

                  then a long list of errors. The last one is:

                  require_once('/home/carlo/public_html/laravel-develop/start.php') 在/home/carlo/public_html/laravel-develop/public/index.php 第 53 行

                  require_once('/home/carlo/public_html/laravel-develop/start.php') in /home/carlo/public_html/laravel-develop/public/index.php line 53

                  推荐答案

                  尝试使用终端更改storage文件夹的文件夹权限:

                  Try to change the folder permissions for the storage folder using the terminal:

                  chmod -R 777 存储

                  可以在这里找到更多信息.

                  这篇关于无法让 Laravel 4 在本地主机上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 的问题)
                  <tfoot id='cDbjF'></tfoot>

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

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

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