Windows – Apache 2.4.2 with PHP 5.4.4 crashes as soon as phpinfo() script is opened

apache-2.2php5server-crasheswindowswindows 7

As soon as i open a phpinfo() script called version.php apache stops working. Here is the error.log file. My configuration (my local development machine):

PATH environment variable is PATH=C:\WAMP\Apache\bin;C:\WAMP\PHP and installation folders (unzipping) are:

  • C:/WAMP/Apache
  • C:/WAMP/PHP

Microsoft Visual C++ 2010 SP1 x86/x64 installed and updated. So everything looks fine to me. PHP integration in httpd.conf is:

# Integrazione PHP
LoadModule php5_module "C:/WAMP/PHP/php5apache2_4.dll"
PhpIniDir "C:/WAMP/PHP"
AddType application/x-httpd-php .php

<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

Best Answer

I don't assume that PHP uses the PATH variable to resolve the path of the extensions. So try adding the whol path in the extension_dir variable like

extension_dir = C:/WAMP/PHP/ext
Related Topic