Extension Can't Be Found But Why?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SMH

    Extension Can't Be Found But Why?


    Template Document Processor: PHP 5.1.6
    Server: Apache httpd 2.0.55 (Win32)
    Database Server: MySQL 5.0.26-community for Win32
    Operating System: Windows XP Pro SP2

    =======

    I just installed PHP and MySQL on my laptop for development purposes.

    The following directives are set in php.ini (Windows config file):

    extension=php_m ysqli.dll
    extension_dir = "c:\php\ext \"

    No other extension is set (for the time being).

    The Visible Problem:

    When Apache is (re)started, the following error alert appears:

    PHP Startup: Unable to load dynamic library
    'c:\php\ext\php _mysqli.dll' - The specified
    module could not be found.

    The following is true:

    1. PHP was installed in the path "c:\php" in Windows
    2. I virtually copied and pasted the "c:\php\ext " into the
    extension_dir directive within php.ini
    3. There is a file 'php_mysqli.dll ' within the 'ext' subdirectory
    also copied and pasted to avoid keyboard entry errors
    4. I comment out the 'extension=php_ mysqli.dll' and
    set another extension (=php_tidy.dll) that exists and there is
    no alert when Apache is re-started.
    5. The MySQL daemon (service) is running during all of this.

    Items 1-4 make what I am seeing appear odd and frustrating to me.

    What am I missing?
  • Andy Hassall

    #2
    Re: Extension Can't Be Found But Why?

    On Sun, 22 Oct 2006 17:52:44 GMT, SMH <smh@munged.add ress.comwrote:
    >Template Document Processor: PHP 5.1.6
    >Server: Apache httpd 2.0.55 (Win32)
    >Database Server: MySQL 5.0.26-community for Win32
    >Operating System: Windows XP Pro SP2
    >
    >=======
    >
    >I just installed PHP and MySQL on my laptop for development purposes.
    >
    >The following directives are set in php.ini (Windows config file):
    >
    extension=php_m ysqli.dll
    extension_dir = "c:\php\ext \"
    >
    >No other extension is set (for the time being).
    >
    >The Visible Problem:
    >
    >When Apache is (re)started, the following error alert appears:
    >
    PHP Startup: Unable to load dynamic library
    'c:\php\ext\php _mysqli.dll' - The specified
    module could not be found.
    This may not actually refer directly to the extension DLL - it could be the
    extension DLL in turn attempting to load the MySQL client DLL.

    Is the MySQL bin directory on the PATH (as seen from the Apache server
    process) so it can load libmysql.dll?

    --
    Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • SMH

      #3
      Re: Extension Can't Be Found But Why?

      Andy Hassall <andy@andyh.co. ukwrote in alt.php:
      On Sun, 22 Oct 2006 17:52:44 GMT, SMH <smh@munged.add ress.comwrote:
      >
      >>Template Document Processor: PHP 5.1.6
      >>Server: Apache httpd 2.0.55 (Win32)
      >>Database Server: MySQL 5.0.26-community for Win32
      >>Operating System: Windows XP Pro SP2
      >>
      >>=======
      >>
      >>I just installed PHP and MySQL on my laptop for development purposes.
      >>
      >>The following directives are set in php.ini (Windows config file):
      >>
      > extension=php_m ysqli.dll
      > extension_dir = "c:\php\ext \"
      >>
      >>No other extension is set (for the time being).
      >>
      >>The Visible Problem:
      >>
      >>When Apache is (re)started, the following error alert appears:
      >>
      > PHP Startup: Unable to load dynamic library
      > 'c:\php\ext\php _mysqli.dll' - The specified
      > module could not be found.
      >
      This may not actually refer directly to the extension DLL - it could
      be the
      extension DLL in turn attempting to load the MySQL client DLL.
      >
      Is the MySQL bin directory on the PATH (as seen from the Apache
      server
      process) so it can load libmysql.dll?
      I have copied the path below
      (Start->My Computer->Properties->Environment Variables->
      select Path->click Edit->copy from there & paste here):

      %SystemRoot%\sy stem32;%SystemR oot%;%SystemRoo t%\System32\Wbe m;
      C:\Program Files\ATI Technologies\AT I Control Panel;C:\MassLy nx\;
      C:\Program Files\QuickTime \QTSystem\;C:\M ySQL\MySQL Server 5.0\bin;C:\PHP


      Also, the environment variable 'PHPRC' is set to "C:\PHP" and the user
      environment variable has 'PATH' with value 'C:\PHP'


      Why would PHP want to link with libmysql.dll? Is it an API for processes
      wanting to interact with the MySQL daemon/server?

      Comment

      • Jerry Stuckle

        #4
        Re: Extension Can't Be Found But Why?

        SMH wrote:
        Andy Hassall <andy@andyh.co. ukwrote in alt.php:
        >
        >
        >>On Sun, 22 Oct 2006 17:52:44 GMT, SMH <smh@munged.add ress.comwrote:
        >>
        >>
        >>>Template Document Processor: PHP 5.1.6
        >>>Server: Apache httpd 2.0.55 (Win32)
        >>>Database Server: MySQL 5.0.26-community for Win32
        >>>Operating System: Windows XP Pro SP2
        >>>
        >>>=======
        >>>
        >>>I just installed PHP and MySQL on my laptop for development purposes.
        >>>
        >>>The following directives are set in php.ini (Windows config file):
        >>>
        >> extension=php_m ysqli.dll
        >> extension_dir = "c:\php\ext \"
        >>>
        >>>No other extension is set (for the time being).
        >>>
        >>>The Visible Problem:
        >>>
        >>>When Apache is (re)started, the following error alert appears:
        >>>
        >> PHP Startup: Unable to load dynamic library
        >> 'c:\php\ext\php _mysqli.dll' - The specified
        >> module could not be found.
        >>
        >This may not actually refer directly to the extension DLL - it could
        >be the
        >>extension DLL in turn attempting to load the MySQL client DLL.
        >>
        >Is the MySQL bin directory on the PATH (as seen from the Apache
        >server
        >>process) so it can load libmysql.dll?
        >
        >
        I have copied the path below
        (Start->My Computer->Properties->Environment Variables->
        select Path->click Edit->copy from there & paste here):
        >
        %SystemRoot%\sy stem32;%SystemR oot%;%SystemRoo t%\System32\Wbe m;
        C:\Program Files\ATI Technologies\AT I Control Panel;C:\MassLy nx\;
        C:\Program Files\QuickTime \QTSystem\;C:\M ySQL\MySQL Server 5.0\bin;C:\PHP
        >
        >
        Also, the environment variable 'PHPRC' is set to "C:\PHP" and the user
        environment variable has 'PATH' with value 'C:\PHP'
        >
        >
        Why would PHP want to link with libmysql.dll? Is it an API for processes
        wanting to interact with the MySQL daemon/server?
        ???

        Maybe because you told it to load the mysqli extension? And just maybe
        that extension, since it calls mysql, needs access to the mysql libraries?

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        Working...