dongwo7858 2011-03-23 15:52
浏览 34
已采纳

yii申请的地址

I a new in Ubuntu and PHP frameworks. I had read the book about Yii name "Agile web application development with yii and php 5".

And this is the part of text:

Yii comes with a simple requirement checking tool. To invoke
the tool and have it verify the requirements for your installation, simply point
your browser to:
http://yourhostname/path/to/yii/requirements/index.php

I installed yii in /var/www/html/yii directory.

When I trying to open http://localhost/var/www/html/yii/requirements/index.php I get error message: Oops! This link appears to be broken.

Thanks for any help!

  • 写回答

4条回答 默认 最新

  • dongyin6576 2011-03-23 19:23
    关注

    It depends on what your Apache server's "webroot" (localhost) is.

    If your webroot is /var/www/html then el chief's answer would work:

    http://localhost/yii/requirements/index.php

    But your webroot is /var/www then you need to include the html part too:

    http://localhost/html/yii/requirements/index.php

    Basically "localhost" = /some/path (your Apache webroot), and when you are writing your URL you can just substitute the two.

    So if "localhost" = /var/www instead of writing http://var/www/index.php you just write http://localhost/index.php

    I hope this helps you with a higher-level understanding of what is going on.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大