PHP on CentOS6

General support questions
Post Reply
curtislholt
Posts: 2
Joined: 2018/11/20 22:01:58

PHP on CentOS6

Post by curtislholt » 2018/11/20 22:06:13

Hello Everyone,

First of all I'd like to thank everybody reading and helping out with my issue. Basically at the moment I have a VPS with a French hosting company called OVH. The max CentOS version they offer with plesk is CentOS6. At the moment I am running version 6.10 (Final), my current php version is 5.3.3 and I want to update this as obviously it's out of date and running out of support. As I am aware this version of CentOS dosen't support anything like PHP 7 and so I am wondering what is my best way to go around sorting my issue.

Kindest Reagrds
Curtis Holt

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

Re: PHP on CentOS6

Post by TrevorH » 2018/11/20 22:22:24

Actually the 5.3.3 version of php that we ship on CentOS 6 is supported by Redhat until CentOS 6 goes EOL in 2020. Security fixes will get backported by Redhat to their version if required.
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

curtislholt
Posts: 2
Joined: 2018/11/20 22:01:58

Re: PHP on CentOS6

Post by curtislholt » 2018/11/20 22:30:20

TrevorH wrote:
2018/11/20 22:22:24
Actually the 5.3.3 version of php that we ship on CentOS 6 is supported by Redhat until CentOS 6 goes EOL in 2020. Security fixes will get backported by Redhat to their version if required.
So are you saying I don't actually need to update my PHP until 2020??

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

Re: PHP on CentOS6

Post by TrevorH » 2018/11/21 01:12:12

RHEL 6 (and thus CentOS 6) is supported by Redhat until Nov 2020. It has gone into production phase 3 which means it now only gets critical security updates (and selected lower priority ones that Redhat care to issue) but it's still supported for most of the next 2 years.

I'm pretty sure that OVH do CentOS 7 as well but the limiting factor may be Plesk so perhaps you want to review why you want that and if you can do without.
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

lknls
Posts: 9
Joined: 2018/11/12 17:26:13
Contact:

Re: PHP on CentOS6

Post by lknls » 2018/11/30 08:04:14

Hello;

Upgrading php version is a task which you can easily complete. You can use the following ssh commands to complete this task

this will show your existing php version

Code: Select all

# php --version
download Remi and EPEL Repository packages:

Code: Select all

wget -q http://rpms.remirepo.net/enterprise/remi-release-7.rpm
wget -q https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Install both previously downloaded packages and enable Remi PHP 7 repo:

Code: Select all

# rpm -i remi-release-7.rpm epel-release-latest-7.noarch.rpm
FOR PHP 7.0 EXECUTE:
# yum-config-manager --enable remi-php70
FOR PHP 7.1 EXECUTE:
# yum-config-manager --enable remi-php71
FOR PHP 7.2 EXECUTE:
# yum-config-manager --enable remi-php72
install php

Code: Select all

yum install php
Alternatively, upgrade entire system with yum update command:

Code: Select all

yum update
It's done. You are using the latest version of php

Post Reply