【问题标题】:PHP Does not render on OS X even after configurationsPHP 即使在配置之后也不会在 OS X 上呈现
【发布时间】:2015-01-11 08:49:04
【问题描述】:

我正在尝试使用 PHP 开发一个小型应用程序。我使用 Mac OS X 10.8.5 Mountain Lion。我了解到 PHP 默认不会在 Mac 上激活,因此按照步骤激活 PHP 并为我的 Mac 配置它。 http://coolestguidesontheplanet.com/install-configure-apache-mysql-php-phpmyadmin-osx-10-8-mountain-lion/ http://www.cyberciti.biz/faq/enable-apache2-2-php5-on-apple-os-x-10-8-mountain-lion/

直到昨天,我的 Mac 至少可以正常运行“It Works”。

现在,服务器本身似乎无法正常工作!

当我加载 localhost 时,它显示的是:

我无法理解配置不正确的地方和位置以及如何让我的 Apache 服务器重新启动。

请帮忙!!!!我已经束手无策了!

【问题讨论】:

  • 解决了!我想我应该在我在这里发帖之前进行更多搜索!

标签: php apache localhost server


【解决方案1】:

从这里找到解决方案:https://apple.stackexchange.com/questions/131671/problem-accessing-localhost-on-mac-os-x-mavericks-it-was-working-fine-until-i

我显然对 httpd.conf 文件进行了不可接受的更改。

要检测 Apache 的问题:我运行了:apachectl configtest 这条线给了我神奇的解决方案!!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-17
    • 2016-03-17
    • 1970-01-01
    • 2017-04-27
    • 2019-05-30
    • 2018-02-18
    相关资源
    最近更新 更多