How to upgrade php 5

  -  

We are running CentOS 6.8, which comes with php v5.3 which is out of date now. How vì we tăng cấp khổng lồ v5.6?

Thank you.

Bạn đang xem: How to upgrade php 5


DescriptionHi,We are running CentOS 6.8, which comes with php v5.3 which is out of date now. How bởi vì we tăng cấp to v5.6?Thank you.body toàn thân text
*
MAnderson1 year, 10 months agohostingvietnam.vn Staff

Hello!

The official CentOS 6 repos don"t have sầu anything above sầu v5.3, however it appears there are some third các buổi tiệc nhỏ repos that offer 5.6 (and above).

In researching this, I deployed a hostingvietnam.vn with CentOS 6.8 & installed PHP:

yum install phpphp -vPHPhường 5.3.3 (cli) (built: Mar 22 2017 12:27:09)I found this guide that details upgrading to lớn 5.6 from 5.3

Guide

After following the steps to lớn install the rengươi repos và editing the .repo file as directed, I did the upgrade:

yum -y upgrade php*And checked again

php -vPHPhường 5.6.40 (cli) (built: Jul 3 2019 07:08:28)So, this guide worked very easily for getting to 5.6 for me. I"m not sure what your particular requirements are for going khổng lồ 5.6, but these repos will allow for nâng cấp to a more recent version as well.

Xem thêm: Hướng Dẫn Cách Cài Wifi Cho Laptop Win 7 Nhanh Nhất, Cách Bắt Wifi Cho Laptop Win 7

I followed this guide to tăng cấp lớn v7.0

yum install yum-utilsAfter installing yum-utils, I upgraded to lớn 7.0 (the other options lượt thích 7.1 also worked for me)

yum-config-manager --enable remi-php70yum -y nâng cấp php*php -vPHPhường 7.0.33 (cli) (built: Jul 2 2019 18:47:44) ( NTS )Hopefully this helps!


DescriptionHello!The official CentOS 6 repos don't have anything above v5.3, however it appears there are some third các buổi tiệc nhỏ repos that offer 5.6 (và above).In researching this, I deployed a hostingvietnam.vn with CentOS 6.8 and installed PHP:```yum install phpphp -vPHPhường 5.3.3 (cli) (built: Mar 22 2017 12:27:09)```I found this guide that details upgrading to lớn 5.6 from 5.3(https://www.zerostopbits.com/how-to-upgrade-php-5-3-to-php-5-6-on-centos-6-7/)After following the steps to lớn install the remi repos và editing the .repo file as directed, I did the upgrade:```yum -y tăng cấp php*```And checked again```php -vPHP 5.6.40 (cli) (built: Jul 3 2019 07:08:28)```So, this guide worked very easily for getting to 5.6 for me. I'm not sure what your particular requirements are for going lớn 5.6, but these repos will allow for upgrade lớn a more recent version as well.I followed (https://www.tecmint.com/install-php-7-in-centos-6/) khổng lồ upgrade to v7.0```yum install yum-utils```After installing yum-utils, I upgraded lớn 7.0 (the other options lượt thích 7.1 also worked for me)```yum-config-manager --enable remi-php70yum -y nâng cấp php*php -vPHPhường 7.0.33 (cli) (built: Jul 2 2019 18:47:44) ( NTS )```Hopefully this helps!

Hello!

The official CentOS 6 repos don't have anything above sầu v5.3, however it appears there are some third party repos that offer 5.6 (& above).

Xem thêm: Tcp/Ip Là Gì ? Những Thông Tin Cần Biết Về Giao Thức Tcp/Ip

In researching this, I deployed a hostingvietnam.vn with CentOS 6.8 và installed PHP:

yum install phpphp -vPHP.. 5.3.3 (cli) (built: Mar 22 2017 12:27:09)I found this guide that details upgrading khổng lồ 5.6 from 5.3

Guide

After following the steps lớn install the remi repos and editing the .repo tệp tin as directed, I did the upgrade:

yum -y nâng cấp php*And checked again

php -vPHP.. 5.6.40 (cli) (built: Jul 3 2019 07:08:28)So, this guide worked very easily for getting to 5.6 for me. I'm not sure what your particular requirements are for going khổng lồ 5.6, but these repos will allow for upgrade to a more recent version as well.

I followed this guide khổng lồ upgrade khổng lồ v7.0

yum install yum-utilsAfter installing yum-utils, I upgraded to lớn 7.0 (the other options like 7.1 also worked for me)

yum-config-manager --enable remi-php70yum -y nâng cấp php*php -vPHP 7.0.33 (cli) (built: Jul 2 2019 18:47:44) ( NTS )Hopefully this helps!