Solving the PHP Startup: Unable to load dynamic library bug
Tech-Today

Solving the PHP Startup: Unable to load dynamic library bug


Okay first I'm no expert in apache or php but I guess writing about this bug might help someone. Yes I've installed perhaps tens of times apache php mysql, but everytime I did I encountered several errors, like the error defined above. Well first it was annoying but after some time you'll get used to it.

I'm using windows so I'm using the php's thread safe version: php-5.3.5-Win32-VC9-x86

Ok so how did we caught this error? By starting any php application that uses the mysql library, most often is the phpmyadmin tool. To see more information about the error please refer to you apache logs: APACHE_INSTALL_FOLDER\logs. And you can see a bunch of errors like:
<b>Unknown</b> on line <b>0</b><br />
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\php_pdo_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'C:\php\php_pdo_mysql.dll' - The specified module could not be found.

So how did I solve this issue:
1. There are times when you're missing some required dlls, so download this tool and it will help you: http://www.dependencywalker.com/. Open a dll and you will see if it's missing one of its dependency. As for me I've downloaded the following DLL:
gpsvc.dll, ieshims.dll, and sysntfy.dll. Usually I put this dlls in c:\lib and add this directory in system path of windows.

2.) And another important note check if your extension directory in php.ini is set, must be: extension_dir = "PHP_INSTALL_FOLDER\ext"

And that's it :-D.

You can look at this URL if you haven't setup your machine:
http://czetsuya-tech.blogspot.com/2010/10/apache-php-mysql-setup.html




- Web Development
WordpressConfigure Custom Wordpress PermalinkZencartHow to add a customize product admin fields in zencart by editing/adding extra codesJoomlaHow to install/setup/configure joomla to run in a xampp setup. This avoids the technical detail of manually installing...

- Phpmyadmin - The Connection Was Reset . The Connection To The Server Was Reset While The Page Was Loading
Error: The connection was reset The connection to the server was reset while the page was loading. * The site could be temporarily unavailable or too busy. Try again in a few moments. * If you are unable to load any pages, check your computer's...

- Apache Php Mysql Setup
Everytime I setup a new unit I have to set the following up and it takes time. So I'm writing a walkthrough and hopefully I don't need to debug :-D. Before we begin you must download and install/extract the following: 1.) apache - http://httpd.apache.org/download.cgi...

- Unable To Load Dynamic Library Php_mysql, Php_pgsql, Php_mcrypt
This problems are often encountered on new php installation. Solution: 1.) Add these lines to httpd.conf PHPIniDir "C:/php-5.2.10" LoadFile "C:/php-5.2.10/php5ts.dll" LoadModule php5_module "C:/php-5.2.10/php5apache2_2.dll" AddType application/x-httpd-php...

- Unable To Load Mcryt, Pdo, Curl In Windows Apache Server
I encountered this errors in setting up a Magento store and playing I've found the solutions and now I'm sharing it In your php.ini file (could be in apache/bin or php installation folder - depending on your installation). Uncomment the following...



Tech-Today








.