PHP thinks existing extension files don't exist.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cheesecaker
    New Member
    • Feb 2007
    • 66

    PHP thinks existing extension files don't exist.

    For some reason, when PHP starts, it doesn't want to load some extensions that I KNOW are there. Here's the startup log:

    Code:
    [Thu Nov 22 17:34:46 2007] [notice] Parent: Received restart signal -- Restarting the server.
    [Thu Nov 22 17:34:46 2007] [notice] Child 5176: Exit event signaled. Child process is ending.
    [22-Nov-2007 17:34:47] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Apache2\php5\ext\php_exif.dll' - The specified module could not be found.
    
     in Unknown on line 0
    
    [22-Nov-2007 17:34:47] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Apache2\php5\ext\php_fdf.dll' - The specified module could not be found.
    
     in Unknown on line 0
    
    [22-Nov-2007 17:34:47] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Apache2\php5\ext\php_interbase.dll' - The specified module could not be found.
    
     in Unknown on line 0
    
    [22-Nov-2007 17:34:47] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Apache2\php5\ext\php_mcrypt.dll' - The specified module could not be found.
    
     in Unknown on line 0
    
    [22-Nov-2007 17:34:47] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Apache2\php5\ext\php_mhash.dll' - The specified module could not be found.
    
     in Unknown on line 0
    
    [Thu Nov 22 17:34:47 2007] [notice] Apache/2.2.6 (Win32) mod_ssl/2.2.6 OpenSSL/0.9.8g PHP/5.2.5 configured -- resuming normal operations
    [Thu Nov 22 17:34:47 2007] [notice] Server built: Sep 25 2007 20:19:40
    [Thu Nov 22 17:34:47 2007] [notice] Parent: Created child process 5496
    [Thu Nov 22 17:34:47 2007] [notice] Child 5176: Released the start mutex
    [22-Nov-2007 17:34:48] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Apache2\php5\ext\php_exif.dll' - The specified module could not be found.
    
     in Unknown on line 0
    
    [22-Nov-2007 17:34:48] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Apache2\php5\ext\php_fdf.dll' - The specified module could not be found.
    
     in Unknown on line 0
    
    [22-Nov-2007 17:34:48] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Apache2\php5\ext\php_interbase.dll' - The specified module could not be found.
    
     in Unknown on line 0
    
    [22-Nov-2007 17:34:48] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Apache2\php5\ext\php_mcrypt.dll' - The specified module could not be found.
    
     in Unknown on line 0
    
    [22-Nov-2007 17:34:48] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Apache2\php5\ext\php_mhash.dll' - The specified module could not be found.
    
     in Unknown on line 0
    
    [Thu Nov 22 17:34:48 2007] [notice] Child 5496: Child process is running
    [Thu Nov 22 17:34:48 2007] [notice] Child 5496: Acquired the start mutex.
    [Thu Nov 22 17:34:48 2007] [notice] Child 5496: Starting 250 worker threads.
    [Thu Nov 22 17:34:48 2007] [notice] Child 5496: Starting thread to listen on port 443.
    [Thu Nov 22 17:34:48 2007] [notice] Child 5496: Starting thread to listen on port 8080.
    [Thu Nov 22 17:34:48 2007] [notice] Child 5176: Waiting for 250 worker threads to exit.
    [Thu Nov 22 17:34:48 2007] [notice] Child 5176: All worker threads have exited.
    [Thu Nov 22 17:34:49 2007] [notice] Child 5176: Child process is exiting
    And as you can see, all the extension files required are here:
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi.

    Could you show us the 'extension_path ' directive, and the module list from your php.ini?

    You could also try using either double back-slashes in the path '\\' or a forward-slash '/'. Don't know if that really matters but who knows :)

    Comment

    • cheesecaker
      New Member
      • Feb 2007
      • 66

      #3
      Actually, I figured it out, I had forgotten to put a my PHP directory in my PATH variable. PHP searches for certain DLL files found in the root PHP directory, which it can't find unless you've got it in the PATH variable.

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        Ahh. I always forget that to :)

        Glad you got it all worked out.

        Comment

        Working...