Extension Can't Be Found But Why?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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_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?

Re: Extension Can't Be Found But Why?

Quoted text here. Click to load it

 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.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

Re: Extension Can't Be Found But Why?

Quoted text here. Click to load it

I have copied the path below  
   (Start->My Computer->Properties->Environment Variables->
     select Path->click Edit->copy from there & paste here):

C:\Program Files\ATI Technologies\ATI Control Panel;C:\MassLynx\;
C:\Program Files\QuickTime\QTSystem\;C:\MySQL\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?

Re: Extension Can't Be Found But Why?

SMH wrote:
Quoted text here. Click to load it


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.

Site Timeline