I thought that I’d share my experiences of updating php specifically for fedora core 5, as that’s what’s running on one of my companies dev servers. The reason for the upgrade? Magento eCommerce requires version 5.2 and fedora 5 only has 5.1.6. In the end it’s a very simple process, by sharing it I’m hoping to save you some of the pain.
- cd /etc/yum.repos.d/
- wget http://rpms.famillecollet.com/remi-fedora.repo
- yum –enablerepo=remi update php
- apachectl graceful
PHP 5.2 is now installed and apache has restarted and is now running the newly updated php.
As this update was forced upon me by Magento, there is one further requirement. The mcrypt library.
- yum –enablerepo=remi install php-mcrypt (don’t yum install php-mcrypt – as this will get you an incompatible version for your newly updated php).
- apachectl graceful
You should now have version 5.2 of php and Magento will have all of the libraries that it needs to run. Easy when you know how!
Posted in Sys Admin | No Comments »