Page 1 of 1

PHP on CentOS6

Posted: 2018/11/20 22:06:13
by curtislholt
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

Re: PHP on CentOS6

Posted: 2018/11/20 22:22:24
by TrevorH
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.

Re: PHP on CentOS6

Posted: 2018/11/20 22:30:20
by curtislholt
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??

Re: PHP on CentOS6

Posted: 2018/11/21 01:12:12
by TrevorH
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.

Re: PHP on CentOS6

Posted: 2018/11/30 08:04:14
by lknls
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