• we are trying to get the php_printer.dll extension to work.
  • we run PHP 5.2.8 with Apache 2.2 on a windows XP platform.
  • When we start Apache it fails to load the extension with the following error
[pastacode lang=”php” manual=”PHP%20Warning%3A%20PHP%20Startup%3A%20Unable%20to%20load%20dynamic%20library%20’C%3A%5C%5CProgram%20Files%5C%5CPHP%5C%5Cext%5C%5Cphp_printer.dll’%20-%20The%20specified%20module%20could%20not%20be%20found.%5Cr%5Cn%20in%20Unknown%20on%20line%200″ message=”Php Code” highlight=”” provider=”manual”/] [ad type=”banner”]
  • we have searched long and hard for a solution and have found lots of posts regarding this but nothing has worked so far.
  • php.ini has “extension=php_printer.dll” and “extension_dir=”C:\Program Files\PHP\ext
  • The file is located in the Extension folder and we downloaded the file from www.dlldll.com/php_printer.dll_download.html
  • The file is 36Kb and dated 22.1.2004

  • Apache don’t understand php.ini relative paths in Windows Systems.
  • In PHP manual we have an How-to install Apache 2.x on Microsoft Windows. One of the comments suggests using absolute paths.
  • So, try changing the relative paths in your php.ini to absolute paths.
[pastacode lang=”php” manual=”extension_dir%3D%22C%3A%5Cfull%5Cpath%5Cto%5Cphp%5Cext%22%0A” message=”Php Code” highlight=”” provider=”manual”/]

  • Use absolute path:
[pastacode lang=”php” manual=”extension_dir%3D%22C%3A%5Cfull%5Cpath%5Chere%22%0A” message=”Php Code” highlight=”” provider=”manual”/]

  • Re: PHP Warning: PHP Startup: Unable to load dynamic library ‘c:/wamp/bin/php/php5.3.13/ext/php_ldap.dll‘ – The specified module could not be found.
  • The files are located in two places:
    \wamp\bin\apache\apache2.2.22\bin and \wamp\bin\php\php5.3.13.
  • Putting the two in the apache folder into the Windows path didn’t seem to work, so put the php5.3.13 into the path and rebooted the server and that seemed to work.
  • Although, we may have just needed to restart the server.

  • Run phpinfo(). Find line: Loaded Configuration File and look at extension_dir too.
  • If it is c:\php and it is not the folder you have your php installed in then open the loaded configuration file and edit the line.
[pastacode lang=”php” manual=”extension_dir%20%3D%20C%3A%5Cphp%0A%20%20%20%20%20%20%20%20%20%20%20%20%20to%20%0Aextension_dir%20%3D%20C%3A%5Cwamp%5Cbin%5Cphp%5Cphp5.4%5Cext%0A” message=”Php Code” highlight=”” provider=”manual”/]

[ad type=”banner”]

or something similar. Restart WAMP.

  • You should make sure libmysql.dll is installed on your computer, you can look for it under C:\Windows\System32 (in Windows 7, or the equivalent in other windows versions).
  • This is specified in the php manual. You can download libmysql.dll here. This bug took me quite some time to solve.

[mks_button size=”medium” title=”Download libmysql.dll” style=”rounded” url=”https://www.dllme.com/dll/files/libmysql_dll.html” target=”_blank” bg_color=”#1e73be” txt_color=”#FFFFFF” icon=”fa-arrow-down” icon_type=”fa” nofollow=”1″]

  • You need to install the following combination’s for better printing solution:
[pastacode lang=”php” manual=”PHP%205.2.6%0AMySQL%205.0.45%0AApache%202.2.9%0A” message=”” highlight=”” provider=”manual”/]

  • To run php_intl you also have to copy the icu*.dll files from the php folder to the \wamp\bin\apache\apachex.y.z\bin folder
  • With WampServer 2.5, this is done automatically by symbolic links.
  • You can reload the PHP version by Wampmanager-menu> PHP-> 5.5.12 although this version is validated. Symbolic links will be created again.

Categorized in: