سؤال

I am using Apache 2.2.25 with PHP5.4.17. I installed this on my own Windows 64bit machine and it worked fine without issues. Now I'm trying to install the same system on a new machine but when I change the Apache configuration to work with PHP, it won't start.

Here is the relevant part of httpd.conf:

#Line 130 below    
LoadModule php5_module "C:/PHP/php5apache2_2.dll"

AddType application/x-httpd-php .php
PHPIniDir "C:/PHP"

This is the error is Apache logs/error file:

httpd.exe: Syntax error on line 130 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/php/php5apache2_2.dll into server: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.  

[Mon Nov 11 21:19:37 2013] [warn] (OS 995)The I/O operation has been aborted because of either a thread exit or an application request.  : winnt_accept: Asynchronous AcceptEx failed.

I read up on the error and almost 99% of the solutions mentioned version compatibility but since this exact setup worked on another machine, I'm thinking it must be something else. Any help with how I can find the problem would be appreciated.

Update Since my colleague is doing this installation and I'm giving remote support, I just found out that his machine is actually "Windows Server 2008". I tried more research about it and many solutions included installing VC++ so I did but still no response.

Thanks

هل كانت مفيدة؟

المحلول

Since the installation environment "changed" from when I asked the question, I did try to install using different versions but it wasn't compatibility of Apache with PHP which I mentioned wasn't the case here but rather the Apache/PHP installation with the System.

I used Apache2.2.15 with PHP5.3.2 and the system was up and running. Thanks for the comments everyone.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top