Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Problem starting Apache after installing php |
|
Author |
|
ishfady
Joined: 17 Dec 2009 Posts: 4
|
Posted: Thu 17 Dec '09 16:10 Post subject: Problem starting Apache after installing php |
|
|
Hi
I have windows XP with service pack 3 machine.
I installed Apache 2.2 and tested working fine.
And then I installed php 5.3.1.
When I start Apache, it doesn't start and getting get following error in popup window.
"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.1.0, fault address 0x000e619a.
I tried with both version of PHP 5.3.1, VC6 x86 Non Thread Safe and VC6 x86 Thread Safe.
But still the same problem. I am getting off with PHP technolgy. I wasn't expecting
this complex to just to get Apache and PHP working. No wounder, why people move to microsoft product.
Please can someone help me with this problem.
many thank 
Last edited by ishfady on Fri 18 Dec '09 14:29; edited 4 times in total |
|
Back to top |
|
glsmith Moderator

Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 17 Dec '09 18:31 Post subject: |
|
|
> I installed Apache 2.2 and tested working fine.
Good, where did you get it from ... here or somewhere else (apache.org, etc.)? oh and Apache 2.2.what?
> And then I installed php 5.3.1.
OK
> But I don't get any error in the log fine.
No surprise, apache crashed before the log pipe was opened.
> LoadModule php5_module "C:/php/php5apache2_2.dll"
That is the proper module to load in Apache 2.2
> But this file is already there in the folder.
I hope so, Apache would say it could not find it if it wasn't, or was corrupted somehow.
> In windows event log; I found this entry
> Faulting application httpd.exe, version 2.2.14.0, faulting module php5ts.dll, version 5.3.1.0, fault address 0x000e619a.
Yes, if it doesn't show up in the log, the event viewer is the place to look.
My gut feeling is you have:
Apache from Apache.org (they're VC6)
A VC9 PHP Non-Thread Safe PHP from http://windows.php.net/download/
since unfortunatly that is the first set of links you come to on that download page.
When loading as a module you need a thread-safe version of PHP and it seems to work only if you match the VC versions with Apache & PHP.
Is my gut feeling correct? Mario is much better at php problems, but I know he is going to ask the same questions I asked above. |
|
Back to top |
|
bovcan
Joined: 15 Dec 2009 Posts: 19 Location: Slovenia
|
Posted: Fri 18 Dec '09 13:54 Post subject: |
|
|
I think I had the same problems with php 5.3.1.
when I add LoadModule php5_module "x:/php/php5apache2_2.dll" in httpd, Apache didn't start.
Now I have php 5.3.0 VC9 and it is working fine. |
|
Back to top |
|
aclu133
Joined: 20 Jan 2010 Posts: 1
|
Posted: Wed 20 Jan '10 16:30 Post subject: |
|
|
If running Apache gives HTTP server encountered error on httpd.exe error and crashes on windows
Then check
1. The VC version of installer (VC6 or VC9)
2. httpd.conf
See if these lines are there (modify your own path)
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
3. run php.exe -v on command prompt in PHP directory
Most likely it will say that ntwdblib.dll is missing.
Download the file to windows/system32
Last Resort
Install wampserver |
|
Back to top |
|
davidsc
Joined: 02 Aug 2007 Posts: 4
|
Posted: Thu 21 Jan '10 11:31 Post subject: Aoache 2.2.14, php and mysql 5.1 are not stable |
|
|
I have ntwdblib.dll in my php directory.
I had apache 2.2.14 and php 5.3.1 living together happily until I brought mysql 5.1 into the fray.
Started getting crashes of httpd.exe as per
Faulting application httpd.exe, version 2.2.14.0, faulting module php5ts.dll, version 5.3.1.0, fault address 0x000e618c.
when I try to start phpMyAdmin.
Went back to earlier version of php 5.2.12 but get the same thing happening.
I have downloaded v6 version of php.
There seems to be some kind of threading issue as from time to time I can start phpMyAdmin without this error occurring.
David |
|
Back to top |
|
davidsc
Joined: 02 Aug 2007 Posts: 4
|
Posted: Sun 24 Jan '10 13:25 Post subject: So where is the problem? |
|
|
Is the problem with Apache, php or mysql? I believe this is a bug but unsure where it should be raised. Who should have the responsibility for this problem which has been widely reported?
David
 |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Sun 24 Jan '10 17:50 Post subject: |
|
|
To get that error. Disable all extentions in php.ini and see which cashes.
For apache from apache.org as module only the se VC6 thread safe version. |
|
Back to top |
|
|
|
|
|
|