PHP Startup:Unable to load dynamic library my_sql.dll

Trouble during PacsOne Server installations
Post Reply
JEFFWOLF
Posts:13
Joined:Wed Feb 23, 2005 4:52 pm
PHP Startup:Unable to load dynamic library my_sql.dll

Post by JEFFWOLF » Wed Feb 23, 2005 5:01 pm

Warning
PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysql.dll' - The specified procedure could not be found.

Also the php_imagick.dll module could not be found.

I have this set...
extension_dir = c:\php\ext

Other extensions such as php_bz2.dll load fine

php 5.0.3, apache 2.0.52, mysql 4.0.23

Any pointer would be appreciated
Jeff Wolf

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Wed Feb 23, 2005 5:48 pm

For the MySQL PHP extension problem, there is a dependent library libMysql.dlll that comes with your PHP distribution. You can try copying it to the same folder where all the PHP extensions are located (c:\php\ext in your setup), or the Windows %SYSTEM% folder (C:\Windows\system32)

For the ImageMagick PHP extension problem, if you've downloaded any PacsOne Server older than version 2.1.3, you will need to download a new ImageMagick PHP extension for PHP 5.0.3 since the Zend API version has changed in that version:

http://www.pacsone.net/php5_imagick.dll

The last thing to check is whether you have copied the above 2 DLLs into your PHP extension folder c:\php\ext .

Guest

Problem: PHP Startup: Unable to load dynamic library 'C:\PHP

Post by Guest » Wed May 25, 2005 5:52 am

I am getting the same problem as under:
PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysql.dll' - The specified procedure could not be found.

Also the php_imagick.dll module could not be found.

I tried anc copy libmysql.dll in the ext folder but did not help. I can see the php_mysql.dll is present in the folder but system still gives the problem. Please let me know what may be the solution.

Jonathan
Posts:184
Joined:Mon Mar 22, 2004 11:52 am
Location:The Netherlands
Contact:

Re: Problem: PHP Startup: Unable to load dynamic library 'C:

Post by Jonathan » Wed May 25, 2005 7:12 am

Guest wrote:I am getting the same problem as under:
PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysql.dll' - The specified procedure could not be found.

Also the php_imagick.dll module could not be found.

I tried anc copy libmysql.dll in the ext folder but did not help. I can see the php_mysql.dll is present in the folder but system still gives the problem. Please let me know what may be the solution.
Did you specify the path to the xet dir with '\' or with '/'. The latter is the correct one as the first is used by php as an escape charachter. Maybe inserting '\\' for every '\' will also work but I have not tested that.

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Re: Problem: PHP Startup: Unable to load dynamic library 'C:

Post by pacsone » Wed May 25, 2005 11:50 am

Guest wrote: PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysql.dll' - The specified procedure could not be found.
Depending on which PHP version you've installed, you may have to copy the libmysql.dll under your PHP installation directory to the Windows System folder, e.g., C:\Windows\system32\.
Guest wrote: Also the php_imagick.dll module could not be found.
php_imagick.dll need to be copied manually from the php sub-folder where PacsOne Server is installed to the extension directory where your PHP is installed, e.g., C:\PHP\ext\ in your case above.

Guest

Problem: PHP Startup: Unable to load dynamic library 'C:\PHP

Post by Guest » Wed May 25, 2005 5:31 pm

Thanks for your response. I made some progress. Now I am not getting any error for php_mysql.dll after copy into system and system32 folder.
But I am still getting error for php5_imagick.dll not found even after copying as per your instruction below:
php_imagick.dll need to be copied manually from the php sub-folder where PacsOne Server is installed to the extension directory where your PHP is installed, e.g., C:\PHP\ext\ in your case above.
I can see file php_imagick is still there in the extenstion folder which I copied from the php folder of Pacsone php folder. Please help.

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Wed May 25, 2005 8:17 pm

Which DLL did you configure in your PHP.INI file: php_imagick.dll or php5_imagick.dll?

The former is for PHP 4.x while the latter is for PHP 5.x. Whichever DLL you configure in your PHP.INI file, you need to copy it to your PHP extension directory, e.g., C:\PHP\ext\ in your case.

Guest

Installation Help

Post by Guest » Wed May 25, 2005 11:30 pm

Thanks for response. I copied php5_imagick.dll in d:\php\ext\ folder because I am using php5 not php4. I can see the file. Please help. Thanks.

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Fri May 27, 2005 2:54 am

Where is your PHP installed?

From your previous posts, I saw one post referring to C:\php\ext\ and another referring to d:\php\ext\.

Once again, you need to copy the php5_imagick.dll to whatever PHP extension directory configured as extension_dir variable in your PHP.INI file.

cyberwilly

php5_imagick.dll link download

Post by cyberwilly » Thu Jun 30, 2005 12:20 am

pacsone wrote:For the MySQL PHP extension problem, there is a dependent library libMysql.dlll that comes with your PHP distribution. You can try copying it to the same folder where all the PHP extensions are located (c:\php\ext in your setup), or the Windows %SYSTEM% folder (C:\Windows\system32)

For the ImageMagick PHP extension problem, if you've downloaded any PacsOne Server older than version 2.1.3, you will need to download a new ImageMagick PHP extension for PHP 5.0.3 since the Zend API version has changed in that version:

http://www.pacsone.net/php5_imagick.dll

The last thing to check is whether you have copied the above 2 DLLs into your PHP extension folder c:\php\ext .


The previous link does not work and I cannot find php5_imagick.dll under the PacsOne/PHP/ folder. Where can I get this file??

Currently I have tried with php_imagick.dll and get the above mentioned error. I am using PHP 5.0.4, Apache 2.0.54 and MySql 4.0.24. Any suggestions???

Thanks

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Thu Jun 30, 2005 3:12 am

php5_imagick.dll is installed under the php sub-folder where PacsOne Server Premium Edition is installed.

If you've installed PHP 5.0.x, you must use the php5_imagick.dll, because the other DLL: php_imagick.dll is for PHP 4.x and will not work for PHP 5.0.x.

Post Reply