【问题标题】:Apache Not Starting Up OSX 10.6.7Apache 未启动 OSX 10.6.7
【发布时间】:2011-09-25 15:57:40
【问题描述】:

这快把我逼疯了!新电脑,不是两天前,全新安装 OS x 10.6.7。

我检查了系统偏好>共享>网络共享:打开

当我转到:http://192.168.1.13/http://192.168.1.13/~gorteks/ 时,消息显示:

Safari can’t open the page “http://192.168.1.13/~gorteks/” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again."

在终端中我尝试输入:$ sudo apachectl configtest

错误返回为:httpd: Syntax error on line 493 of /private/etc/apache2/httpd.conf: Syntax error on line 8 of /private/etc/apache2/other/+entropy-php.conf: Cannot load /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _libiconv\n Referenced from: /usr/local/php5/lib/libintl.8.dylib\n Expected in: /usr/lib/libiconv.2.dylib\n

大家,我不知道如何解决这个问题,因为我对所有这些都是菜鸟。任何人都可以对这个问题有所了解吗?非常感谢!

Dd

【问题讨论】:

    标签: mysql apache macos terminal


    【解决方案1】:

    我推荐你使用 MAMP http://www.mamp.info 这是一个 Apache+PHP+MySQL 已经配置好的解决方案。强烈推荐使用。

    另一方面,它说httpd.conf 文件中存在语法错误。它必须在/etc/apache2/httpd.conf 下。您能否将该文件发布到某处,然后尝试修复第 493 行附近的错误。

    【讨论】:

    • 我已经加载了 MAMP。工作正常,但不确定在哪里放置我的工作文件,查看我的工作文件等。有人可以解释一下吗?谢谢!
    • 您可以从 MAMP 窗口中的“首选项”按钮中选择它。(Apache->文档根目录)如果您认为是正确的,请将此答案标记为正确。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-01
    • 2011-09-12
    • 2017-07-07
    • 2018-08-18
    • 2019-03-13
    相关资源
    最近更新 更多