How to install php 7.2 on Linux Centos 8
Install php with yum install php command
[root@analytic ~]# yum install php
LiteSpeed Tech Repository for CentOS 8 - x86_64 761 B/s | 1.1 kB 00:01
LiteSpeed Tech Repository for CentOS 8 - x86_64 731 B/s | 1.1 kB 00:01
Failed to synchronize cache for repo 'litespeed', ignoring this repo.
Failed to synchronize cache for repo 'litespeed-update', ignoring this repo.
Last metadata expiration check: 1:23:21 ago on Fri 27 Sep 2019 02:16:23 PM WIB.
Dependencies resolved.
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
php x86_64 7.2.11-1.module_el8.0.0+56+d1ca79aa AppStream 1.5 M
Installing dependencies:
nginx-filesystem noarch 1:1.14.1-8.module_el8.0.0+5+258f653c AppStream 24 k
php-cli x86_64 7.2.11-1.module_el8.0.0+56+d1ca79aa AppStream 3.1 M
php-common x86_64 7.2.11-1.module_el8.0.0+56+d1ca79aa AppStream 653 k
Installing weak dependencies:
php-fpm x86_64 7.2.11-1.module_el8.0.0+56+d1ca79aa AppStream 1.6 M
Enabling module streams:
nginx 1.14
php 7.2
Transaction Summary
======================================================================================================================================
Install 5 Packages
Total download size: 6.9 M
Installed size: 26 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): nginx-filesystem-1.14.1-8.module_el8.0.0+5+258f653c.noarch.rpm 9.9 kB/s | 24 kB 00:02
(2/5): php-common-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64.rpm 312 kB/s | 653 kB 00:02
(3/5): php-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64.rpm 273 kB/s | 1.5 MB 00:05
(4/5): php-fpm-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64.rpm 842 kB/s | 1.6 MB 00:01
(5/5): php-cli-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64.rpm 477 kB/s | 3.1 MB 00:06
--------------------------------------------------------------------------------------------------------------------------------------
Total 881 kB/s | 6.9 MB 00:08
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : php-common-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 1/5
Installing : php-cli-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 2/5
Running scriptlet: nginx-filesystem-1:1.14.1-8.module_el8.0.0+5+258f653c.noarch 3/5
Installing : nginx-filesystem-1:1.14.1-8.module_el8.0.0+5+258f653c.noarch 3/5
Installing : php-fpm-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 4/5
Running scriptlet: php-fpm-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 4/5
Installing : php-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 5/5
Running scriptlet: php-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 5/5
Running scriptlet: php-fpm-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 5/5
Verifying : nginx-filesystem-1:1.14.1-8.module_el8.0.0+5+258f653c.noarch 1/5
Verifying : php-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 2/5
Verifying : php-cli-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 3/5
Verifying : php-common-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 4/5
Verifying : php-fpm-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 5/5
Installed:
php-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64 php-fpm-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64
nginx-filesystem-1:1.14.1-8.module_el8.0.0+5+258f653c.noarch php-cli-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64
php-common-7.2.11-1.module_el8.0.0+56+d1ca79aa.x86_64
Complete!
[root@analytic ~]#
[root@analytic ~]#
Check the php version
[root@analytic ~]# php -v
PHP 7.2.11 (cli) (built: Oct 9 2018 15:09:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
[root@analytic ~]#
Tidak ada komentar :
Posting Komentar