enable mysql on PHP5

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

enable mysql on PHP5

Post by pcoder »

Hi All,
I have upgraded the PHP from 4 to 5.
Currently the PHP version is 5.2.9 and the mysql version is 4.1.22-standard. My server is in Linux.
How to configure the PHP to enable the mysql database?
Currently, i am getting an error like "Call to undefined function mysql_connect()".
I don;t have an idea to configure it in Linux. Can anyone suggest me how to do this?
Is this possible from cpanel?
Thanks
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: enable mysql on PHP5

Post by Benjamin »

What flavor of linux are you using?
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Re: enable mysql on PHP5

Post by pcoder »

I am using centos linux.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: enable mysql on PHP5

Post by Benjamin »

User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Re: enable mysql on PHP5

Post by pcoder »

Anyway thanks for suggesting me to google it.
Post Reply