Php dll load failed

Welcome to the Corner of Excellence

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
===========================
msvcr90.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 🙂

Share this:

Like this:

This entry was posted on January 19, 2010 at 1:18 pm and is filed under Miscellaneous. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

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

  1. Sai Says:
    January 26, 2010 at 7:23 pm Hi, 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:
    February 4, 2010 at 12:24 pm 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:
    July 23, 2010 at 4:58 am 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
    ===========================
    msvcr90.dll
  4. ekasiswanto Says:
    July 23, 2010 at 2:48 pm That’s strange, so what’s the content of your snapshot.txt ? Is it still having the SAME error ?
  5. Anonymous Says:
    July 7, 2011 at 2:31 am Just want to say thanks. I ran into the exact same situation!
  6. DXH Says:
    August 9, 2011 at 7:52 pm 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:
    September 3, 2011 at 6:16 am This is cool. I have been searching for the solutions everywhere. Now I got the real answer.
    Thank you so much.
  8. Anonymous Says:
    October 2, 2011 at 6:53 pm THANK YOU!!
    I spent an hour on this and finally found this.
  9. Anonymous Says:
    October 6, 2011 at 8:35 am Eka, you have saved my day! million thanks.
  10. Los Angeles CA no credit check apartment rentals Says:
    October 29, 2011 at 5:06 amLos 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:
    December 9, 2011 at 3:13 pmbobota accommodation… […]Why my php5apache2_2.dll can’t be Loaded ? « Welcome to the Corner of Excellence[…]…
  12. Krishnan Nair Says:
    January 4, 2012 at 5:57 pm 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:
    January 4, 2012 at 6:13 pm Sorry, i thought the problem got resolved, how ever, I am still facing the same issue
  14. Krishnan Nair Says:
    January 4, 2012 at 6:17 pm 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:
    January 5, 2012 at 11:32 pm have you tried another version of VC++ redistributable ? What’s the error message ?
  16. Jose. A Says:
    February 6, 2012 at 4:47 pm Men thanks a lot, you save me the day. What a piece of shit is windows. LOL
  17. Malcolm Says:
    March 22, 2012 at 6:51 pm 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:
    March 26, 2012 at 12:07 am what’s the exact error message ? Have you tried other version of php ?
  19. psd2magento Says:
    April 20, 2012 at 10:44 pm 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! Thanks!
  20. karnit Says:
    July 23, 2012 at 5:49 pm thank you
  21. anamaria Says:
    August 9, 2012 at 9:16 pm 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:
    August 9, 2012 at 11:59 pm so, what’s the error right now ? 🙂
  23. dpx.dll Says:
    July 21, 2014 at 7:04 pm 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:
    July 31, 2014 at 9:27 am 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:
    July 31, 2014 at 12:34 pm Thanks in support of sharing such a good thought, paragraph is nice,
    thats why i have read it fully
  26. Msvcp110.Dll . Says:
    July 31, 2014 at 12:44 pm Why people still make use of to read news papers when in this technological globe all is presented on net?
  27. Emily Says:
    January 1, 2015 at 11:35 pm 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:
    February 11, 2015 at 6:30 pm Its hard to find informative and precise information but here I noted

Источник

PHP Unable to Load Dynamic Library

How to resolve warning messages when loading dynamic libraries (DLL) (a.k.a extensions) under PHP on Windows.

Problem

  • php.exe — Unable To Locate Component
    This application has failed to start because php_mbstring.dll was not found. Re-installing the application may fix this problem.
  • Warning
    PHP Startup: Unable to load dynamic library ‘c:\Program Files\PHP\ext\php_exif.dll’ — The specified module could not be found.
  • php.exe — Entry Point Not Found
    The procedure entry point _ZOOM_scanset_display_term@16 could not be located in the dynamic link library yaz.dll.

Causes

The most common cause may be a misconfigured extension_dir setting in your php.ini.

You may also encounter the above errors if you enable all the extensions in PHP. The errors are generally caused by misconfigured extensions. Some extensions (e.g. Oracle) require additional setup, software, and support DLLs, which come from outside the main PHP installer.

You may have out-of-date extension DLLs in your extensions directory.

Some extensions may also have bugs that are causing warnings.

The PATH environment variable does not contain the PHP base install location.

