PHP 7.3 : Install
Make sure the current enabled version of PHP and Install it.
[root@dlp ~]# dnf module list php
CentOS-8 - AppStream
Name Stream Profiles Summary
php 7.2 [d][e] common [d] [i], devel, minimal PHP scripting language
php 7.3 common, devel, minimal PHP scripting language
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
# if other versions are enabled, reset once and switch to the version
[root@dlp ~]# dnf module reset php
[root@dlp ~]# dnf module enable php:7.3
# update to PHP 7.3
[root@dlp ~]# dnf module -y update php:7.3
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Upgrading:
php-cli x86_64 7.3.5-3.module_el8.1.0+252+0d4e049c AppStream 3.0 M
php-common x86_64 7.3.5-3.module_el8.1.0+252+0d4e049c AppStream 663 k
php-fpm x86_64 7.3.5-3.module_el8.1.0+252+0d4e049c AppStream 1.6 M
php-json x86_64 7.3.5-3.module_el8.1.0+252+0d4e049c AppStream 73 k
php-mbstring x86_64 7.3.5-3.module_el8.1.0+252+0d4e049c AppStream 610 k
php-xml x86_64 7.3.5-3.module_el8.1.0+252+0d4e049c AppStream 188 k
Transaction Summary
================================================================================
Upgrade 6 Packages
.....
.....
[root@dlp ~]# php -v
PHP 7.3.5 (cli) (built: Apr 30 2019 08:37:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies
# verify to create test script
[root@dlp ~]# echo "<?php echo 'PHP 7.3 Test Page'.\"\n\"; ?>" > php_test.php
[root@dlp ~]# php php_test.php
PHP 7.3 Test Page
Comments
Post a Comment