Installing PHP5 MySQL extension on Debian?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
JasonTC
Forum Commoner
Posts: 92
Joined: Wed Nov 02, 2005 11:05 am
Location: Grand Rapids, MI

Installing PHP5 MySQL extension on Debian?

Post by JasonTC »

Apparently, if I want to use MySQL with PHP5, I have to compile PHP5 with MySQL support. Does anyone know how to do this on Debian? "apt-get install php5" and then "apt-get install mysql-server" doesn't cut it. I realize that I could just re-install PHP5 from source with the proper configuration, but it would be so nice not to have to.

Thanks,
Jason
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Code: Select all

apt-get install apache2 libapache-mod-php5 php5 php5-mysql mysql-server
JasonTC
Forum Commoner
Posts: 92
Joined: Wed Nov 02, 2005 11:05 am
Location: Grand Rapids, MI

Post by JasonTC »

That did it. Thanks!
Post Reply