1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Can somebody walk me through adding mysql extensions to PHP5 on a windows server?

Discussion in 'Site & Server Administration' started by Christian Little, Sep 18, 2008.

  1. #1
    I'm trying to help a friend with some projects which requires PHP5 and it needs to access his MySQL database.

    I've got PHP5 setup and running without problem, but I can't for the life of me figure out how to add the MySQL extensions.

    All the documentation says is to add "--with-mysql" to the configuration, but I can't even figure out where to find the configuration.

    I know where PHP.ini is stored, but that is on long assed file and I don't know where to add that.

    IMPORTANT: This is a Windows Server 2003 box.

    Could somebody help me out please? Rep to whoever gives me the solution :)

    (I'm not a sys admin, I try to avoid it but I don't have much choice lol)
     
    Christian Little, Sep 18, 2008 IP
  2. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #2
    THe easy solution... install a package such as XAMPP which offers PHP, Apache and MySQL all in the same install...
     
    Grit., Sep 18, 2008 IP
  3. Christian Little

    Christian Little Peon

    Messages:
    1,753
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The server already has Apache, PHP, and MySQL setup and running. I just need to know how to enable PHP to connect to MySQL.
     
    Christian Little, Sep 18, 2008 IP
  4. The Universes

    The Universes Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Look in the php.ini for the mysql module, and make sure its not commented out.
     
    The Universes, Sep 18, 2008 IP