My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://techienote.com and update your bookmarks.

Tech Resources

Saturday, May 16, 2009

Installing PHP5.2 on CentOS5.2

PHP  is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

Installing php5.2 on your CentOS, you have to download it from jasonlitka's repository

For enabling it run the following commands:

#touch /etc/yum.repos.d/utterramblings.repo
#echo '[utterramblings]' >> /etc/yum.repos.d/utterramblings.repo
#echo "name=Jason's Utter Ramblings Repo" >> /etc/yum.repos.d/utterramblings.repo
#echo 'baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/' >> /etc/yum.repos.d/utterramblings.repo
#echo 'enabled=1' >> /etc/yum.repos.d/utterramblings.repo
#echo 'gpgcheck=1' >> /etc/yum.repos.d/utterramblings.repo
#echo 'gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka' >> /etc/yum.repos.d/utterramblings.repo

After just update your php

#yum update php

7 Comments:

Blogger Nick Mallare said...

Thanks for posting this.

Just as and FYI, I am running CentOS 5.3, and it installed just fine.

Nick

July 12, 2009 at 7:55 AM  
Blogger togum said...

thanks

great shared

July 23, 2009 at 9:43 AM  
Blogger Eric Winchell said...

works here too, centos 5.3

July 26, 2009 at 6:51 AM  
Anonymous Anonymous said...

Awesome !! just tried it... it worked like a charm..

Thanks alot

November 4, 2009 at 1:48 PM  
Blogger MasterBip said...

you so Much!

November 25, 2009 at 7:56 AM  
Blogger anuradha said...

Seem to be not working in centos 5.4. It returns a error "cannot find a valid baseurl for repo: utterramblings"

November 26, 2009 at 1:40 PM  
Anonymous Anonymous said...

Ecxellent... upgraded very easily with no hassle on my CentOs 5.4 server with 1and1

March 5, 2010 at 4:49 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home