Author |
|
ishfady
Joined: 17 Dec 2009 Posts: 4
|
Posted: Sat 03 Apr '10 11:52 Post subject: Having problem with Apache 2.2 and PHP 5.3.2 to get working |
|
|
Hi
I have windows XP pro with service pack 3 on machine.
I installed Apache 2.2 and tested, it's working fine.
And then I installed php 5.3.2.
When I start Apache, it doesn't start and not getting get following error.
"Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience."
But I don't get any error in the log fine.
After studing in detail, I found this enrty in httpd.conf
LoadModule php5_module "C:/php/php5apache2_2.dll"
But this file is already there in the folder.
In windows event log; I found this entry
Faulting application httpd.exe, version 2.2.14.0, faulting module php5ts.dll,
version 5.3.2, fault address 0x000e619a.
Please can someone help me with this problem. It is getting on my nerve. I can get my learning php work carry
forward.
many thank |
|
Back to top |
|
wm003
Joined: 24 Mar 2006 Posts: 88
|
Posted: Tue 06 Apr '10 6:49 Post subject: |
|
|
- Which PHP Version (TS or NTS) did you use?
->When using PHP as a ApacheModule (like you do when php5apache2_2.dll is specified in http.conf) you need the TS Version of PHP 5
- Which Compile Version of PHP do you use (VC6 or VC9)
-> If you use VC9 you might install the vc9 runtime dlls from microsoft
- Which Apacheversion do you use (from apachelounge or from apache.org)
-> You should use the VC9 Build of PHP when using apache from apachelounge and you should use the VC6 Build of PHP when using apache from apache.org |
|
Back to top |
|
acc427
Joined: 07 Apr 2010 Posts: 3
|
Posted: Wed 07 Apr '10 4:35 Post subject: I'm having same problem |
|
|
Installed httpd-2.2.15-win32-x86-openssl-0.9.8m-r2.msi from apache.org on Windows 2003 server. Downloaded php-5.3.2-nts-Win32-VC6-x86.zip and unziped to c:\data\php. Had to get php5apache2_2.dll from a Uniformserver distribution. Added teh appropriate LoadModule and get same errors. |
|
Back to top |
|
wm003
Joined: 24 Mar 2006 Posts: 88
|
Posted: Wed 07 Apr '10 7:22 Post subject: |
|
|
Try the ts-vc6 version of PHP. You are using php as an apache module so you need to use the ts-version.
if it still does not work, i suggest using the vc9 build of apache here from apachelounge. the php5apache2_2.dll is already provided there. You should also use the ts-VC9 build of PHP in this case. |
|
Back to top |
|
acc427
Joined: 07 Apr 2010 Posts: 3
|
Posted: Thu 08 Apr '10 4:39 Post subject: |
|
|
WM003,
Thanks for the suggestion. Idownloaded httpd-2.2.15-win32-x86-ssl.zip from apachelounge. Then downloaded php-5.3.2-nts-Win32-VC9-x86.zip and php5apache2.dll-php5.1.x.zip. I added c:\php to my path environment.
Bottom line: same problem:
>>> httpd.exe: Syntax error on line 129 of C:/Apache2/conf/httpd.conf: Cannot load C:/php/php5apache2.dll into server: The specified module could not be found. I can access it from the desktop.
Any ideas? |
|
Back to top |
|
wm003
Joined: 24 Mar 2006 Posts: 88
|
Posted: Thu 08 Apr '10 7:42 Post subject: |
|
|
Again: Use must use the TS-Version of PHP, not the NTS Version of PHP when using php as a apache module.
besides that: when using apache 2.2 you need to use php5apache2_2.dll (not php5apache2.dll)
Also: php5apache2.dll-php5.1.x.zip is for php 5.1 as the filename says. but you are using php 5.3 |
|
Back to top |
|
acc427
Joined: 07 Apr 2010 Posts: 3
|
Posted: Fri 09 Apr '10 1:44 Post subject: |
|
|
Sorry, I thoguht that might be a typo. The php site doesn't quite say which one is the TS version: php-5.2.13-Win32-VC6-x86.zip.
Works! Thanks for all the help. |
|
Back to top |
|