Forum Search:
HyperVM & Kloxo Support

Home » LxAdmin » Technical Help » how to upgrade php to the newest?
how to upgrade php to the newest? [message #30461] Mon, 12 May 2008 03:41 Go to next message
bingu  is currently offline bingu
Messages: 6
Registered: April 2008
Member
I runed this command
Quote:

#yum update


But my php version is still 5.2.1

The current php 5 stable version is 5.2.6

How can I resolve this?

Thanks


冰古blog
Re: how to upgrade php to the newest? [message #30462 is a reply to message #30461] Mon, 12 May 2008 03:43 Go to previous messageGo to next message
thecokey  is currently offline thecokey  United Kingdom
Messages: 259
Registered: March 2008
Location: UK
Senior Member
Hi

Running:

Quote:

yum update php


Should update it to the latest version,
however, a yum update should do that anyhow?!?




http://www.cwdev.co.uk
Cambridge Website Design, SEO and Bespoke I.T. Development.
Re: how to upgrade php to the newest? [message #30463 is a reply to message #30461] Mon, 12 May 2008 03:58 Go to previous messageGo to next message
bingu  is currently offline bingu
Messages: 6
Registered: April 2008
Member
Quote:

# yum update php

Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Could not find update match for php
No Packages marked for Update/Obsoletion


It seems not work


冰古blog
Re: how to upgrade php to the newest? [message #30464 is a reply to message #30461] Mon, 12 May 2008 04:12 Go to previous messageGo to next message
thecokey  is currently offline thecokey  United Kingdom
Messages: 259
Registered: March 2008
Location: UK
Senior Member
Hi,

I kinda figured this may not work as the main yum update should do it.

Yum does cache what it finds in the repodata, if you do not regularly do a yum update it may have issues.
Try clearing the cache out which forces yum to re-fetch from the mirror:
Quote:


yum clean headers metadata



Then run a yum update.

Regards
Col


http://www.cwdev.co.uk
Cambridge Website Design, SEO and Bespoke I.T. Development.
Re: how to upgrade php to the newest? [message #30465 is a reply to message #30461] Mon, 12 May 2008 04:23 Go to previous messageGo to next message
bingu  is currently offline bingu
Messages: 6
Registered: April 2008
Member
Quote:

#yum clean headers metadata
#yum update
No Packages marked for Update/Obsoletion

# yum update php

Loading "installonlyn" plugin
Setting up Update Process
Setting up repositories
Reading repository metadata in from local files
Could not find update match for php
No Packages marked for Update/Obsoletion


Still not work

Thank you all the same


冰古blog
Re: how to upgrade php to the newest? [message #30478 is a reply to message #30461] Mon, 12 May 2008 22:59 Go to previous messageGo to next message
Silence  is currently offline Silence
Messages: 251
Registered: October 2007
Location: Spain
Senior Member
Centos repository php version is 5.2.1, yum won't update unless you add an extra repository.
Re: how to upgrade php to the newest? [message #30479 is a reply to message #30478] Mon, 12 May 2008 23:38 Go to previous messageGo to next message
bingu  is currently offline bingu
Messages: 6
Registered: April 2008
Member
Silence wrote on Tue, 13 May 2008 10:59

Centos repository php version is 5.2.1, yum won't update unless you add an extra repository.


add anextra repository?
What should I do?

I'm unfamiliar with Linux.


冰古blog
Re: how to upgrade php to the newest? [message #30484 is a reply to message #30479] Tue, 13 May 2008 01:48 Go to previous messageGo to next message
Zella  is currently offline Zella
Messages: 119
Registered: February 2008
Valuable Member
An extra repository : Utter Ramblings

I use it to upgrade PHP and Mysql which are always uptodate on this repository (PHP 5.2.6 and MySql 5.0.58)

Goto to http://www.jasonlitka.com/yum-repository/ and follow instructions on this page.

Works fine.

Hope this can help you.

Regards,

Marc
Re: how to upgrade php to the newest? [message #30487 is a reply to message #30461] Tue, 13 May 2008 03:16 Go to previous messageGo to next message
bingu  is currently offline bingu
Messages: 6
Registered: April 2008
Member
zella, thank you.
all updated!


冰古blog
Re: how to upgrade php to the newest? [message #30702 is a reply to message #30487] Wed, 21 May 2008 22:26 Go to previous messageGo to next message
leroyxie  is currently offline leroyxie
Messages: 2
Registered: May 2008
Member
help me
i try to use this way to update my mysql and php but why could not i use "yum utterramblings http://www.jasonlitka.com/media/EL4/$ARCH" ? i was told this command was none
Thanks
Leroy
Re: how to upgrade php to the newest? [message #30705 is a reply to message #30461] Wed, 21 May 2008 23:27 Go to previous messageGo to next message
Silence  is currently offline Silence
Messages: 251
Registered: October 2007
Location: Spain
Senior Member
Hello, follow the instructions given in the page, anyways try:

rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

vim /etc/yum.repos.d/utterramblings.repo
Now in the window paste this:

[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Now push Ctrl+C, write :w and push enter to save the file, write :quit and enter to exit vim.

You can update using "yum update"
Re: how to upgrade php to the newest? [message #30707 is a reply to message #30705] Thu, 22 May 2008 00:52 Go to previous messageGo to next message
leroyxie  is currently offline leroyxie
Messages: 2
Registered: May 2008
Member
Silence wrote on Wed, 21 May 2008 23:27

Hello, follow the instructions given in the page, anyways try:

rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

vim /etc/yum.repos.d/utterramblings.repo
Now in the window paste this:

[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Now push Ctrl+C, write :w and push enter to save the file, write :quit and enter to exit vim.

You can update using "yum update"



Hi Silence
thank you very much!
Leroy
Re: how to upgrade php to the newest? [message #36279 is a reply to message #30461] Sun, 31 August 2008 22:39 Go to previous messageGo to next message
arthurthornton  is currently offline arthurthornton  United States
Messages: 2110
Registered: August 2007
Location: Virginia
Masters
LxCenter Staff

BUMP (as requested by Ligesh)


My Site
I have over 1600 posts!
Consortium and Kloxo Development Leader
I'm not a private help desk. Only PM me if I request a PM, not due to your desire to demand or harass me for information/answers
Re: how to upgrade php to the newest? [message #36280 is a reply to message #30461] Sun, 31 August 2008 22:53 Go to previous messageGo to next message
arthurthornton  is currently offline arthurthornton  United States
Messages: 2110
Registered: August 2007
Location: Virginia
Masters
LxCenter Staff

I just used this method to update MySQL. MySQL does not seem to work after being updated to version 5.0.58. Is there a way to remove it and install the other version that worked (I think it was 5.0.45) without messing anything up?


My Site
I have over 1600 posts!
Consortium and Kloxo Development Leader
I'm not a private help desk. Only PM me if I request a PM, not due to your desire to demand or harass me for information/answers
Re: how to upgrade php to the newest? [message #36282 is a reply to message #30461] Sun, 31 August 2008 23:02 Go to previous messageGo to next message
arthurthornton  is currently offline arthurthornton  United States
Messages: 2110
Registered: August 2007
Location: Virginia
Masters
LxCenter Staff

Should I go ahead and update PHP as well, or what? I don't want to use this if it won't work. I have run the yum remove mysql, but I quit it when it wanted to remove the dependencies. I tried the (recommended) command of rpm --nodeps mysql, but that doesn't work to remove the deps from yum.


My Site
I have over 1600 posts!
Consortium and Kloxo Development Leader
I'm not a private help desk. Only PM me if I request a PM, not due to your desire to demand or harass me for information/answers
Re: how to upgrade php to the newest? [message #36283 is a reply to message #30461] Sun, 31 August 2008 23:06 Go to previous messageGo to next message
arthurthornton  is currently offline arthurthornton  United States
Messages: 2110
Registered: August 2007
Location: Virginia
Masters
LxCenter Staff

Scratch my previous post, I just need to downgrade MySQL, since I cannot do anything (LxAdmin, email, web (mysql powered sites)) until this is fixed.


My Site
I have over 1600 posts!
Consortium and Kloxo Development Leader
I'm not a private help desk. Only PM me if I request a PM, not due to your desire to demand or harass me for information/answers
Re: how to upgrade php to the newest? [message #36284 is a reply to message #30461] Sun, 31 August 2008 23:10 Go to previous messageGo to next message
arthurthornton  is currently offline arthurthornton  United States
Messages: 2110
Registered: August 2007
Location: Virginia
Masters
LxCenter Staff

Forget my previous posts. It seems there was an error in the original my.cnf file preventing MySQL from starting (I was about to post the logs but looked at it and saw the problem)

If anyone has mysql_idle_time set in my.cnf, REMOVE it before upgrading MySQL. It will save you a lot of stress and time (in my case, a ton of stress, and about 25 minutes of time)


My Site
I have over 1600 posts!
Consortium and Kloxo Development Leader
I'm not a private help desk. Only PM me if I request a PM, not due to your desire to demand or harass me for information/answers
Re: how to upgrade php to the newest? [message #36306 is a reply to message #36284] Mon, 01 September 2008 07:05 Go to previous messageGo to next message
Lxhelp
Messages: 23701
Registered: July 2006
Masters
Check the /var/log/mysqld.log everytime you have a problem with mysql.

thanks.


On Mon, Sep 01, 2008 at 03:10:46AM -0000, Arthur Thornton wrote:
>
>
> Forget my previous posts. It seems there was an error in the original my.cnf file preventing MySQL from starting (I was about to post the logs but looked at it and saw the problem)
>
> If anyone has mysql_idle_time set in my.cnf, REMOVE it before upgrading MySQL. It will save you a lot of stress and time (in my case, a ton of stress, and about 25 minutes of time)
> --
> http://www.zantagonox.com
Re: how to upgrade php to the newest? [message #36308 is a reply to message #30461] Mon, 01 September 2008 07:13 Go to previous messageGo to next message
Spacedust  is currently offline Spacedust  Poland
Messages: 386
Registered: October 2007
Masters
Don't install this !

Updating:
 apr                     i386       1.2.12-2.jason.1  utterramblings    257 k
 apr-util                i386       1.2.12-5.jason.1  utterramblings    159 k
 mod_ssl                 i386       1:2.2.8-jason.3  utterramblings    314 k
 mysql                   i386       5.0.58-jason.2   utterramblings    6.4 M
 mysql-server            i386       5.0.58-jason.2   utterramblings     10 M
 pcre                    i386       7.6-jason.1      utterramblings    562 k
 php                     i386       5.2.6-jason.1    utterramblings    3.7 M
 php-cli                 i386       5.2.6-jason.1    utterramblings    2.6 M
 php-common              i386       5.2.6-jason.1    utterramblings    481 k
 php-devel               i386       5.2.6-jason.1    utterramblings    568 k
 php-gd                  i386       5.2.6-jason.1    utterramblings    320 k
 php-imap                i386       5.2.6-jason.1    utterramblings    104 k
 php-mysql               i386       5.2.6-jason.1    utterramblings    258 k
 php-pdo                 i386       5.2.6-jason.1    utterramblings    159 k
 php-pear                noarch     1:1.6.2-1.jason.1  utterramblings    418 k
 php-snmp                i386       5.2.6-jason.1    utterramblings     42 k
 php-xcache              i386       5.2.6_1.2.2-jason.3  utterramblings    166 k
Installing for dependencies:
 httpd                   i386       2.2.8-jason.3    utterramblings    2.5 M

[Updated on: Mon, 01 September 2008 07:35]

Re: how to upgrade php to the newest? [message #36317 is a reply to message #30461] Mon, 01 September 2008 08:27 Go to previous messageGo to next message
Silence  is currently offline Silence
Messages: 251
Registered: October 2007
Location: Spain
Senior Member
Why? It's works perfectly lol.
Re: how to upgrade php to the newest? [message #36318 is a reply to message #36317] Mon, 01 September 2008 08:30 Go to previous messageGo to next message
Lxhelp
Messages: 23701
Registered: July 2006
Masters
We will provide a separate lxlabsplus repo with these packages, so that it will be easier to keep track of it.


On Mon, Sep 01, 2008 at 12:27:51PM -0000, Silence wrote:
>
>
> Why? It's works perfectly lol.
Re: how to upgrade php to the newest? [message #41784 is a reply to message #30705] Thu, 16 October 2008 14:39 Go to previous messageGo to next message
Mr_Virtueel  is currently offline Mr_Virtueel
Messages: 27
Registered: October 2008
Location: the Netherlands
Member
Silence wrote on Thu, 22 May 2008 05:27

Hello, follow the instructions given in the page, anyways try:

rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

vim /etc/yum.repos.d/utterramblings.repo
Now in the window paste this:

[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Now push Ctrl+C, write :w and push enter to save the file, write :quit and enter to exit vim.

You can update using "yum update"


Could you please explain what to do in steps for yum.

And what to do with the link?

Thank you in advanced
Re: how to upgrade php to the newest? [message #41789 is a reply to message #30461] Thu, 16 October 2008 16:17 Go to previous messageGo to next message
Silence  is currently offline Silence
Messages: 251
Registered: October 2007
Location: Spain
Senior Member
You are supposed to run that commands in a ssh terminal.
Re: how to upgrade php to the newest? [message #47439 is a reply to message #36318] Mon, 24 November 2008 17:30 Go to previous messageGo to next message
daniel  is currently offline daniel
Messages: 22
Registered: November 2006
Member
Lxhelp wrote on Mon, 01 September 2008 14:30

We will provide a separate lxlabsplus repo with these packages, so that it will be easier to keep track of it.


Even if "Jason's Utter Ramblings Repo" may work (haven't tried it yet), I think it would be better if Lxlabs could provide the latest php and mysql releases through a lxlabsplus repo as you mentioned. Is there an ETA for this?
Re: how to upgrade php to the newest? [message #47440 is a reply to message #47439] Mon, 24 November 2008 17:33 Go to previous messageGo to next message
Lxhelp
Messages: 23701
Registered: July 2006
Masters
Jason's repo is not recommended. It has some serious issues with open_basedir.

For mysql, it is best you use the standard centos itself.

PHP is something we will provide.

thanks.

On Mon, Nov 24, 2008 at 10:30:11PM -0000, daniel wrote:
>
>
> Even if "Jason's Utter Ramblings Repo" may work (haven't tried it yet), I think it would be better if Lxlabs could provide the latest php and mysql releases through a lxlabsplus repo as you mentioned. Is there an ETA for this?
>


Re: how to upgrade php to the newest? [message #47441 is a reply to message #47440] Mon, 24 November 2008 17:43 Go to previous messageGo to next message
daniel  is currently offline daniel
Messages: 22
Registered: November 2006
Member
Lxhelp wrote on Mon, 24 November 2008 23:33

Jason's repo is not recommended. It has some serious issues with open_basedir.

For mysql, it is best you use the standard centos itself.

PHP is something we will provide.


All right, I'll continue to use the standard php packages as well until Lxlabs can provide a smooth way to perform the update. Hope it will be soon though, as the ETA wasn't revealed in your answer Wink
Re: how to upgrade php to the newest? [message #47442 is a reply to message #30461] Mon, 24 November 2008 17:44 Go to previous messageGo to next message
Spacedust  is currently offline Spacedust  Poland
Messages: 386
Registered: October 2007
Masters
If you want to upgrade PHP to 5.2.6 use this one:

[remi]
name=Les RPM de remi pour Enterprise Linux 5 - $basearch
baseurl=http://rpms.famillecollet.com/el5.$basearch/
        http://remi.collet.free.fr/rpms/el5.$basearch/
        http://iut-info.univ-reims.fr/remirpms/el5.$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority
Re: how to upgrade php to the newest? [message #47443 is a reply to message #30461] Mon, 24 November 2008 17:45 Go to previous messageGo to next message
Spacedust  is currently offline Spacedust  Poland
Messages: 386
Registered: October 2007
Masters
php -v
PHP 5.2.6 (cli) (built: May  7 2008 00:50:43)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with XCache v1.2.1, Copyright (c) 2005-2007, by mOo
    with the ionCube PHP Loader v3.1.31, Copyright (c) 2002-2007, by ionCube Ltd., and
    with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
    with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH
    with Zend Optimizer v3.2.8, Copyright (c) 1998-2007, by Zend Technologies
Re: how to upgrade php to the newest? [message #47444 is a reply to message #47441] Mon, 24 November 2008 17:46 Go to previous messageGo to next message
Lxhelp
Messages: 23701
Registered: July 2006
Masters
Quote:


On Mon, Nov 24, 2008 at 10:43:12PM -0000, daniel wrote:
>
> All right, I'll continue to use the standard php packages as well until Lxlabs can provide a smooth way to perform the update. Hope it will be soon though, as the ETA wasn't revealed in your answer ;)
>
>



There is a post in the forum with explicit instructions on how to compile the latest php yourself. I can add it trivially, but the ideal way would be to do it via rpm packaging.


thanks.



Re: how to upgrade php to the newest? [message #47445 is a reply to message #47442] Mon, 24 November 2008 17:46 Go to previous message
Lxhelp
Messages: 23701
Registered: July 2006
Masters
Please make sure they are properly tested. The php from jason's repo has serious bugs.


On Mon, Nov 24, 2008 at 10:44:28PM -0000, Marek wrote:
>
>
> If you want to upgrade PHP to 5.2.6 use this one:
>


Previous Topic:how to change root password in lxadmin?
Next Topic:Change lxadmin port SSH?
Goto Forum:
  


Current Time: Fri Sep 3 14:13:40 EDT 2010

Total time taken to generate the page: 0.10630 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2009 FUDforum Bulletin Board Software