Apache 2.2的在Windows 8.1中安装PHP 5.6后不启动 [英] Apache 2.2 doesn't start after installing PHP 5.6 on Windows 8.1

查看:368
本文介绍了Apache 2.2的在Windows 8.1中安装PHP 5.6后不启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Windows 8.1的机器上建立一个开发环境。

我成功地安装了Apache 2.2,并下载PHP-5.6.3-Win32的VC11-86。

我添加了以下行的httpd.conf

的结束

 中的PHPIniDirC:/ PHP5
的LoadModule php5_moduleC:/PHP5/php5apache2_4.dll
将AddType应用/ X的httpd - PHP的.php
AddHandler的应用程序/ X的httpd - PHP的.php

我还添加了

 应用程序/ X的httpd  -  PHP的.php

myme.types 文件

如果我注释掉中的PHPIniDir 的LoadModule Apache将正常启动。

此外,所有扩展在的php.ini 文件中注释掉,并扩展目录设置为

 的extension_dir =转

任何帮助将是巨大的AP preciated。

编辑1:
在错误日志中的唯一的事情就是有关服务器shutdow

  [太阳11月23日14时56分07秒2014年] [声明]家长:收到关机信号 - 关闭服务器。
[太阳11月23日14时56分07秒2014年] [声明]儿童6192:退出事件信号。子进程正在结束。
[太阳11月23日14时56分08秒2014年] [声明]儿童6192:发布开始互斥
[太阳11月23日14时56分09秒2014年] [声明]儿童6192:所有的工作线程都已经退出。
[太阳11月23日14时56分09秒2014年] [声明]儿童6192:儿童进程退出
[太阳11月23日14时56分09秒2014年] [声明]家长:子进程成功退出。


解决方案

检查是否存在错误Apache的日志文件!看什么

您提到的Apache 2.2,但使用的是被称为php5apache2_4.dll DLL。
此DLL是按名称专门打造的Apache 2.4。这可能导致问题,这对Apache 2.2的为 PHP网站是Windows DLL中的最后一个PHP版本PHP 35年5月4日。

I'm setting up an development environment on a Windows 8.1 machine.

I successfully installed Apache 2.2, and downloaded php-5.6.3-Win32-VC11-x86.

I added the following lines at the end of httpd.conf

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

I also added

application/x-httpd-php .php

to the myme.types file

If I comment out PHPIniDir or LoadModule apache will start normally.

Also, all extensions are commented out on the PHP.ini file, and the extension directory is set as

extension_dir = "ext"

Any help will be hugely appreciated.

EDIT 1: The only thing in error log is about server shutdow

[Sun Nov 23 14:56:07 2014] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Nov 23 14:56:07 2014] [notice] Child 6192: Exit event signaled. Child process is ending.
[Sun Nov 23 14:56:08 2014] [notice] Child 6192: Released the start mutex
[Sun Nov 23 14:56:09 2014] [notice] Child 6192: All worker threads have exited.
[Sun Nov 23 14:56:09 2014] [notice] Child 6192: Child process is exiting
[Sun Nov 23 14:56:09 2014] [notice] Parent: Child process exited successfully.

解决方案

Check your apache log file for errors! see what the

You mention apache 2.2, yet you are using a dll called php5apache2_4.dll. This dll is according to the name specifically build for apache 2.4. This is likely to cause issues, the last php version which has a dll for apache 2.2 for windows on the php website is php 5.4.35.

这篇关于Apache 2.2的在Windows 8.1中安装PHP 5.6后不启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