duan5731 2011-09-02 03:36
浏览 93

我的PHP应用程序不会显示在localhost中(仅限文件夹)。 我正在使用MAMP - 应用程序保存在标准的htdocs文件夹中

So I've pulled a repository from github into my htdocs folder. But when i go to the http://localhost, all I get is a list of the folders in the App (vs seeing the app display in the browser).

i.e, my app is displaying a bulleted list as seen below. Usually i can get php pages up and running if they have a simple page right in the htdocs directory (index.php, etc). but this app is more sophisticated & doesn't have that.

I'm a beginner, so i'm sure this is something small I'm overlooking...but some help would be much appreciated.

Index of /
-App
-Config
-Core
-etc
-etc
-etc

Thanks,

  • 写回答

1条回答 默认 最新

  • dongxiandi8313 2011-09-02 03:41
    关注

    Something has to pass control to an "index.php" or some other controller that will handle the request and spit out the html you want to see. If the app is supposed to do something, you can try maybe checking the .htaccess file to see what it's supposed to be forwarding to. If all is set up correctly and still not working, then maybe the master httpd.conf has something like AllowOverride None that is preventing the rules/directives/etc in the htaccess from executing correctly

    评论

报告相同问题?

悬赏问题

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