加拿大华人论坛 美国华人新闻Installing PHP 5.2.x or 5.3.x on RedHat ES5, CentOS 5, etc
在加拿大
Posted in linux by Simon Green on March 13, 2008Tags: linux, php, redhat, rpmI’ve had to follow this tutorial a few times myself now so decided I should share it with the world.A few of our applications which make use of SOAP get a Segmentation Fault if run with PHP 5.1.x or lower. We believe this is due to a bug in PHP but can’t be sure, regardless it works fine in PHP 5.2.4 and above.Problem is, RedHat ES5 does not have support at this time for anything higher than 5.1.6, and we didn’t want to break RPM dependancys etc by installing from source.To install PHP 5.2.5 (Highest in repository at this time) you can make use of a RPM repository maintained by Remi. He has a repository for each distro, but to save you translating for the ES5 one I’ll give you the commands here. Run the following to get up and running: 代码: wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-5.rpmrpm -Uvh remi-release-5*.rpm epel-release-5*.rpm You now have the Remi repository on your system, however it is disabled by default. Obviously you don’t want all of your packages been effected by this repository, however to enable it for a specific package, run the following: 代码: yum --enablerepo=remi update php You should now have the latest PHP5 installed: 代码: # php -vPHP 5.2.5 (cli) (built: Nov 10 2007 10:52:30)Copyright (c) 1997-2007 The PHP GroupZend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies Update 12th Aug ‘08:There is now an English page on the Remi site on how to configure repositories for all sorts of distros:http://blog.famillecollet.com/pages/Config-enUpdate 13th June ‘09:The download link for the ES5 package has changed, post updated above.:http://blog.famillecollet.com/pages/Config-enUpdate 9th August ‘09:It would seem this repo has now been upgraded to PHP 5.3.0.
·生活百科 为什么 Flybuys 不能自动节省 10 美元?
·生活百科 2022年过期的干蘑菇、干紫菜该扔掉吗?