Jump to content

Apache service will not start when adding PHP module


Go to solution Solved by Eiolon,

Recommended Posts

Running:

 

Windows Server 2008 R2 64-bit

Apache 2.4.4 32-bit from Apache Lounge

PHP 5.4.16 VC9 x86

 

Apache works fine until I add the following lines at the end of the httpd config file:

 

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

PHPIniDir "C:/php"

 

The module is located in the path.

 

I have the Microsoft VS2010 Redistributable x86 installed.

 

I have C:\PHP; added to the environmental variables in Windows.

 

Error that occurs when starting the service:

 

Cannot load C:/PHP/php5apache2_4.dll into server: The application has failed to start because its side-by-side configuration is incorrect.

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.