PHP database extension

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
chetansingh23
Forum Newbie
Posts: 2
Joined: Mon Mar 03, 2014 11:10 am

PHP database extension

Post 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
User avatar
Celauran
Moderator
Posts: 6425
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: PHP database extension

Post by Celauran »

Code: Select all

yum install php-mysql php-pdo
chetansingh23
Forum Newbie
Posts: 2
Joined: Mon Mar 03, 2014 11:10 am

Re: PHP database extension

Post 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)
Post Reply