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

Web Developer, Business Analytics, Data Engineer specialising in PHP, ReactJS, Tableau, AWS RedShift and Matillion ETL

Based in Melbourne, Australia

Feel free to contact me or _justin_kelly

Leave a comment

Name Notify me of replies by email.