The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP SQL Connect Failing

Discussion in 'Database Discussions' started by psychodreams, Jan 22, 2005.

  1. psychodreams

    psychodreams Well-Known Member

    Joined:
    Apr 14, 2004
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    Ok something has tried to update my php and now this is whats happening

    Fatal error: Call to undefined function: mysql_connect()


    Extension Error!

    Your version of PHP (4.3.8) does not include MySQL support.

    Does anyone know how to get htis working looks like al my databases ar eintact just php is not allowing it

    How can i get this back to defaults
     
  2. netlook

    netlook Well-Known Member
    PartnerNOC

    Joined:
    Mar 25, 2004
    Messages:
    335
    Likes Received:
    0
    Trophy Points:
    16
    I heard about this problem before, check for:

    extension = mysql;

    or something simillar in php.ini.

    Good luck!
     
  3. brentp

    brentp Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ayr, North Queensland, Australia
    no, youve got to recompile apache by the looks. during the compile if your doing it in ssh, press option 6 and chose the one with MYSQL SUPPORT! and all of your other options. I use, this:

    gd, xml rpc, mysql, mbstring, mcrypt, curl, curl ssl and postgre.

    Regards,
    Brent
     
  4. psychodreams

    psychodreams Well-Known Member

    Joined:
    Apr 14, 2004
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    :)

    You were quite correct that was it lol problem is now I accidentally changed the include path in thePHP.ini in the /usr/local/lib and now I dont know what is suppose to be there can someone help me this is a non zend version
     
Loading...

Share This Page