IIS may not have been restarted since changes were made to php.ini.

You did not install the correct build of PHP.

The DLL is listed more than once in the php.ini file. (This may be caused by using the MSI installer.)

Solutions

You must configure extension_dir correctly to point to the folder with the DLL files. This setting is edited in your php.ini file. (How to find your php.ini)

Disable all unused DLLs. You can easily disable an extension by commenting-out the corresponding line from your php.ini file. (How to find your php.ini) Comment-out lines by placing a semi-colon at the beginning of the line.

Remove duplicate references to DLLs from your php.ini file.

Make sure you installed the correct version of PHP for your server configuration.

Visit the PHP For Windows Download Page and download the correct ZIP package by following the instructions on the PHP Windows Mannual Installation Steps page under «Selecting and downloading the PHP distribution package». Unzip the file into your PHP installation directory. For example, for PHP 5.2.x + IIS 6 + Windows Server 2003, you need to use the VC6 non-thread safe build. If you get the standard build from the main PHP download page, you will get errors.

If your DLLs versions are out-of-date or mismatched, make sure to download and install the latest Windows binary zip packages as described above.

These errors may also occur if you do not have the Windows PATH environment variable pointing to your base PHP install. In particular, for php_curl.dll, the Windows PATH environment variable must contain the location of the files libeay32.dll and ssleay32.dll. Furthermore, adequate permissions must be granted to those files (usually read permissions to IUSR_MachineName).

Try restarting IIS if you have made changes to php.ini.

If there are still warnings, then you must read the documentation for each enabled extension, and install and configure any necessary third-party software. For example, many database extensions, such as ODBC and Oracle, require third-party software. Look in the «Installation» section of the PHP documentation for the specific extension.

If that fails, try searching for bugs in bugs.php.net for the error message you encounter.

Notes

The MSI installer that comes with PHP 5.2.0 makes it very easy to configure PHP to load all the extensions. This means it is more likely for people to encounter the above issue.

Where is my PHP.ini file?

Go to «Start > Run. «, type in cmd and press «OK». Type php —ini and press «Enter». Look for the following line:

Loaded Configuration File: C:\Program Files\PHP\php.ini

The «Loaded Configuration File» setting tells you which php.ini file PHP is loading. php.ini is generally located in c:\program files\php , c:\windows , or c:\php .

Error Output of php.exe

The following was captured by running PHP CLI with «php -v >out.txt 2

Check out these 3 important facts about high-res images for Google Shopping, with an amazing before and after showing the difference a high-res image makes on your phone or other high-res device. Learn the latest tips on optimizing your Google Shopping product data feeds from your BigCommerce, Shopify, or other online store.

Created 2006-11-06, Last Modified 2011-07-24, © Shailesh N. Humbad
Disclaimer: This content is provided as-is. The information may be incorrect.

Источник

how to fix in IIS: PHP Warning: PHP Startup: Unable to load dynamic library ‘php_oci8.dll’ (tried: C:\php-7.4.33\ext\php_oci8.dll (Access is denied.)

In IIS with Oracle & php I have this on error log PHP:

PHP Warning: PHP Startup: Unable to load dynamic library ‘php_oci8.dll’ (tried: C:\php-7.4.33\ext\php_oci8.dll (Access is denied.)

I check on the net what I can do and nothing work.

Hi @JerryBE,
Please check if php_oci8.dll is available in C:\php-7.4.33\ext. Also, oci.dll is installed by oracle and php_oci8.dll is a PHP extension. Make sure oci.dll is available in your server’s path. If oci.dll is not present on your server, php_oci8.dll will fail to load.

Thanks for your answer, yes OCI.DLL in oracle and in php/ext I have the php*oci8_*19.dll are ok now the error is oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system — please check that PATH includes the directory with Oracle Instant Client libraries but I have the ORACLE_HOME=D:\Oracle\ora1970

Hi @JerryBE,
You can check that the directory containing the Oracle Instant Client libraries is in your system’s PATH environment variable by running the command prompt below. This will show you the list of directories that are currently included in your PATH. Make sure that the directory containing the Oracle Instant Client libraries is listed there. Also note that the version of the Oracle Instant Client library needs to match the version of Oracle you are connecting to.

Источник

Оцените статью