新本地主机上基于 kohana 的网站

发布于 2024-11-01 04:13:03 字数 1017 浏览 0 评论 0原文

我有一个基于 kohana 的网站,我将其移至另一台计算机。我已经安装了 xampp 并相应地更改了 httpd.conf,以指向我的新网站位置。它指出,因为首先它给了我一个关于缓存目录必须可写的错误。它指向 /web

我在这个名为 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';

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

可能是什么问题?

谢谢

i have a kohana based website, and i moved it to another computer. i have installed xampp and changed the httpd.conf accordingly, to point to my new website location. and it points, cause at first it has given me an error regarding the fact that cache directory must be writable. it points to something /web

i have the path in this named web, with a index.php file that defines me the paths to application, modules,etc. a bunch of the index:

<?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';

my problem is: whenever i access the localhost, i get an absolutely empty page. a blank one.no content. no error. (if i make localhost/phpmyadmin i can get into the phpmyadmin platform and see the database there)

what can be the problem??

thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

木格 2024-11-08 04:13:03

开始基准测试

创建一个单独的文件并在其中执行任何错误,然后运行并检查它是否显示任何错误?

因为如果它不工作,必须在这里获取错误消息。

如果没有这个,就很难解决它。

start benchmarking

make a separate file and do any error in it and run and check is it showing any error ?

Because it is must here to get error message if it is not working.

Without that It is hard to resolve it.

猫卆 2024-11-08 04:13:03

首先测试给定的路径是否完美,通过install.php,
通常,当没有此类文件夹或存在权限问题时(例如在Linux中),缓存和日志可写。

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

这是您面临的路径问题。
稍后,如果路径比 .htaccess 中的 display_errors

php_value display_errors 1正确

First test whether the path given is perfect, by install.php,
normally the writable of cache and logs comes when there are no such folders or there is permission issue(for eg in linux).

So, my opinion first check the path using install.php if u don't have u can take it from fresh copy of kohana.

It's the path issue what you are facing.
and later if path are proper than in .htaccess on the display_errors

php_value display_errors 1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文