在httpd.conf中添加php load_module时,Apache2.4将无法启动

时间:2012-12-09 11:35:50

标签: apache2

我正在尝试使用apache 2.4配置php 5.4.9但是当我在apache下面包含行时将无法启动。

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

我已经检查了所有文件路径,但它们都没问题。我在环境中将路径设置为C:\php;c:\Apache24;c:\Apache24\bin;

我实际得到的错误是

Windows could not start the Apache2.4 on local computer. For more information, review the system eventlog. If this is a non-microsoft service, contact the service vendor, and refer to service-specific error code 1

其他人有过这个问题吗?

更新

我在php文件夹中有php5apache2_4.dll,我的错误记录在apache

[Sun Dec 09 11:19:16.502272 2012] [mpm_winnt:notice] [pid 5552:tid 316] AH00418: Parent: Created child process 5052    
[Sun Dec 09 11:19:18.315156 2012] [mpm_winnt:notice] [pid 5052:tid 208] AH00354: Child: Starting 64 worker threads.    
[Sun Dec 09 11:29:53.861913 2012] [mpm_winnt:notice] [pid 5552:tid 316] AH00422: Parent: Received shutdown signal -- Shutting down the server.    
[Sun Dec 09 11:29:55.889916 2012] [mpm_winnt:notice] [pid 5052:tid 208] AH00364: Child: All worker threads have exited.    
[Sun Dec 09 11:29:55.905516 2012] [mpm_winnt:notice] [pid 5552:tid 316] AH00430: Parent: Child process exited successfully.

0 个答案:

没有答案