Page 1 of 1

PHP database extension

Posted: Mon Mar 03, 2014 11:17 am
by chetansingh23
Hi All,

I have a server running Redhat 5.7 and on that php is installed. I need to install PHP database extension((MySQL, MySQLi, or PDO for MySQL) on that. Could anyone guide me how to do it.

php -version
PHP 5.1.6 (cli) (built: Nov 13 2010 16:05:12)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Thanks

Re: PHP database extension

Posted: Mon Mar 03, 2014 11:35 am
by Celauran

Code: Select all

yum install php-mysql php-pdo

Re: PHP database extension

Posted: Mon Mar 03, 2014 11:47 am
by chetansingh23
I don't have yum configured on the server and it is there is no support of it from Redhat, I am not sure which all rpm to download from net and install it. I did googled out and find below. Could anyone confirm me if the below can be used or not.

http://www.rpmfind.net//linux/RPM/sourc ... 86_64.html

The package includes a dynamic shared object (DSO) that can
be compiled in to the Web server to add MySQL database
support to PHP.
Provides

php-mysql
mysql.so()(64bit)
pdo_mysql.so()(64bit)
php-mysql(x86-64)