AlmaLinux 9
Sponsored Link

PHP 8.0 : Install2023/03/03

 
Install PHP 8.0.
[1] Install PHP 8.0.
[root@dlp ~]#
dnf -y install php

Dependencies resolved.
================================================================================
 Package               Arch        Version                 Repository      Size
================================================================================
Installing:
 php                   x86_64      8.0.13-1.el9            appstream       10 k
Installing dependencies:
 nginx-filesystem      noarch      1:1.20.1-10.el9         appstream       12 k
 php-common            x86_64      8.0.13-1.el9            appstream      682 k
Installing weak dependencies:
 php-cli               x86_64      8.0.13-1.el9            appstream      3.1 M
 php-fpm               x86_64      8.0.13-1.el9            appstream      1.6 M
 php-mbstring          x86_64      8.0.13-1.el9            appstream      472 k
 php-opcache           x86_64      8.0.13-1.el9            appstream      512 k
 php-pdo               x86_64      8.0.13-1.el9            appstream       88 k
 php-xml               x86_64      8.0.13-1.el9            appstream      138 k

Transaction Summary
================================================================================
Install  9 Packages

.....
.....

[root@dlp ~]#
php -v

PHP 8.0.13 (cli) (built: Nov 16 2021 18:07:21) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.13, Copyright (c), by Zend Technologies

# verify to create test script

[root@dlp ~]#
echo '<?php echo `php -i`."\n"; ?>' > php_test.php

[root@dlp ~]#
php php_test.php

phpinfo()
PHP Version => 8.0.13

System => Linux www.srv.world 5.14.0-70.el9.x86_64 #1 SMP PREEMPT Thu Feb 24 23:01:31 UTC 2022 x86_64
Build Date => Nov 16 2021 18:07:21
Build System => CentOS Stream release 9
Build Provider => CentOS
Compiler => gcc (GCC) 11.2.1 20211019 (Red Hat 11.2.1-6)
Architecture => x86_64
Server API => Command Line Interface

.....
.....
Matched Content