Apache 2.2 won't start after installing PHP 5.6 on Windows 8.1
I am setting up a development environment on a Windows 8.1 machine.
I have 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 file myme.types
If I comment PHPIniDir
or LoadModule
, apache starts fine.
Also, all extensions are commented in the file PHP.ini
and the extension directory is set as
extension_dir = "ext"
Any help would be greatly appreciated.
EDIT 1: The only thing in the error log is the 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.
source to share
Check Apache log file for errors! look what
You mentioned apache 2.2, but you are using the php5apache2_4.dll dll. This dll corresponds to a name specially created for apache 2.4. This is likely to cause problems, the latest php version having apache 2.2 dll for windows on php website is php 5.4.35.
source to share