简体   繁体   English

httpd:如何了解httpd.conf中的错误在哪里

[英]httpd: how can I understand where the error in httpd.conf is

I'm trying to install PHP on Apache httpd server 2.4 on Windows. 我正在尝试在Windows的Apache httpd服务器2.4上安装PHP。 Yes, I know that that is extremely simple. 是的,我知道那非常简单。 But after adding the following three lines httpd start operation fails. 但是在添加以下三行后,httpd启动操作失败。

LoadModule php5_module C:/PHP/php5apache2_4.dll
AddHandler application/x-httpd-php .php
PHPIniDir "C:/PHP"

I'm not trying to asc what is done wrong after giving you three lines, I want to know can I somehow understand where the problem is (in error.log I do not have any message about errors while start). 在给您三行代码之后,我不是要尝试asc做错了什么,我想知道我能以某种方式理解问题所在(在error.log中,启动时我没有关于错误的任何消息)。

Thank you in advance! 先感谢您!

You need to load php dll file using LoadFile directive: 您需要使用LoadFile指令加载php dll文件:

LoadFile "c:/server/php/php5ts.dll"

in this case, php5ts.dll is name of the dll file, but you may need to change it to php5nts.dll based on whether you use thread safe . 在这种情况下, php5ts.dll是dll文件的名称,但是您可能需要根据是否使用线程安全将其更改为php5nts.dll

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM