2011-04-12 67 views
0

我有一个基于kohana的网站,我将它移到另一台计算机上。我已经安装了xampp并相应地更改了httpd.conf,以指向我的新网站位置。它指出,首先它给了我一个关于缓存目录必须是可写的事实的错误。它指向的东西/网络基于kohana的新本地主机上的网站

我有这个命名的Web路径,有一个index.php文件,它定义了我的应用程序,模块等路径。一堆指数:

<?php 

    /** 
    * The directory in which your application specific resources are located. 
    * The application directory must contain the bootstrap.php file. 
    * 
    * @see http://kohanaframework.org/guide/about.install#application 
    */ 
    $application = '../application'; 

    /** 
    * The directory in which your modules are located. 
    * 
    * @see http://kohanaframework.org/guide/about.install#modules 
    */ 
    $modules = '../modules'; 

/** 
    * The directory in which the Kohana resources are located. The system 
    * directory must contain the classes/kohana.php file. 
    * 
    * @see http://kohanaframework.org/guide/about.install#system 
    */ 
    $system = '../system'; 

我的问题是:每当我访问本地主机,我得到一个绝对的空白页。一个空白的one.no内容。没有错误。 (如果我使localhost/phpmyadmin我可以进入phpmyadmin平台,并在那里看到数据库)

什么可以是问题?

谢谢

+0

具有u启用警告和错误? – 2011-04-12 16:38:39

+0

是的,在bootstrap中我有错误TRUE – dana 2011-04-12 16:41:41

+0

计算机上运行什么操作系统? – 2011-04-12 16:51:05

回答

1

开始标杆

做一个单独的文件和做任何错误并运行,并检查是否有显示任何错误?

因为如果它不工作,它必须在这里得到错误信息。

没有这很难解决它。

+0

问题是,完全相同的网站在网上工作正常。我想是一个配置问题,但我不知道如何管理它。在错误日志中,我有:[Tue Apr 12 18:12:48 2011] [error] [client :: 1] client denied by server configuration:/users/dananicula/Sites/mnib/web/.DS_Store [Tue Apr 12 18:12:48 2011] [error] [client :: 1]客户端被服务器配置拒绝:/ users/dananicula/Sites/mnib/web /。htaccess [Tue Apr 12 18:20:47 2011] [notice]抓到SIGTERM,关闭 [Tue Apr 12 18:20:59 2011] [警告] Init:Session Cache不是..etc – dana 2011-04-12 18:32:20

0

首先测试给出的路径是否完美,通过install.php, 正常情况下,当没有这样的文件夹或存在权限问题(例如,在Linux中)时,可以写入缓存和日志。

所以,我的意见首先检查使用install.php的路径,如果你没有你可以把它从kohana的新副本。

这是你遇到的问题。 后来,如果路径是正确的比的.htaccess上的display_errors

php_value的display_errors 1