VestaCP - как обновить PHP до 7.0/7.1 на CentOS 6

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


VestaCP - как обновить PHP до 7.0/7.1 на CentOS 6

Должны быть подключены репозитории epel + webatic:

# rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

Проверяем что сейчас установлено и что есть в репозиториях:

# yum list installed php*
# yum list available php* | grep php7

Удаляем php и ставим php 7.0.x

# yum remove php*
# yum install php70w php70w-cli php70w-common php70w-gd php70w-mbstring php70w-mysql php70w-pdo php70w-xml php70w-soap.x86_64 php70w-mcrypt.x86_64 php70w-bcmath.x86_64
# yum install squirrelmail.noarch
# /etc/init.d/httpd restart


# php -v
PHP 7.0.19 (cli) (built: May 12 2017 21:20:16) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies