Why my php5apache2_2.dll can’t be Loaded ?

In the course of setting the PHP and Apache server in one of my client’s server box, upon readying the PHP and Apache installation, afer firing the Apache server executable (httpd.exe), I was faced with this show stopper :

“Cannot load C:/PHP/php5apache2_2.dll into server: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem.”

As far as I know, there are no requirement for installing the PHP directory, I just extract the zip file to the C:\PHP directory, performing necessary modifications to the PHP.INI file.

As for the apache, the only requirement is performing the setup, and then modify the httpd.conf file so it can load the php5apache2_2.dll in order to execute php page requests.

This is one of the many kinds of misleading error message(s) that will haunts you and requiring you spends many hours try to resolve this error.

After spend a couple of hours tinkering with PHP and Apache files, the clue I sought for is in the snapshot.txt in my C:\PHP directory.

This file contains important information about the dependencies of the DLL for php5apache2_2.dll in order to be working properly.

I realized that one of the missing dependencies in that server box is msvcr90.dll :

Dependency information:
Module: php5apache2_2.dll

The above file is VC++ 2008 runtime, and can be installed using VC++ 2008 redistributable package (x86) file (vcredist_x86.exe).

After installing this redistributable package, the error is now gone peacefully 🙂


28 Responses to “Why my php5apache2_2.dll can’t be Loaded ?”

  1. Sai Says:


    I was also struggling with this problem for long time. Thank god I saw your solution. Could you tell me how did you found the solution? Thanks a lot.

  2. Eka Says:

    I can say that it’s using the instict 🙂 Somehow I managed to see the snapshot.txt and there’s dependency information, after I compare the successful machine to the failure one, this file is missing.

  3. Komala Says:

    I followed above steps.. That seem to have not solved the problem. Am still getting the same error. Any other suggestions? Btw, my snapshot.txt file did not have the following..

    Module: php5apache2_2.dll

  4. ekasiswanto Says:

    That’s strange, so what’s the content of your snapshot.txt ? Is it still having the SAME error ?

  5. Anonymous Says:

    Just want to say thanks. I ran into the exact same situation!

  6. DXH Says:

    Make sure you are installing the 2008 redistributable. Just saying. I installed 2010 and wondered why the hell it doesn’t work…

  7. Anonymous Says:

    This is cool. I have been searching for the solutions everywhere. Now I got the real answer.
    Thank you so much.

  8. Anonymous Says:

    I spent an hour on this and finally found this.

  9. Anonymous Says:

    Eka, you have saved my day! million thanks!!!!

  10. Los Angeles CA no credit check apartment rentals Says:

    Los Angeles CA no credit check apartment rentals…

    […]Why my php5apache2_2.dll can’t be Loaded ? « Welcome to the Corner of Excellence[…]…

  11. bobota accommodation Says:

    bobota accommodation…

    […]Why my php5apache2_2.dll can’t be Loaded ? « Welcome to the Corner of Excellence[…]…

  12. Krishnan Nair Says:

    Thank you so much… Brilliant solution! I had to restart the windows after installing 2008 redistributable package (x86) file (vcredist_x86.exe) to resolve the issue.

  13. Krishnan Nair Says:

    Sorry, i thought the problem got resolved, how ever, I am still facing the same issue

  14. Krishnan Nair Says:

    Mine is Windows XP, is there any thing different I need to do. Also, I did not find snapshot.txt in my C:\PHP directory. I am using Apache (httpd-2.0.64-win32-x86-no_ssl.msi) and php-5.3.8-Win32-VC9-x86.msi

  15. ekasiswanto Says:

    have you tried another version of VC++ redistributable ? What’s the error message ?

  16. Jose. A Says:

    Men thanks a lot, you save me the day!!!!!! What a piece of shit is windows. LOL

  17. Malcolm Says:

    I have the same problem, but there is no any file snapshot.txt
    i’m going banana trying to solve the issue.
    any suggestions?

  18. ekasiswanto Says:

    what’s the exact error message ? Have you tried other version of php ?

  19. psd2magento Says:

    I removed 2 folders. 1. php and 2. apache as well as all files resides in xampp directory, ie, apache_start.bat … etc

    And reinstall the apache via .exe and it worked perfectly. Resolved my issue!


  20. karnit Says:

    thank you

  21. anamaria Says:

    hi. still having the problem. installed an older version of the php, fixed the dll problem, but still cannot start the apache server 😦

  22. ekasiswanto Says:

    so, what’s the error right now ? 🙂

  23. dpx.dll Says:

    This piece of writing will assist the internet people for building up new
    weblog or even a blog from start to end.

  24. D3DCompiler_43.dll Says:

    Wow, that’s what I was exploring for, what
    a information! present here at this webpage, thanks
    admin of this site.

  25. msvcp100.dll Says:

    Thanks in support of sharing such a good thought, paragraph is nice,
    thats why i have read it fully

  26. Msvcp110.Dll ?????? Says:

    Why people still make use of to read news papers when in this technological globe all is presented on net?

  27. Emily Says:

    You post interesting content here. Your website deserves much
    bigger audience. It can go viral if you give it initial boost, i know very useful tool that can help you,
    simply type in google: svetsern traffic tips

  28. bhumishah Says:

    Its hard to find informative and precise information but here I noted

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: