【问题标题】:Why index is displayed when trying to install phpmyadmin?为什么尝试安装 phpmyadmin 时显示索引?
【发布时间】:2014-04-21 09:40:28
【问题描述】:

我正在尝试根据here 的说明在 OSX 10.9.2 上安装 phpmyadmin

问题是,当我访问http://localhost/phpmyadmin/setup 时,我看到的是索引而不是安装屏幕:

这可能是什么原因?

【问题讨论】:

  • 听起来您没有安装 PHP,或者 Apache 未配置为为 .php 文件调用 PHP。如果你去setup/index.php可以吗?如果是这样,那么index.php 不会被列为索引文件(呃,或者其他任何名称)。
  • 看起来您的网络服务器未配置为运行 PHP 和/或未配置为在访问目录时返回 index.php。如果您尝试加载文件会发生什么?
  • 那么,就像我说的,你要么没有安装 PHP,要么没有正确配置 Apache 以使用 PHP。

标签: macos apache phpmyadmin osx-mavericks


【解决方案1】:

我必须取消注释 /etc/apache2/httpd.conf 中的以下行来解决问题:

LoadModule php5_module libexec/apache2/libphp5.so

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-21
    • 2016-02-10
    • 2014-08-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多