Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    php cant connet to mysql host

    Hi all,

    I got Redhat9 installed on my server with an aim to support Apache Triad. Since the package already comes with php4.2.2/ Apache2.040 / MySql3.23.54a. Everything seems to be okey except php/mysql connectivity, the error message I got from phpMyAdmin was that php seemed unable to load the '' from the system.

    I then tried to locate this, I got this from the perl5 folder and have it copied to this directory 'extension=/usr/lib/php4/' but that doesnt help at all.

    Also, from the php test script, I saw --with mysql=share,/usr. Does it mean that mysql already complied and should be working well with php without the need to dynamically load the

    Can someone help to advise if anything is missed out to get it works?

    Thanks in advance.

    Newbie to Linux/Kennethckk

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    London, UK
    scrap what you have, most of the software is already out of date with security issues.

    Some good instructions for setting up apache, mysql and php are here:


Posting Permissions

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