Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 10:28:10 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: update php4 to php 5 using yum - get No Packages marked for Update/Obsoletion  (Read 734 times)
lloyd
Space Explorer
***
Offline Offline

Posts: 9


« on: May 09, 2008, 08:24:53 AM »

I need to upgrade my php from 4 to 5, as I want to use exceptions, that are only available in version 5.

I tried using the following command:


yum upgrade php


yum outputs the following

[root@server ~]# yum upgrade php
Setting up Upgrade Process
Setting up repositories
dag                       100% |=========================| 1.1 kB    00:00     
update                    100% |=========================|  951 B    00:00     
rpmforge                  100% |=========================| 1.1 kB    00:00     
base                      100% |=========================| 1.1 kB    00:00     
addons                    100% |=========================|  951 B    00:00     
extras                    100% |=========================| 1.1 kB    00:00     
Reading repository metadata in from local files
Could not find update match for php
 Help
[root@server ~]#


What does no packages marked for update/obsoletion and
what do I need to do get yum to update php

Lloyd
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 897



« Reply #1 on: May 09, 2008, 11:07:43 AM »

Hi Lloyd,

What PHP version do you need? If 5.1.6 would be enough for you, you can activate the CentOS Plus repository in /etc/yum.repos.d/CentOS-Base.repo and run "yum udate" and then "yum upgrade php*". Otherwise you would need to add a 3rd party repository that has more recent PHP rpms such as this one http://www.atomicorp.com.

I hope this helps.



Logged

Kind Regards,
Vlad Artamonov
lloyd
Space Explorer
***
Offline Offline

Posts: 9


« Reply #2 on: May 09, 2008, 02:38:25 PM »

PHP 5.1.6 is perfect

How do I activate the CentOS Plus repository in /etc/yum.repos.d/CentOS-Base.repo

Lloyd


Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 897



« Reply #3 on: May 09, 2008, 09:47:12 PM »


To enable CentOS Plus repository, edit /etc/yum.repos.d/CentOS-Base.repo in shell as root. Under [centosplus] heading, you will see a line that currently says “enabled=0″. Change that to “enabled=1″ and save the file.
Logged

Kind Regards,
Vlad Artamonov
lloyd
Space Explorer
***
Offline Offline

Posts: 9


« Reply #4 on: May 09, 2008, 10:07:21 PM »

Ok, now I understand I change the the file you mentioned in your last reply, then run

"yum udate" and then "yum upgrade php*"

if I want to update my mysql, can I assume that  I would again change the file you mentioned, and then run

"yum udate" and then "yum upgrade mysql*"

Thanks for all your help so far.

Lloyd
 
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 897



« Reply #5 on: May 10, 2008, 08:13:45 AM »

Lloyd,

It is not needed to re-edit the file again to upgrade MySQL, if you do not disable CentOS Plus repository after updating PHP.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM