PHP can not work with mysql

Support for webhosts that use CentOS
Post Reply
naruponk
Posts: 21
Joined: 2006/12/12 02:47:21
Contact:

PHP can not work with mysql

Post by naruponk » 2007/05/17 08:42:06

Hi,

I have found that my web server can not run PHP that use mysql extension.
I go to add/remove application and go to mysql server I saw that PHP module
is not current checked, so i checked it and update
I got an error that php-pear module not installed or something about php-pear

how can i install mysql extension to PHP?

thanks for advance :-o

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

PHP can not work with mysql

Post by gerald_clark » 2007/05/17 13:14:26

yum list | grep php

should give you your answer.

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: PHP can not work with mysql

Post by michaelnel » 2007/05/17 16:47:07

[quote]
naruponk wrote:
I got an error that php-pear module not installed or something about php-pear

how can i install mysql extension to PHP?

[/quote]

As root, do "yum install php-pear php-mysql"

naruponk
Posts: 21
Joined: 2006/12/12 02:47:21
Contact:

Re: PHP can not work with mysql

Post by naruponk » 2007/05/18 02:28:08

Works fine!!!

Thanks a lot guys :-D

Post Reply

Return to “CentOS 4 - Webhosting Support”