DeveloperSide.NET Forums

DeveloperSide.NET => Web.Developer Server Suite Community Edition,
Public Support Forum => Topic started by: digby on November 29, 2005, 03:48:03 AM



Title: PHP Startup: Unable to load dynamic library
Post by: digby on November 29, 2005, 03:48:03 AM
I just installed the Suite and I got this error and I'm unable to install php scripts.

***PHP Startup: Unable to load dynamic library 'C:/www/php5/ext/php_mysqli.dll - The specified module could not be found.***

(I do have this .dll in the /ext folder.)

Any suggestion on how to fix this problem are most welcome.  Thank you.

Digby


Title: PHP Startup: Unable to load dynamic library
Post by: admin on November 29, 2005, 03:53:17 AM
Did you reboot?


Title: Yes, I rebooted
Post by: digby on November 29, 2005, 04:07:16 AM
yes, it will not let me run install.php from browser.  Always asked to pick program to open it.


Title: PHP Startup: Unable to load dynamic library
Post by: lazycat on November 29, 2005, 10:33:19 AM
I've just installed the Suite and got the same problem.

Also when I test phpMyAdmin I get:

cannot load mysqli extension;
please check PHP configuration


Title: PHP Startup: Unable to load dynamic library
Post by: lazycat on November 29, 2005, 11:15:17 AM
Ok... the solution is here (http://www.issociate.de/board/post/79893/PHP5_not_loading_mysql.dll_and_mysqli.dll.html):

Put the libmysql.dll files in the windows/system32/ directory. That fixed everything for me.


Title: PHP Startup: Unable to load dynamic library
Post by: admin on November 29, 2005, 03:56:50 PM
Also/or add 'C:/www/php5/ext/' to the PATH.  Its set under php.ini, but on some systems, its not taken it.


Title: PHP Startup: Unable to load dynamic library
Post by: admin on November 29, 2005, 04:35:16 PM
Also make sure that C:\www\mysql\bin and C:\www\php5 have actually been set under the System PATH.


Title: new problems now...Doh..FN...Doh
Post by: digby on November 29, 2005, 05:05:31 PM
I just cannot seem to get my php and mysql to work.  Everytime I try to install.php it says my php version does not support mysql.  I'm using php 5.

I have read everything I can find but still can't get it configured correctly.


Title: PHP Startup: Unable to load dynamic library
Post by: admin on November 29, 2005, 05:15:38 PM
Quote
Everytime I try to install.php it says my php version does not support mysql. I'm using php 5.


Edit php.ini (under C:\Windows\ or C:\WINNT\)
Uncomment line (remove ';')...
Quote

;extension=php_mysql.dll


Save file, restart system or stop/start Apache.


Title: Still not working
Post by: digby on November 29, 2005, 05:59:42 PM
Thank you for your help.  I did what you advised but no luck.  I have tried b2evolution,wordpress & nucleus all of which give me errors that it does not appear you have mysql availble or that php is not config for mysql.


Title: Re: Still not working
Post by: Jorge on November 29, 2005, 07:13:36 PM
Quote from: "digby"
Thank you for your help.  I did what you advised but no luck.  I have tried b2evolution,wordpress & nucleus all of which give me errors that it does not appear you have mysql availble or that php is not config for mysql.


you did restart the server right?


Title: I got it fixed
Post by: digby on November 29, 2005, 09:28:21 PM
I uninstalled everything and used a different combination package that uses a GUI to manage SQL,PHP,Apache2 & more.  Took no time to install and was able to install Nucleus, Wordpress and B2Evolution in lest than a half an hour without any errors.

Thanks to everyone who tried to help.


Title: PHP Startup: Unable to load dynamic library
Post by: admin on November 30, 2005, 09:42:40 PM
Digby, I deleted three of your posts in three different threads today -- where you spammed an advertisment for another package.

In those threads, in which you claim how hard it is to "fix [our] coding errors" and how easy it was to install 18 other add-ons to the other package: the solution was as simple as to uncomment a line and reboot -- the problem was fixed.

I have had other instances were individuals, that were associated with other packages, would come here and posts false information and problems -- afterwards they would post links to another package, to take advantage of our search engine page rank.

I do not know your intensions, and perhaps you did have problems and are now happy running another package -- but please don't bring up two week old threads were the user thanks me for the help and for fixing the problem.

I'm sorry that you have had a problem connecting php and mysql with other apps.  But if you look around this forum, you will find that just about every user that posted a problem, had myself and others post/work to solve that problem -- as long as that user kept coming back -- and just about every problem was given a solution.


Title: Give up on this sutie it will never work...
Post by: digby on November 30, 2005, 09:43:38 PM
[deleted]

I think this suite needs a lot of work done to it.

[deleted]

Note from admin: that other package uses PHP4.4, we use PHP5 -- again the solution was a line change.


Title: PHP Startup: Unable to load dynamic library
Post by: Jorge on November 30, 2005, 10:00:38 PM
there is always a small price to pay from being on the bleading edge,

Although with about 3 minutes of tweaking, i found out i liked PHP5 more.

I guess it depends on the willlingness to have a look at the manual and in the config giles.


Title: PHP Startup: Unable to load dynamic library
Post by: FeyD on December 20, 2005, 01:29:11 PM
It is clear that there are a number of people out there WITHOUT the basic knowledge to deal with the many solutions provided in the package this site offers.  I am one of those people who have enough knowledge to be dangerous but with a little work on my own I have resolved the issue reported in this thread and my server is up and running nicely.

It is clear that there are people out there that WHINE and MOAN at having to do any sort of THINKING on their own.  I am happy that this other package you are using is working for you but I wish to offer a word advice.

Being this suite is FREE and being you are clearly relying on the KINDNESS of others to assist you in the creation of your site it is just plain BAD MANNERS to post links to other packages much less state the package offered here requires "a lot of work be done".

I for one have had no issues and THANK all involved with this project.  The time and energy they put into this surely has made setting up my own server an easy task.  Also, the additional information and tips on the site are a welcome addition being I am one of those people who actually want to LEARN about the solution I am using and not just click an icon and complain when I have to roll up my sleeves and get my own hands a little dirty.

Thanks for letting me rant...


Title: uhmmm
Post by: geek101 on January 29, 2006, 02:23:08 PM
I have the same error:

Unable to load dynamic library 'C:/www/php5/ext/php_mysqli.dll - The specified module could not be found.

I did what you guys advised edited the php.ini file, removed the ";" to extension=php_mysql.dll

and then reboot

but when windows starts up that same error pops up.. "Unable to load dynamic library 'C:/www/php5/ext/php_mysqli.dll - The specified module could not be found."

I have installed the older version of this suite before with no errors.. I don't know what went wrong with my installation with this new version... PLease help.


Title: PHP Startup: Unable to load dynamic library
Post by: admin on January 29, 2006, 08:19:16 PM
http://forums.devside.net/viewtopic.php?t=384#4429 and the post right after it.

BTW, I do not think...
Quote

I did what you guys advised edited the php.ini file, removed the ";" to extension=php_mysql.dll
...was ever a/the solution.

You either have a dll like libmysql.dll under one of your systemroot dirs, and if thats not it, just copy over php's libmysql.dll over.

Just follow those two posts in the link.


Title: unable to load dll solution
Post by: Baloo on February 14, 2006, 08:33:07 PM
[Edited by Admin]

OK so it seems that every time I rebuild my Apache, PHP, MySQL development environment on a Windows box (currently XP Pro), I go through the same set of problems getting my extension dlls to load.  This thread popped up fairly high while googling “apache php startup unable to load” and didn’t really do much to solve my “PHP Startup: Unable to load dynamic library “ problem.  I finally got it all figured out and am I’m posting the following tips, all gleaned from a bit of trial and error and a more judicious reading of the install.txt file (as in reading beyond the Apache specific section).

[edit]: Being the administrator of this site, I've seen this problem a hundred times before...

First, you don’t need to copy your php.ini dir to the WINDOWS directory.  It just needs to be were you’ve told Apache to look for it in your httpd.conf file.

[edit]: You can use the "PHPIniDir" directive under httpd.conf, but it really is best to keep your ini files where they always were by default -- the system root directory.

Ditto for the dlls in your extensions directory and the extension_dir setting in your php.ini file.
You do need to copy (not move) the dlls in the main php folder to your WINDOWS/system32 folder.  This will get most of the commonly used extensions working.

[edit]: How about just specifing the extension directory under php.ini (correctly -- with an ending backslash and the right syntax), and adding the PHP DLL directory to the PATH?  Copying all those DLLs to your system32 directory is a _serious_ mistake.  One, they do not belong there.  Two, whats going to happen when you upgrade PHP and forget about all those old DLLs?  Thats how a lot of these problems get started.

Second, some of the extensions in the php.ini-recommended file require additional dlls that are not included in the download.  Some are also dependant on other extensions.

[edit]: Pehaps this was your problem, in that case you just need to uncomment the right extensions and read the right note about this -- which is included in both our PHP Guides.

The following is from the install.txt file included with php-5.1.2-Win32.zip:

hopefully this will save someone some time

Norm

  The following table describes some of the extensions available and
   required additional dlls.

   Table 2-1. PHP Extensions
   Extension Description Notes
   php_bz2.dll bzip2 compression functions None
   php_calendar.dll Calendar conversion functions Built in since PHP
   4.0.3
   php_cpdf.dll ClibPDF functions None
   php_crack.dll Crack functions None
   php_ctype.dll ctype family functions Built in since PHP 4.3.0
   php_curl.dll CURL, Client URL library functions Requires:
   libeay32.dll, ssleay32.dll (bundled)
   php_cybercash.dll Cybercash payment functions PHP <= 4.2.0
   php_db.dll DBM functions Deprecated. Use DBA instead (php_dba.dll)
   php_dba.dll DBA: DataBase (dbm-style) Abstraction layer functions None
   php_dbase.dll dBase functions None
   php_dbx.dll dbx functions
   php_domxml.dll DOM XML functions PHP <= 4.2.0 requires: libxml2.dll
   (bundled) PHP >= 4.3.0 requires: iconv.dll (bundled)
   php_dotnet.dll .NET functions PHP <= 4.1.1
   php_exif.dll EXIF functions php_mbstring.dll. And, php_exif.dll must
   be loaded after php_mbstring.dll in php.ini.
   php_fbsql.dll FrontBase functions PHP <= 4.2.0
   php_fdf.dll FDF: Forms Data Format functions. Requires: fdftk.dll
   (bundled)
   php_filepro.dll filePro functions Read-only access
   php_ftp.dll FTP functions Built-in since PHP 4.0.3
   php_gd.dll GD library image functions Removed in PHP 4.3.2. Also note
   that truecolor functions are not available in GD1, instead, use
   php_gd2.dll.
   php_gd2.dll GD library image functions GD2
   php_gettext.dll Gettext functions PHP <= 4.2.0 requires
   gnu_gettext.dll (bundled), PHP >= 4.2.3 requires libintl-1.dll,
   iconv.dll (bundled).
   php_hyperwave.dll HyperWave functions None
   php_iconv.dll ICONV characterset conversion Requires: iconv-1.3.dll
   (bundled), PHP >=4.2.1 iconv.dll
   php_ifx.dll Informix functions Requires: Informix libraries
   php_iisfunc.dll IIS management functions None
   php_imap.dll IMAP POP3 and NNTP functions None
   php_ingres.dll Ingres II functions Requires: Ingres II libraries
   php_interbase.dll InterBase functions Requires: gds32.dll (bundled)
   php_java.dll Java functions PHP <= 4.0.6 requires: jvm.dll (bundled)
   php_ldap.dll LDAP functions PHP <= 4.2.0 requires libsasl.dll
   (bundled), PHP >= 4.3.0 requires libeay32.dll, ssleay32.dll (bundled)
   php_mbstring.dll Multi-Byte String functions None
   php_mcrypt.dll Mcrypt Encryption functions Requires: libmcrypt.dll
   php_mhash.dll Mhash functions PHP >= 4.3.0 requires: libmhash.dll
   (bundled)
   php_mime_magic.dll Mimetype functions Requires: magic.mime (bundled)
   php_ming.dll Ming functions for Flash None
   php_msql.dll mSQL functions Requires: msql.dll (bundled)
   php_mssql.dll MSSQL functions Requires: ntwdblib.dll (bundled)
   php_mysql.dll MySQL functions PHP >= 5.0.0, requires libmysql.dll
   (bundled)
   php_mysqli.dll MySQLi functions PHP >= 5.0.0, requires libmysql.dll
   (libmysqli.dll in PHP <= 5.0.2) (bundled)
   php_oci8.dll Oracle 8 functions Requires: Oracle 8.1+ client libraries
   php_openssl.dll OpenSSL functions Requires: libeay32.dll (bundled)
   php_oracle.dll Oracle functions Requires: Oracle 7 client libraries
   php_overload.dll Object overloading functions Built in since PHP 4.3.0
   php_pdf.dll PDF functions None
   php_pgsql.dll PostgreSQL functions None
   php_printer.dll Printer functions None
   php_shmop.dll Shared Memory functions None
   php_snmp.dll SNMP get and walk functions NT only!
   php_soap.dll SOAP functions PHP >= 5.0.0
   php_sockets.dll Socket functions None
   php_sybase_ct.dll Sybase functions Requires: Sybase client libraries
   php_tidy.dll Tidy functions PHP >= 5.0.0
   php_tokenizer.dll Tokenizer functions Built in since PHP 4.3.0
   php_w32api.dll W32api functions None
   php_xmlrpc.dll XML-RPC functions PHP >= 4.2.1 requires: iconv.dll
   (bundled)
   php_xslt.dll XSLT functions PHP <= 4.2.0 requires sablot.dll,
   expat.dll (bundled). PHP >= 4.2.1 requires sablot.dll, expat.dll,
   iconv.dll (bundled).
   php_yaz.dll YAZ functions Requires: yaz.dll (bundled)
   php_zip.dll Zip File functions Read only access
   php_zlib.dll ZLib compression functions Built in since PHP 4.3.0

Note: For anyone else -- just read the metioned thread and our PHP Guide.


Title: Similar problem. Not solved yet
Post by: Stillwater on February 21, 2006, 05:05:09 PM
Hi I have a similar problem with loading three .DLL files: php_mbstring.dll, php_mysql.dll and php_mysqli.dll.

I did try several methods mentioned above (uncomment php_mysql; add /www/php5/ext to PATH; copy libmysql.dll to SYSTEM) but the problem persists when I do "net start apache2".

Any idea? Thanks!


Title: Problem solved
Post by: Stillwater on February 21, 2006, 06:29:36 PM
There was a typo. Thanks anyway!