PHP 8.2 : Install2023/07/03 |
Install PHP.
|
|
[1] | Install PHP 8.2. |
root@www:~#
root@www:~# apt -y install php8.2 php8.2-mbstring php-pear php -v PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.7, Copyright (c) Zend Technologies with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies # verify installation to create a test script root@www:~# echo '<?php echo `php -i`."\n"; ?>' > php_test.php root@www:~# php php_test.php | head phpinfo() PHP Version => 8.2.7 System => Linux dlp.srv.world 6.1.0-9-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.27-1 (2023-05-08) x86_64 Build Date => Jun 9 2023 19:37:27 Build System => Linux Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /etc/php/8.2/cli Loaded Configuration File => /etc/php/8.2/cli/php.ini |