English 中文(简体)
Kohana 安装: 日志目录不可写入 。 无法在靴套中更改目录的根 。 php
原标题:Kohana installation: Logs Directory is not writable. Can t change the root of the directory in the bootstrap.php

I ve just installed kohana in my new project temp.loc I type in the browser temp.loc and Environment Tests says:

/work/temp.loc/wwwroot/application/cache/ 目录不可写。

日志目录 /work/temp.loc/wwwroot/application/logs/ 目录不可写入 。

我试图更改路径 Kohana::$log-gt;attach( 新的 Log_ File( APPATH. logs ) ); in statsstrap.php. but. 在刷新浏览器后,环境测试仍然显示相同的路径 /work/temp.loc/wwwroot/application/logs/ , 路径没有刷新。 为什么?

问题回答

不要在靴子圈中更改位置, 这是不需要的 。 您之所以接收此错误消息, 可能是因为这两个目录无法写入 。 如果您在 Mac OSX 或 Linux 环境中, 您需要将这些目录权限设置为 777, 即“ chmod 777 缓存 ” 。 两者都在您的应用程序目录中 。 每当我安装新服务器上的 Kohana 时, 我都必须解决这个问题 。





相关问题
Kohana - subfolders within views folder

I m working on the admin section of a site using Kohana. I ve created a "admin" subfolder within the views folder to store admin views. I m also using a modified instance of the Template Controller ...

approach for "site down for maintenance"

I have been using Joomla and I love its administrative facility to put the site down for maintenance. As I have seen, all requests to the site if it is in maintenance mode is routed to a single page. ...

Kohana 3: using maintainable routes

I m using Kohana v3 for a web project, and today I found myself writing this: echo Html::anchor( user/view/ .$user->id, "See user s profile"); If I rename the action_view method in the User ...

Is using a Mail Model in MVC incorrect?

I have built a model in some of my MVC websites to assist with sending emails, generally I do something like this $mail = new Mail_Model; $mail->to( me@somewhere.com ); $mail->from( you@...

help on building a basic php search engine

i looked for tutorials everywhere but just can t seem to get a good one... a search page with pagination, column header sorting, and multiple filtering(filters are in checkboxes) the problem: had ...

What s the proper MVC way to do this....?

Quick question about general MVC design principle in PHP, using CodeIgniter or Kohana (I m actually using Kohana). I m new to MVC and don t want to get this wrong... so I m wondering if i have ...

Kohana Error... Attempt to assign property of non-object

So I m trying to go through the Version 3 Guide of Kohana and keep getting an error on the hello world create view part. ErrorException [ Warning ]: Attempt to assign property of non-object Line 8: $...

热门标签