Error “Call to undefined function mysql_pconnect()”

I am not sure what happen, but recently I couldn’t run my Wikindx3, and got this error :

Fatal error: Call to undefined function mysql_pconnect()

It could be due to the update in php Ubuntu package.

What I did to solve this is

sudo apt-get install php5-mysql

Then go to

/etc/php5/apache2/

and edit the file php.ini

find this Dynamic Extension and make sure you have the line “extension=mysql.so”

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
extension=mysql.so

It solves my problem. Thanks to this post.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: