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


and edit the file php.ini

find this Dynamic Extension and make sure you have the line “”

; Dynamic Extensions ;

It solves my problem. Thanks to this post.