[php] Apache/PHP cannot load module

Discussion in 'Web Design & Coding' started by Heeter, Dec 12, 2007.

  1. Heeter

    Heeter Overclocked Like A Mother

    Messages:
    2,732
    Hi all,

    I am having trouble loading my php modules, according to the apache error log.

    This is the errors in the log:

    Code:
    [Wed Dec 12 14:03:07 2007] [notice] Parent: Created child process 2968
    PHP Warning:  PHP Startup: Unable to load dynamic library '.\\ext\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '.\\ext\\php_gd2.dll' - The specified module could not be found.\r\n in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '.\\ext\\php_gettext.dll' - The specified module could not be found.\r\n in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '.\\ext\\php_imap.dll' - The specified module could not be found.\r\n in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '.\\ext\\php_openssl.dll' - The specified module could not be found.\r\n in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '.\\ext\\php_snmp.dll' - The specified module could not be found.\r\n in Unknown on line 0
    PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '.\\ext\\php_imagick.dll' - The specified module could not be found.\r\n in Unknown on line 0
    
    My question is: how do I get rid of the double backslashes appearing, cause I know thats what my problem is.

    Sever Setup:
    WinXPPro/Apache2.2.4/PHP5.2.1/MySQL4.1.2


    Thanks,

    Heeter
     
    Last edited: Dec 12, 2007
  2. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
    that is actually right, make sure the dlls are either there or look throught php.ini under extensions and comment them out
     
  3. Heeter

    Heeter Overclocked Like A Mother

    Messages:
    2,732
    Hey Carpo,

    Thanks for the response, bud.

    I think that it's wrong, because my other older webserver setup doesn't put double slashes in the error log, when there were errors during setup.

    I do have the modules loaded into the \ext folder, I have also tried to comment them out, and the errors disappear, but I do need a couple to load, though.


    Thanks

    Heeter
     
  4. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
    guessing you have
    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = "./"

    or

    extension_dir = "C:\path_to\php\ext"

    i always tend to install php to C:\PHP - spaces in folder names can cause problems, also have you put any of the php dlls in the windows or system32 folder ?
     
  5. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
    well - you sorted it ?
     
  6. Heeter

    Heeter Overclocked Like A Mother

    Messages:
    2,732
    No it still not working,

    I have moved to PHP 5.2.5 and it still is doing this,

    I have moved from Apache 2.2.4 to 2.2.3, still same situation.

    Maybe a problem with Windows?



    Thanks a whole bunch, Carpo.


    Heeter
     
  7. Heeter

    Heeter Overclocked Like A Mother

    Messages:
    2,732
    BTW, love your new avatar, Carpo


    Heeter
     
  8. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
    when i have had a web server on here apache 2.2.6 mysql 5.0.45 and php 5.2.5 i had no errors
     
  9. Heeter

    Heeter Overclocked Like A Mother

    Messages:
    2,732
    That is why I am thinking Windows XP itself.

    Everything I am throwing at it is giving me the same results.


    Heeter
     
  10. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    Have you tried adding your PHP directory to the system PATH variable?
     
  11. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
    thanks :)
     
  12. Heeter

    Heeter Overclocked Like A Mother

    Messages:
    2,732
    Thanks for the response Geffy,

    I have added the C:/php to the variables.


    Heeter
     
  13. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
    shouldnt that be c:\php ?
     
  14. Heeter

    Heeter Overclocked Like A Mother

    Messages:
    2,732
    Your right Carpo.

    I mistyped my post.


    Heeter
     
  15. Rhainor

    Rhainor OSNN One Post Wonder

    Messages:
    2
    Location:
    NC, USA
    I'm having this same problem.

    Funny thing is, I didn't have this problem under Vista. Now I'm trying to move my webserver-related stuff to my "new" franken-box (which is running XP), and stuff starts breaking.
     
  16. Heeter

    Heeter Overclocked Like A Mother

    Messages:
    2,732
    Welcome To OSNN, Rhainor.

    Hope you enjoy your stay.

    I fixed my problem by moving from Apache 2.2.4 to 2.2.3


    Heeter
     
  17. Rhainor

    Rhainor OSNN One Post Wonder

    Messages:
    2
    Location:
    NC, USA
    After posting my message, I did a little more looking around, and was able to fix the problem by doing a manual install instead of using the .msi installer.