【发布时间】:2014-07-19 06:39:32
【问题描述】:
我的 laravel 4 项目是在 localhost 上创建的。现在我试图把它放在服务器上(共享主机),但我遇到了一个错误。首先让我解释一下我是如何上传我的 laravel 项目的。
mydomain.nl
mydomain.nl--public_html
mydomain.nl--public_html--dev
mydomain.nl--public_html--packages
mydomain.nl--public_html--index.php
mydomain.nl--public_html--.htacces
mydomain.nl--public_html--all other contents form public laravel folders
mydomain.nl--project
mydomain.nl--project--bootstrap
mydomain.nl--project--vendor
mydomain.nl--project--app
mydomain.nl--project--all other folders and files wich were not in laravel public folder
然后我将 mydomain.nl/project/bootstrap/paths.php 更改为:
'public' => __DIR__.'/../../public_html',
和我的 mydomain.nl/public_html/index.php 到
require __DIR__.'/../project/bootstrap/autoload.php';
$app = require_once __DIR__.'/../project/bootstrap/start.php';
如果我转到我的域,我会收到以下错误
异常处理程序中的错误:无法打开流或文件“/hostingvariables/project/app/storage/logs/laravel.log”:fopen(/hostingvariables/project/app/storage/logs/laravel.log) [function.fopen]:打开流失败:/hostingvariables/project/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:77中的权限被拒绝
我尝试了所有我能想象的但我无法解决这个错误,如果有人可以帮助我解决这个错误会很棒吗?
【问题讨论】:
标签: php laravel exception-handling