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条)

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度