0
Thanks

A few words of thanks would be greatly appreciated.

Unable to load dynamic library '/usr/lib/php4/20020429/mysql.so







You get a message like following following an update to PHP:

Unable to load dynamic library '/usr/lib/php4/20020429/gd2.so' - /usr/lib/php4/20020429/gd2.so: cannot open shared object file: No such file or directory in Unknown on line 0


Unable to load dynamic library '/usr/lib/php4/20020429/mysql.so' - /usr/lib/php4/20020429/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

The problem is due to the fact that the reference library has changed the directory. solve this, simply edit the php.ini file, find the section extension_dir and to define the new path, for example :

extension_dir = /usr/lib/php4/20050606



Another solution for Linux/Unix is to create a link using the name of the new directory using the command ln -s!
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Unable to load dynamic library '/usr/lib/php4/20020429/mysql.so », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

0 Comments