SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2006
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    No mysql info through phpinfo();

    Hi,

    I am trying to install mantis, and I get errors when I try to run the install script saying that mysql is not configured to run on php.

    I call the phpinfo() function and I see nothing relating to mysql.

    I open the php.ini file, and, to be honest, it looks alright.

    the extension_dir points to /usr/lib/php4 which includes the mysql.so extension.

    Furthermore, I located the mysql.sock file and pointed the default socket to it, but nothing. what exactly am I missing?

    if you wish to take a look at my phpinfo(), go here:

    http://208.12.118.86/phpinfo.php.

    Thanks.

    PS, This server runs several apps that use the mysql db program - most running on java, I feel as though I cannot totally reconfigure.

  2. #2
    SitePoint Evangelist
    Join Date
    Mar 2003
    Location
    Melbourne, Australia
    Posts
    463
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do you have the line in your php.ini?
    extension=mysql.so

    this line can also appear in a file called mysql.ini which is usually located in /etc/php.d/
    when mysql is installed as a shared extension
    this file obviously doesn't exist as it doesn't appear in your phpinfo, so you should either create it and add it to /etc/php.d/

    or just add that line to your php.ini file, and restart the server

    hth
    dave


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •