Koozali.org: home of the SME Server

How to upgrade php version?

Offline Philippe MARTY

  • *
  • 37
  • +0/-0
How to upgrade php version?
« on: February 08, 2014, 07:55:47 AM »
Hello,

My SME server 8 is bundled with php 5.3.3
How can I upgrade to a more recent version of php, like 5.4 or 5.5?
Is there any doc around here ? (can't find with google or this forum searches)
Thanks for your help
Keep smiling with the sun and singing with the birds
www.atelier51.com

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: How to upgrade php version?
« Reply #1 on: February 08, 2014, 12:17:37 PM »
Hi

upgrading PHP and/or Mysql can break your server..
you can follow any centos 5.x howto as long as you use rpms to do the upgrade..

if something will break, you are on your own.. ;-)

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: How to upgrade php version?
« Reply #2 on: February 08, 2014, 02:50:55 PM »
Philippe MARTY

Search forums on webtatic.
There were some instructions posted that should give you sufficient idea.

You will most likely have problems at upgrade time, so plan a strategy to downgrade php to standard before you do a general upgrade of your server, & then upgrade php again after any major server upgrade.
It's easy enough to do, but you may run into unforseeable problems with dependency issues where various contribs or other packages require a certain php version/name to be installed.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Philippe MARTY

  • *
  • 37
  • +0/-0
Re: How to upgrade php version?
« Reply #3 on: March 03, 2014, 08:11:40 AM »
Well, to be more prudent, I'd stay with 5.3 version.
But I need to upgrade at least to 5.3.10 as I work a lot with Joomla.
My sme server is a webserver for developing purpose.

But next Joomla version (3.3) will require at least php 5.3.10 (see here: http://developer.joomla.org/news/577-planning-for-joomla-3-3.html)

So is there a easy and safe way to upgrade to this "minor release" of php, from the 5.3.3?

Thanks for your help
Keep smiling with the sun and singing with the birds
www.atelier51.com

Offline lclaude

  • 2
  • +0/-0
Re: How to upgrade php version?
« Reply #4 on: March 28, 2014, 08:11:00 PM »
Hi,

I'm in the same situation as Philippe: I am a user of Joomla,
and I would like to know if there a possibility of at least pass php to Version 5.3.10 on a SME8.1.

Is there someone who has an idea to do this?
thanks

Laurent

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: How to upgrade php version?
« Reply #5 on: March 28, 2014, 08:33:02 PM »
Looks promising:  http://forums.contribs.org/index.php/topic,50585.0.html

Post by user wdepot

Be aware you are leaving your system open to future trouble if/when any updates are applied..

Do all at your own risk as it may break your server.
« Last Edit: March 28, 2014, 08:35:03 PM by TerryF »
--
qui scribit bis legit

Offline Philippe MARTY

  • *
  • 37
  • +0/-0
Re: How to upgrade php version?
« Reply #6 on: April 29, 2014, 12:01:10 PM »
Going to SME9 is a really heavy upgrade.

I just need to upgrade php minor version from 5.3.3 to 5.3.28, the last known 5.3.x version...
And I rather like to stay on SME 8.1
I hope that kind of upgrade is not too risky for other contribs?

Does anyone have the clue? How to to that?
Thanks for your help
Keep smiling with the sun and singing with the birds
www.atelier51.com

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: How to upgrade php version?
« Reply #7 on: April 29, 2014, 12:06:44 PM »
you've been already told you can follow any Centos5 howto to upgrade your php.. but you must be aware that you could break something..

create a virtual test machine, clone your server and do some tests

Offline Philippe MARTY

  • *
  • 37
  • +0/-0
Re: How to upgrade php version?
« Reply #8 on: April 29, 2014, 12:26:43 PM »
Thanks Stefano for the link to "clone server", I didn't know this procedure.

I'm going to test this.
Thanks a lot
Keep smiling with the sun and singing with the birds
www.atelier51.com

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: How to upgrade php version?
« Reply #9 on: April 29, 2014, 05:36:22 PM »
of course all what i'm saying will not be done directly on your product server.

reading a bit on how to upgrade easily php for sme9, i'm wondering  if you can try for sme8 with the same manner : remi collet

http://wiki.contribs.org/Remi#Remi-php55_EL6
of course you should adapt because here it is for sme9 : replace 6->5
http://wiki.contribs.org/Epel

after that

yum install php --enablerepo=epel,remi-php55

the biggest issue i know with upgraded php is when the package is renamed to php55 for example. Here remi has kept the name of php. Obviously it is also possible that it breaks your test server.
Please report here your attempts.
« Last Edit: April 29, 2014, 05:53:15 PM by stephdl »
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline Philippe MARTY

  • *
  • 37
  • +0/-0
Re: How to upgrade php version?
« Reply #10 on: April 30, 2014, 10:21:04 AM »
Hello,

For beginning my tests, I've installed a fresh sme server 8.1
I've tried to update php following these steps :
Code: [Select]
/sbin/e-smith/db yum_repositories set remi-php55 repository \
Name 'Remi-php55 - EL5' \
BaseURL 'http://rpms.famillecollet.com/enterprise/5/php55/$basearch/' \
EnableGroups no \
GPGCheck yes \
GPGKey http://rpms.famillecollet.com/RPM-GPG-KEY-remi \
Visible no \
status disabled
then
Code: [Select]
/sbin/e-smith/db yum_repositories set epel repository \
Name 'Epel - EL5' \
BaseUrl 'http://download.fedoraproject.org/pub/epel/5/$basearch' \
MirrorList 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch' \
EnableGroups no \
GPGCheck yes \
GPGKey http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL \
Visible no \
status disabled
then
Code: [Select]
signal-event yum-modifyand finally
Code: [Select]
yum update php --enablerepo=epel,remi-php55
But here's the answer of the server...
Quote
No Packages marked for Update

What did I miss (as the noob I am...)?
Thanks :)
Keep smiling with the sun and singing with the birds
www.atelier51.com

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: How to upgrade php version?
« Reply #11 on: April 30, 2014, 10:34:17 AM »
Code: [Select]
signal-event yum-modifyand finally
Code: [Select]
yum update php --enablerepo=epel,remi-php55

At a guess because you do not have a package called remi-php currently installed
--
qui scribit bis legit

Offline Philippe MARTY

  • *
  • 37
  • +0/-0
Re: How to upgrade php version?
« Reply #12 on: April 30, 2014, 10:40:39 AM »
?
remi-php55 is one of the repositories' names!
Keep smiling with the sun and singing with the birds
www.atelier51.com

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: How to upgrade php version?
« Reply #13 on: April 30, 2014, 10:41:55 AM »
Sorry, misread your yum line..
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: How to upgrade php version?
« Reply #14 on: April 30, 2014, 10:45:13 AM »
Na, not that either...
--
qui scribit bis legit