Install PHP 7.0
2016/03/10
|
The version of PHP in CentOS 7 repository is 5.4 but Install 7.0 with RPM package if you need.
| |
[1] | Install Remi repository which provides RPM packages. |
[root@dlp ~]#
yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
|
[2] | Install PHP 7 from Remi repository. |
[root@dlp ~]#
yum --enablerepo=remi -y install php70
# possible to access with "php70"
[root@dlp ~]#
php70 -v
PHP 7.0.4 (cli) (built: Mar 2 2016 17:13:39) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
# php70 binary is under the /opt/remi/php70
[root@dlp ~]#
ll /bin/php70
lrwxrwxrwx 1 root root 32 Mar 11 11:48 /bin/php70 -> /opt/remi/php70/root/usr/bin/php
# if using scl command, then possible to access with "php"
[root@dlp ~]#
scl enable php70 bash
[root@dlp ~]#
php -v
PHP 7.0.4 (cli) (built: Mar 2 2016 17:13:39) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies |
Nenhum comentário:
Postar um comentário