How to install pdo_mysql on server

Hi all,

I'm a bit new to this but I wish to install the pdo_mysql module on my shared server environment

I have access to the /php/ext folder and also php.ini

The server details are as follows:
Apache version      1.3.41 (Unix)
PHP version      5.2.5
MySQL version      5.0.51a-community
Architecture      i686
Operating system      Linux

Can somebody please give me a step by step guide on how to install the pdo_mysql module?
Who is Participating?
Steve BinkConnect With a Mentor Commented:
My apologies...I mis-read your question.

PDO should already be installed on your version by default.  PHP should have been compiled with zlib, also.  If you don't already have it in there, you should be able to install it with:

# pecl install pdo

You'll also need this line in your php.ini:
Steve BinkCommented:

PHP must be compiled with support for the mysqli extension.  You can see if that is the case with your installation by checking the output of phpinfo().  The configure line should include "--with-mysqli=mysql_config_path", and you should see a mysql/i section in the extension detail.
hubfubAuthor Commented:
mysqli is already installed. I'm looking to install pdo_mysql
Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

hubfubAuthor Commented:
how do i run the line

# pecl install pdo

?? i'm a beginner sorry
Steve BinkCommented:
You will need to log into the server's shell.  I'm assuming this is a linux machine.  I'm not sure how PECL works on a Windows machine.
One more solution to this

tar xzf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
make install clean

In php.ini
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.