Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY

Go Back   Server - System - Manager - CentOS, Operation System, VBB, HACKING AND SECURITY > CentOS Việt Nam - Viet Nam Linux CentOS Community > Cài đặt CentOS và ứng dụng > PHP for CentOS

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 27-08-2008
Admin's Avatar
Administrator
 
Join Date: Jun 2008
Location: USA
Posts: 355
Thanks: 16
Thanked 17 Times in 15 Posts
Send a message via Skype™ to Admin
Default Cài đặt PHP 5.2.x on RedHat ES5, CentOS 5, etc

I’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/pu...5-2.noarch.rpm
wget http://rpms.famillecollet.com/el5.i3...emi.noarch.rpm
rpm -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 -v

PHP 5.2.5 (cli) (built: Nov 10 2007 10:52:30)

Copyright (c) 1997-2007 The PHP Group

Zend 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: English : Repository Configuration - Les RPM de Remi
__________________
Hacking - The Art of Exploitation
DomainKeys: Chìa khóa quan trọng của Anti-Spammer
Reply With Quote
The Following 2 Users Say Thank You to Admin For This Useful Post:
bispedia.com (03-09-2008), dotproject (27-08-2008)
  #2 (permalink)  
Old 03-09-2008
bispedia.com's Avatar
Moderator
 
Join Date: Jul 2008
Posts: 29
Thanks: 2
Thanked 0 Times in 0 Posts
Default

hì hì, em cài con CentOS lên, điều quan trọng là phải kiếm ngày các gọi repo của nó để up2date cho kịp với thế giới
Repo remi rất hay đc sử dụng!
Reply With Quote
Reply

Tags
5.2.6, install

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:03 PM.


© Diễn đàn HackingArt (HA) được xây dựng và phát triển bởi các thành viên.
+ Diễn đàn HackingArt là nơi trao đổi của các webmaster chuyên nghiệp.