Jump to content

PHP LoadModules and Apache2.4


Droffo
Go to solution Solved by Ch0cu3r,

Recommended Posts

Greetings forum.

 

I am attempting to configure loadmodules for PHP 5.6 in Apache 2.4 on Windows Server 2012.

Here is the configuration I am attempting to add into httpd.conf:

# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2_4.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php

I place it in the loadmodules section, right at the end of all of the modules. If I try to restart Apache it produces an error and will not run/restart, when I remove my added configuration the Apache server starts up again no worries at all. I believe my configuration to be wrong in this scenario and would like to ask how I should deal with this and/or if I am doing something wrong here.

 

Thank you, Droffo.

Link to comment
Share on other sites

Where did you download Apache from? The builds provided by httpd.apache.org are incompatible with the windows builds of PHP from windows.php.net.

 

Instead you need to download Apache from apachelounge.com then from windows.php.net you should download a thread safe VC11 build of PHP.

 

Thank you very much! I had no idea that httpd.apache.org are incompatible! Insane! Thanks again. :)

Link to comment
Share on other sites

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.