SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Evangelist Jedi007's Avatar
    Join Date
    Aug 2005
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    really really annoying php/mysql/apache problem

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


    I'm getting so annoyed with this, i'm 100% sure thats the right directory for the dll, i've checked it multiple times, i checked every letter, here's a screenshot of me with the right directory.

    http://www.jedi007.com/myannoyingscreenshot.jpg

  2. #2
    SitePoint Member mike@graniteappl's Avatar
    Join Date
    Nov 2005
    Location
    Navarre, FL
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got this same message over and over today! Then, I looked REALLY close at what I did... fixed it this way:

    When you enable the MySQL extension (module) so that PHP can communicate with MySQL, you have to remove the semicolon from the start of the php_mysql.dll line. (This is quoted from SitePoint's Build Your Own Database Driven Website..., page 7.)

    I thought I did it right, but then realized that the semicolon I removed was from php.msql.dll, which is just on top of php.mysql.dll. For me, it was a lack of noticing that I removed it from the wrong line.

  3. #3
    SitePoint Evangelist Jedi007's Avatar
    Join Date
    Aug 2005
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    for me its different :/
    I took off the semicolon off the right one:

    extension_dir = "C:/PHP/ext/"

    ...
    ;extension=php_ming.dll
    ;extension=php_mssql.dll
    ;extension=php_msql.dll
    extension=php_mysql.dll
    ;extension=php_oci8.dll
    ;extension=php_openssl.dll
    ;extension=php_oracle.dll
    ;extension=php_pdf.dll
    ...

  4. #4
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    UK
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Copy the libmysql.dll file into the main php directory, fixed the error for me when I set my laptop up.

  5. #5
    SitePoint Evangelist Jedi007's Avatar
    Join Date
    Aug 2005
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    main php directory, you mean usually C:\PHP? because its already there :/

  6. #6
    SitePoint Evangelist Daijoubu's Avatar
    Join Date
    Oct 2002
    Location
    Canada QC
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try looking in your apache error log, the message may explain more
    Apache may look into its directory, the extention directory or maybe elsewhere

    Try using FILEMON found in http://sysinternals.com and filter all open/read query made by apache*.exe
    Speed & scalability in mind...
    If you find my reply helpful, fell free to give me a point

  7. #7
    SitePoint Zealot
    Join Date
    Aug 2005
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you sure you don't have a corrupted php_mysql.dll file?

  8. #8
    SitePoint Evangelist
    Join Date
    Nov 2003
    Location
    Brisbane, Australia
    Posts
    408
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Copy the file libmysql.dll from the main php folder to \windows\system32 and the error goes away and the mysql functionality in PHP returns.

    Hope this helps

    mrmbarnes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •