无法连接到 el capitan mac 错误 AH00526 上的 apache:-c/-C 指令第 1 行的语法错误:
Unable to connect to apache on el capitan mac error AH00526: Syntax error on line 1 of -c/-C directives:
我最近在 Mac OSX El Capitan 升级到 php56。现在我无法 运行 apache。
我得到:-
This site can’t be reached
localhost refused to connect.
当尝试 运行 localhost
apachectl -k restart 命令给出错误提示
httpd not running, trying to start
当我 运行 命令 httpd -t -c httpd.conf 时,它抛出以下错误:-
AH00526: Syntax error on line 1 of -c/-C directives:
Invalid command 'httpd.conf', perhaps misspelled or defined by a module not included in the server configuration
apachectl configtest 不会抛出任何错误。
apache 日志中也没有日志。
谁能帮我解决这个问题。如果您需要更多详细信息,请告诉我。
知道了。这是因为 httpd.conf 无法加载 libphp5.so LoadModule php5_module libexec/apache2/libphp5。所以如果我评论这个。 Apache 开始工作。
但它应该已经记录了错误。不知道为什么它没有记录任何错误。
仍然无法弄清楚为什么 libphp5.so 在正确的路径中不起作用。
我最近在 Mac OSX El Capitan 升级到 php56。现在我无法 运行 apache。
我得到:-
This site can’t be reached
localhost refused to connect.
当尝试 运行 localhost
apachectl -k restart 命令给出错误提示
httpd not running, trying to start
当我 运行 命令 httpd -t -c httpd.conf 时,它抛出以下错误:-
AH00526: Syntax error on line 1 of -c/-C directives:
Invalid command 'httpd.conf', perhaps misspelled or defined by a module not included in the server configuration
apachectl configtest 不会抛出任何错误。 apache 日志中也没有日志。
谁能帮我解决这个问题。如果您需要更多详细信息,请告诉我。
知道了。这是因为 httpd.conf 无法加载 libphp5.so LoadModule php5_module libexec/apache2/libphp5。所以如果我评论这个。 Apache 开始工作。
但它应该已经记录了错误。不知道为什么它没有记录任何错误。
仍然无法弄清楚为什么 libphp5.so 在正确的路径中不起作用。