Fix: PHP 5.2 and 5.3 crash Apache 2.2.14

December 21, 2009 - 5:25 am 18 Comments

Having just bought a new laptop, I went about installing Apache 2.2.14 and PHP 5.3.1 VC6 but quickly ran into problems when Apache flat out refused to load after PHP was installed.

The error Apache throws is “The requested operation has failed!”.

Apache crashes after installing PHP

Apache crashes after installing PHP


In event viewer, you will see something like:

Faulting application name: httpd.exe, version: 2.2.14.0, time stamp: 0×4ac181d6
Faulting module name: php5ts.dll, version: 5.3.1.0, time stamp: 0×4b051b35
Exception code: 0xc0000005
Fault offset: 0×000e618c
Faulting process id: 0xd90
Faulting application start time: 0×01ca81af664b1357
Faulting application path: C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin\httpd.exe
Faulting module path: C:\Program Files (x86)\PHP\php5ts.dll
Report Id: a40dce43-eda2-11de-9f0c-005056c00008

To cut a long story short, I went through each line of the php.ini file seeing which one was causing the problem. I narrowed it down to this extension:

[PHP_SYBASE_CT]
extension=php_sybase_ct.dll

Change to:

[PHP_SYBASE_CT]
;extension=php_sybase_ct.dll

Uncomment this extension by placing a semi colon in front, and Apache will load without any problem.

If you found this post helpful, leave a comment to let me know, thanks.

18 Responses to “Fix: PHP 5.2 and 5.3 crash Apache 2.2.14”

  1. Alejandro Gallo Says:

    Thanks It Worked

  2. Paul Says:

    Just did another installation of apache/php and found that extension=php_mssql.dll also causes a crash. comment it out to allow apache to run.

  3. Tom Says:

    Didn’t have the sybase extension installed, but removing the php_mssql.dll extension helped. Thank you :o )

  4. rjaszek Says:

    I had the same problem. PHP 5.2.12 + Apache 2.2.14: You just need to check wich extensions causing the problem -> just comment them out one by one and each time try to start apache. This way a solved my problem, and learned that not only extensions described above You need to desable – it depends on configuration of You system.

  5. Rahul Ashokayan Says:

    Thanks a lot. I had the same problem with 5.3.1 so thought of downloading 5.2.12 instead. But after reading about this here I am able to install PHP 5.3.1 and Apache 2.2.14 is starting without any problem.

  6. Paul Says:

    rjaszek: Yes, that is correct, thanks.
    Rahul: Glad it helped :)

  7. Dima Says:

    I installed PHP 5.2.12 and had to comment out the following lines:

    extension=php_fdf.dll
    extension=php_mcrypt.dll
    extension=php_mhash.dll
    extension=php_msql.dll
    extension=php_mysql.dll
    extension=php_mysqli.dll
    extension=php_oci8.dll
    extension=php_pdo_mysql.dll
    extension=php_pdo_oci.dll
    extension=php_pdo_oci8.dll
    extension=php_pdo_pgsql.dll
    extension=php_pdo_sqlite_external.dll
    extension=php_pgsql.dll
    extension=php_pspell.dll
    extension=php_sybase_ct.dll

    This is quite frustrating :(

  8. Paul Says:

    Dima, did it work after you commented out all of those?

  9. Dima Says:

    It did.
    But uncommenting any of these lines causes the error you described.

  10. David Says:

    I found problem initially with php 5.3.1 and then tried version 5.2.12 and getting same horrible behaviour where httpd.exe keeps going belly up.

    In my case I need ‘extension=php_mysql.dll’ for php application using mysql but that may be causing me to get intermittent errors like ‘Faulting application httpd.exe, version 2.2.14.0, faulting module php5ts.dll, version 5.2.12.12, fault address 0×0009b88d.

    Seems to be some kind of threading issue. The error log for apache shows:

    [Sun Jan 17 22:45:49 2010] [notice] Apache/2.2.14 (Win32) PHP/5.2.12 configured — resuming normal operations
    [Sun Jan 17 22:45:49 2010] [notice] Server built: Sep 28 2009 22:41:08
    [Sun Jan 17 22:45:49 2010] [notice] Parent: Created child process 1696
    [Sun Jan 17 22:45:49 2010] [notice] Child 1696: Child process is running
    [Sun Jan 17 22:45:49 2010] [notice] Child 1696: Acquired the start mutex.
    [Sun Jan 17 22:45:49 2010] [notice] Child 1696: Starting 64 worker threads.
    [Sun Jan 17 22:45:49 2010] [notice] Child 1696: Starting thread to listen on port 80.

    David

  11. Dara Says:

    Oh my god! I have been so frustrated trying to figure this out for weeks! *Bowing to Paul* Dear great master! Thank you!!!

    In my case it was
    [PHP_MSSQL]
    ;extension=php_mssql.dll

    I had to comment it out and now my Apache works!!!!!!!!!!!! A million thanks!!!

  12. xr Says:

    Hi! that sounds a good solution but in my php.ini file i can’t where the extensions are declared… is there any other file with these paths? i’ve installed php 5.3.1.
    thanks in advanced!

  13. Chris Says:

    Thanks so much! Here’s what I had to comment out:

    extension=php_mssql.dll
    extension=php_openssl.dll
    extension=php_pgsql.dll

  14. Ari Says:

    Thought I’d share my story since I think some people could benefit from it =)

    I have Apache version 2.2.14 and PHP version 5.13 (build date Nov 19 2009 10:16:45). I had the issue that after installing PHP (VC6) Apache wouldn’t start, but instead crash with an error (and asking me if I wanted to debug with Visual Studio =)

    What I did to fix this (since I had the same “problem” as xr here before me) was uncomment the following line in the php.ini file:

    ;extension_dir = “ext”

    (uncomment by removing the semi-colon of course =)

    Then everything worked like a charm, seems to me that this must be a bug, PHP has no way of knowing which one is the extension directory in the shipped version 5.13 of PHP. Hope this helps someone!

  15. Toro Says:

    In my case, this one.
    on 5.3.0 & 2.2.14 (both for x64)

    [PHP_ZIP]
    ;extension=php_zip.dll

  16. nifx28 Says:

    I install Apache 2.2.14 (win32-x86) incl. OpenSSL 0.9.8k & PHP 5.3.1 VC9 x86 Thread Safe with install options of all extensions enabled as Apache module.
    Here is the extension had to be comment out:
    ;extension=php_enchant.dll
    ;extension=php_oci8.dll
    ;extension=php_oci8_11g.dll
    ;extension=php_pdo_oci.dll
    and i also have MySQL 5.1.42 (win32) & IIS 5.1 installed.
    Maybe there’s a dependency issue that cause the problem, then you have to install the software that the extension required.
    PHP installer already says it’s not recommend to enable all additional extensions.

  17. Rares Says:

    Worked :)
    Tnx!

  18. Cupola Says:

    Ээээ биродарлар!!!
    Барака берсин!!!

    In my case also
    extension=php_mssql.dll

Leave a Reply