how to make php to work with mysql (php installed with apt-get, (no mysql support)

Discussion in 'Installation/Configuration' started by grafik, May 14, 2006.

  1. grafik

    grafik New Member

    I've just found this site, and it seems to be really great!
    I'm using your "The Perfect Setup - Debian Sarge (3.1)" howto, and I've realized running the phpinfo () script that php was compile without mysql support. I need mysql support in php, because most php scripts especially login related use mysql .
    > My question is how could I install php with mysql support using apt-get , or there is no way doing it without compiling mannualy ? thanks a lot
    > respectfully Istvan Juhos
    > - is there a way to make changes to work mysql in php?
     
  2. Wido

    Wido New Member

    apt-get install php4-mysql

    That should do the trick!
     
  3. falko

    falko Super Moderator Howtoforge Staff

    And don't forget to restart Apache! ;)
     
  4. grafik

    grafik New Member

    Thanks, I've already installed that package, and probably mysql was working in php, I've been confused because phpinfo() said that there was a compilation without mysql
     

Share This Page