Update PHP-5.3.4 in CentOS 6.5

Issues related to applications and software problems
Post Reply
Usual
Posts: 2
Joined: 2015/03/25 02:26:28

Update PHP-5.3.4 in CentOS 6.5

Post by Usual » 2015/03/25 02:35:35

PHP 5.3.4 or higher version is required by laravel php framework, so I update php in my CentOS 6.5 by running

Code: Select all

sudo yum update php
,but it doesn't work.

CentOS 6.5 contains PHP-5.3.3 as its highest version in yum epository, so how can I update my php easily?

Thx.

User avatar
MoonWolf
Posts: 81
Joined: 2013/11/07 10:31:59

Re: Update PHP-5.3.4 in CentOS 6.5

Post by MoonWolf » 2015/03/25 07:26:39

You may try install php 5.4 from SCL but it installs parallel with core packages and i don't know if it will be seen by your framework (depends on how are you installing it). As the other option you may install php 5.6 from IUS repo, but be carefull as it replaces core packages.
Over And Out
MoonWolf

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Update PHP-5.3.4 in CentOS 6.5

Post by TrevorH » 2015/03/25 09:11:43

IUS is very careful not to replace core packages. It names them all differently so that they are not automatically picked up and replaced. It requires sysadmin intervention to have them replaced.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Usual
Posts: 2
Joined: 2015/03/25 02:26:28

Re: Update PHP-5.3.4 in CentOS 6.5

Post by Usual » 2015/03/27 02:12:18

I reinstalled my php 5.4 yesterday with a repo named remi, thx a lot.

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: Update PHP-5.3.4 in CentOS 6.5

Post by remirepo » 2015/03/27 09:29:17

:)
Remi's Repository - Forum - Blog

arpee1
Posts: 6
Joined: 2015/05/01 19:41:52

Re: Update PHP-5.3.4 in CentOS 6.5

Post by arpee1 » 2015/05/01 20:07:37

DId upgrading php using the remi repo install a second php or upgrade the 5.3 that was installed before?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Update PHP-5.3.4 in CentOS 6.5

Post by TrevorH » 2015/05/01 20:35:11

If you install the remi repo then it replaces the original php with a newer version. If you're not careful it will also have done the same for mysql and any other packages that are in the remi repo at a higher version number than the ones from base.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

arpee1
Posts: 6
Joined: 2015/05/01 19:41:52

Re: Update PHP-5.3.4 in CentOS 6.5

Post by arpee1 » 2015/05/04 14:44:00

TrevorH wrote:If you install the remi repo then it replaces the original php with a newer version. If you're not careful it will also have done the same for mysql and any other packages that are in the remi repo at a higher version number than the ones from base.
Ye I realise you have to specify remi repo to do the updates

Post Reply