CentOS 4.x – But I want PHP5 and MySQ5
This sometimes can be an issue. I want PHP5 but I only have CentOS 4.6. What can I do? It seems like the CentOS repository doesn’t have PHP5, only PHP4. Enter “–-enablerepo centosplus”. Just add “—enablerepo centosplus” after yum and you’ll be able to install PHP 5, Apache 2.0 and MySQL 5 in no time.
# yum –enablerepo=centosplus –y install php httpd mysql php-mysql php-gd
The above also works for upgrades by substituting “install” for “upgrade”.
Categories: Linux