SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict melchiorus's Avatar
    Join Date
    Jun 2004
    Location
    Indiana
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cannot load extensions

    I've been using PHP for a long time now on my Windows XP Pro machine and had little problems. Today, I needed to enable a new extension (php_domxml.dll) so I just went into my php.ini and uncommented that line. I restarted apache, however, and got this error:

    Warning
    Unknown(): Unable to load dynamic library 'C:/PHP/extensions/php_domxml.dll' - The specified module could not be found.
    Right off the bat I figured it was a typo or something, but I triple checked all my path names and everything, everything is correct. What is really strange is that I can load some extensions and not others.

    In my php.ini file:

    Code:
    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = "C:/PHP/extensions/"
    
    ...
    
    ;Windows Extensions
    ;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
    ;
    ;extension=php_bz2.dll
    ;extension=php_cpdf.dll
    ;extension=php_crack.dll
    ;extension=php_curl.dll
    ;extension=php_db.dll
    ;extension=php_dba.dll
    ;extension=php_dbase.dll
    ;extension=php_dbx.dll
    extension=php_domxml.dll
    ;extension=php_exif.dll
    ;extension=php_fdf.dll
    ;extension=php_filepro.dll
    extension=php_gd2.dll
    ;extension=php_gettext.dll
    ;extension=php_hyperwave.dll
    ;extension=php_iconv.dll
    ;extension=php_ifx.dll
    ;extension=php_iisfunc.dll
    ;extension=php_imap.dll
    ;extension=php_interbase.dll
    ;extension=php_java.dll
    ;extension=php_ldap.dll
    ;extension=php_mbstring.dll
    ;extension=php_mcrypt.dll
    ;extension=php_mhash.dll
    extension=php_mime_magic.dll
    ;extension=php_ming.dll
    ;extension=php_mssql.dll
    ;extension=php_msql.dll
    ;extension=php_oci8.dll
    ;extension=php_openssl.dll
    ;extension=php_oracle.dll
    ;extension=php_pdf.dll
    ;extension=php_pgsql.dll
    ;extension=php_printer.dll
    ;extension=php_shmop.dll
    ;extension=php_snmp.dll
    ;extension=php_sockets.dll
    ;extension=php_sybase_ct.dll
    ;extension=php_w32api.dll
    ;extension=php_xmlrpc.dll
    ;extension=php_xslt.dll
    ;extension=php_yaz.dll
    ;extension=php_zip.dll
    The directory C:\PHP\extensions does exist and the file php_domxml.dll is sitting right there. I've tried copying that extension to my C:\WINDOWS\System32 directory (just incase Windows is being stupid again) but it still did not work. Does anyone have the slightest clue what's going on and how to fix it? I'm running PHP 4.3.11 and Apache 2.0.
    -Melchior (Stephen Craton)

  2. #2
    SitePoint Member
    Join Date
    May 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    Quote Originally Posted by melchiorus
    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = "C:/PHP/extensions/"
    try changing that to

    Code:
    extension_dir = "C:\PHP\extensions"
    hope that will help

  3. #3
    SitePoint Zealot suro's Avatar
    Join Date
    Jan 2005
    Posts
    155
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And remember that in many cases to be able to load one extension you may need to load another one.

  4. #4
    SitePoint Addict melchiorus's Avatar
    Join Date
    Jun 2004
    Location
    Indiana
    Posts
    283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the help. Changing the path to using backward slashes didn't work, but the second post about needing other dependencies got me searching and I found the answer.

    Just for anyone else experience similar issues sometime, here's what I found:

    http://bugs.php.net/bug.php?id=21245

    The problem was that I started out with the windows installer version of
    PHP 4.3.0 and then just copied the libxml2 and php_domxml from the
    windows4.3.0.zip file to their locations. I completely forgot to copy
    the other DLL's from the php_install_dir/dlls/ folder to
    windows/system32. This solved the problem.
    In a nutshell, copy everything from X:\PHP\dlls to X:\WINDOWS\System 32.

    Thanks again for all the help.
    -Melchior (Stephen Craton)

  5. #5
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,479
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Cool

    Quote Originally Posted by Greeg
    try changing that to

    Code:
    extension_dir = "C:\PHP\extensions"
    hope that will help
    you'll have to escape backslashes then, you can't use them as you suggested!! However, windows can understand both back-slashes & forward-slashes, so its not that issue!!!
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - Photo Blog - Personal Blog - Dev Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!


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
  •