PHP Fatal error: Call to undefined function mysql_pconnect() in
Solution 1:
Recommendation
I would recommend you use mysqli
( http://php.net/manual/en/book.mysqli.php ) which is an improved version of mysql
Quick Fix
Full Details of all possible reason available at
http://www.somacon.com/p109.php
Let me know if you need more assitance
Last Resort
Re install PHP53
Remove the 5.1.x PHP Packages:
yum remove php php-*
Remove the 5.3.x PHP Packages:
yum remove php php53-*
Install PHP5.3
yum install php53-cli
yum install php53-common
yum install php53-devel (If you need development support)
yum install php53-gd
yum install php53-mbstring
yum install php53-mysql
yum install php53-soap
yum install php53-xml
yum install php53-xmlrpc
yum install php53-bcmath
yum install php53-snmp
Restart Apache
Service httpd restart
yum search
Solution 2:
This problem appears because the MySQL module is not active into your PHP installation or because the MySQL module was not compiled with permanent connections support.
In the first case you should check that the php_mysql
module is enabled into the php.ini
file and if not, uncomment the line which enable this module. If you are running your PHP on Linux you have to compile this module first. (--with-mysql=shared
)