php won't load extensions?

Discussion in 'Apache' started by dbrandt, Jan 19, 2008.

  1. #1
    I want php to load the mysql extension (php_mysql.dll), I've set up the php.ini file like this:
    
    extension_dir="C:\OpenSA\Apache2\php"
    extension=php_mysql.dll
    
    Code (markup):
    I've confirmed that php_mysql.dll is indeed in C:\OpenSA\Apache2\php.
    I've added C:\OpenSA\Apache2\php to "PATH". I've made sure that libmysql.dll is in the same directory. I've even copy-and-pasted libmysql.dll into system32 just for the hell of it. Yet I still get this error message when I try phpMyAdmin:

    Cannot load mysql extension. Please check your PHP configuration.
    Code (markup):
    What is wrong?!
     
    dbrandt, Jan 19, 2008 IP
  2. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try c:/opensa/apache2/php/
     
    agnivo007, Jan 19, 2008 IP
  3. oc-scott

    oc-scott Active Member

    Messages:
    420
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    68
    #3
    That doesn't work as he clearly mentioned that the dll file is under C:\OpenSA\Apache2\php

    Did you restart web service after making the change in php.ini?
     
    oc-scott, Jan 19, 2008 IP
  4. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Actually, oc-scott, some Windows systems require either:

    C:\\OpenSA\\Apache2\\php

    (escape backslashes) or:

    C:/OpenSA/Apache2/php

    Jay
     
    jayshah, Jan 20, 2008 IP
  5. dbrandt

    dbrandt Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Arggghhhh, it still doesn't work! I have a screenshot of all of my settings; correct me if they are wrong
    http://img237.imageshack.us/my.php?image=phpsucksfj4.jpg
     
    dbrandt, Jan 20, 2008 IP
  6. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #6
    If all else fails, get WAMPServer, as it'll install and configure everything for you.

    Jay
     
    jayshah, Jan 20, 2008 IP