How to uninstall an older PHP version from centOS7

sunny kashyap picture sunny kashyap · Apr 21, 2017 · Viewed 150.5k times · Source

My project is on Laravel 5.2. and as per guide it required php >= 5.5.6 but there was php 5.4 intalled and I had to upgrade php version through YUM, But now it is giving error "PDO driver not found" and I tried YUM install php-pdo but it's giving error that "there is conflict between php56w-common and php-comon-5.4.16". I am stuck on this pointenter image description here

Answer

user6223711 picture user6223711 · Apr 21, 2017

yum -y remove php* to remove all php packages then you can install the 5.6 ones.