3

Apache and PHP Error… Faulting module name: php5ts.dll

Apache and PHP5

If you’ve just installed Apache 2.2 and PHP 5.3.1, and you’ve found this post, you may be perplexed by the following error as seen in your system logs:

Faulting application name: httpd.exe, version: 2.2.11.0, time stamp: 0x493f5d44
Faulting module name: php5ts.dll, version: 5.3.1.0, time stamp: 0x4b051b35
Exception code: 0xc0000005
Fault offset: 0x000e618c
Faulting process id: 0xbb8
Faulting application start time: 0x01ca9b8df97d87c0
Faulting application path: C:\bin\apache\bin\httpd.exe
Faulting module path: C:\bin\php\php5ts.dll

Apache seems to start fine without PHP enabled (commenting out the PHP lines at the bottom of your httpd.conf file), but with PHP enabled it doesn’t start and you get the above log entry in your system logs.

The Solution

If you are using the MSI installer for PHP, by default the installer seems to enable MSSQL. Disabling this extension should fix all your woes.

If you are still having issues, here are some things to check:

  1. Make sure Apache CAN start without PHP enabled.
  2. Make sure PHP is set in your PATH environment variable.
  3. Make sure you downloaded the correct version of PHP for your system (basically VC9 for IIS or VC6 for Apache).

If you are in need of the MSSQL extension, your issue maybe that you do not have a certain DLL installed (ntwdblib.dll). I’m a MySQL user myself, so I’m not going to go into details other than: here is a quick reference that might help (good luck).

Related posts

  1. Running PHP4 and PHP5 in Parallel, The Easy Way

{ 3 comments… read them below or add one }

icehan February 8, 2010 at 9:05 pm

Thank you very much.
I solved the problem.

Dave February 17, 2010 at 6:38 am

I’ve been puzzling over this for a day or so. Thanks for posting this.

Jennifer May 31, 2010 at 11:33 am

Wow, thanks! Fixed it!

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<pre lang="" line="" escaped="">

Previous post:

Next post: