Jump to content

PHP LoadModules and Apache2.4


Droffo

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
https://forums.phpfreaks.com/topic/290887-php-loadmodules-and-apache24/
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.

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. :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.