Droffo Posted September 6, 2014 Share Posted September 6, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/290887-php-loadmodules-and-apache24/ Share on other sites More sharing options...
Solution Ch0cu3r Posted September 6, 2014 Solution Share Posted September 6, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/290887-php-loadmodules-and-apache24/#findComment-1490132 Share on other sites More sharing options...
Droffo Posted September 6, 2014 Author Share Posted September 6, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/290887-php-loadmodules-and-apache24/#findComment-1490174 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.