Web Design Forum: Upgrading to PHP 5.3.0 - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Upgrading to PHP 5.3.0 Need a little help

#1 User is offline   Anth Winter 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 196
  • Joined: 14-October 07
  • Reputation: 9
  • Gender:Male
  • Location:Seaham UK
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 06 July 2009 - 02:35 PM

Hey, i have root access to a linux server with CentOs installed

php version is 5.1.6-23.2.el5_3

ive been looking on guides on how to upgrade my php version but cant find anything, not even on PHP.net (its a maze)

Ive tried yum update php, but this just stays with 5.1.6

Anyone know any guides or able to help me upgrade?

Thanks ppl:)
0

#2 User is online   BlueDreamer 

  • Web Guru
  • Group: Moderators
  • Posts: 5,801
  • Joined: 23-October 07
  • Reputation: 202
  • Gender:Male
  • Location:Northampton (where?)
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 06 July 2009 - 05:33 PM

You should find all the info at http://www.php.net/manual/en/

However, as you have to ask the question, I would highly recommend you seek expert help unless you're familar with command lines and working in a Unix environmant.
0

#3 User is offline   Peartree 

  • The one and only :)
  • PipPipPipPip
  • Group: Members
  • Posts: 974
  • Joined: 15-February 08
  • Reputation: 13
  • Gender:Male
  • Location:Sheffield & London
  • Experience:Advanced
  • Area of Expertise:Entrepreneur

Posted 06 July 2009 - 11:12 PM

try using the following:

yum update

then once its done updating its repository run:

yum update php

However if CentOS have nt upgraded their repositories you will need to download and compile from source and then install it.

We can lend a hand if required (but would have to charge as your not a client :( )
0

#4 User is offline   http://www.mydediserver.co 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 85
  • Joined: 30-June 09
  • Reputation: 3
  • Gender:Male
  • Experience:Advanced
  • Area of Expertise:System Administrator

Posted 04 October 2009 - 07:24 AM

View PostAnth Winter, on 06 July 2009 - 02:35 PM, said:

Hey, i have root access to a linux server with CentOs installed

php version is 5.1.6-23.2.el5_3

ive been looking on guides on how to upgrade my php version but cant find anything, not even on PHP.net (its a maze)

Ive tried yum update php, but this just stays with 5.1.6

Anyone know any guides or able to help me upgrade?

Thanks ppl:)



Please go through the url : http://www.php.net/m...nix.apache2.php

MyDediServer Support

Australia's Premium Server Provider
0

#5 User is offline   Jst Hosting - Thomas 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 163
  • Joined: 10-October 09
  • Reputation: 8
  • Gender:Male
  • Location:Wales, U.K
  • Experience:Advanced
  • Area of Expertise:System Administrator

Posted 12 October 2009 - 11:08 AM

View PostAnth Winter, on 06 July 2009 - 02:35 PM, said:

Hey, i have root access to a linux server with CentOs installed

php version is 5.1.6-23.2.el5_3

ive been looking on guides on how to upgrade my php version but cant find anything, not even on PHP.net (its a maze)

Ive tried yum update php, but this just stays with 5.1.6

Anyone know any guides or able to help me upgrade?

Thanks ppl:)


Be careful though, there are known compatibility issues in PHP 5.3.*
0

#6 User is offline   UK Web hosting 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 287
  • Joined: 02-January 10
  • Reputation: 9
  • Gender:Male
  • Location:UK
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 02 January 2010 - 11:03 AM

View PostAnth Winter, on 06 July 2009 - 02:35 PM, said:

Hey, i have root access to a linux server with CentOs installed

php version is 5.1.6-23.2.el5_3

ive been looking on guides on how to upgrade my php version but cant find anything, not even on PHP.net (its a maze)

Ive tried yum update php, but this just stays with 5.1.6

Anyone know any guides or able to help me upgrade?

Thanks ppl:)



Do you have any control panel installed on your server.. if its cpanel you can do it by using the script easyapache.
0

#7 User is offline   tonytc 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 18
  • Joined: 08-December 09
  • Reputation: 0

Posted 22 February 2010 - 09:48 AM

View PostAnth Winter, on 06 July 2009 - 02:35 PM, said:

Hey, i have root access to a linux server with CentOs installed

php version is 5.1.6-23.2.el5_3

ive been looking on guides on how to upgrade my php version but cant find anything, not even on PHP.net (its a maze)

Ive tried yum update php, but this just stays with 5.1.6

Anyone know any guides or able to help me upgrade?

Thanks ppl:)


Just to give you a little background info in case you are still having problems, yum uses a file that contains the list of software that is installed and urls where it can find updates for each peice of software. These are called repositories. The organisation that provides CentOS has a repository which it maintains and this is set as the default for most applications in the CentOS operating system when you install it.

CentOS at this time only have php 5.1.6 in their repository. Which is why when you run yum update php it comes back with the same version and not the latest.

As suggested above you can compile from source however this is not a good solution if you want to keep a stable production environment server. When you comnpile from source you have to manually manage any dependencies the software may have. The very thing that makes YUM so useful is that it manages these for you.

By far the easiest and most effective solution is to google for repositories that have later versions of php add it to your repositories list and then run YUM update php. From memory, I think a good one with later versions of php is called atomic. These are tried and tested builds that are easy to maintain. There are lots of tutorials on the internet that can take you through these processes step by step.

I went through this exact same problem you went through but it's fairly easy to solve when you find a good guide.

Good luck
0

#8 User is offline   wildchief 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 09-July 10
  • Reputation: 0
  • Gender:Male
  • Location:Emsworth (Near portsmouth)
  • Experience:Beginner
  • Area of Expertise:I'm Learning

Posted 15 July 2010 - 02:50 PM

Hello,

As the other posters have said the Centos Yum repository only holds up to version 5.1.6 of php. This isn't going to change as it is defined by RedHat (Centos is basically redhat with the branding changed). I had to upgrade my php version to 5.2 to run magento on centos 5. I had to mount a different yum repository than the Centos . I will try and dig out the notes on how I did it.

Cheers

Dave
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users