php 5.2 (with pdo + pdo_mysql) on centos 5.3

after installing/removing various php installs from various repos

  • the final solution for php5.2 on centos5.3 is:
yum install yum-priorities

create a centos5test .repo file

vi /etc/yum.repos.d/c5-testing.repo

and paste in

name=CentOS-5 Testing 

then run

yum --enablerepo=c5-testing install php
yum --enablerepo=c5-testing install php-devel php-pear
sudo pecl install PDO_MYSQL
sudo yum --enablerepo=c5-testing install php-mysql
sudo /etc/init.d/httpd restart

Justin Kelly

Justin Kelly

Data Engineeer, Business Analytics, Web Developer, Library Technology specialising in PHP and Tableau

Based in Melbourne, Australia

Feel free to contact me or _justin_kelly