Ubuntu 24.04
Sponsored Link

PHP 8.3 : Install2024/05/17

 
Install PHP.
[1] Install PHP 8.3.
root@www:~#
apt -y install php8.3 php8.3-mbstring php-pear
root@www:~#
php -v

PHP 8.3.6 (cli) (built: Apr 15 2024 19:21:47) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.6, 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.3.6

System => Linux www.srv.world 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
Build Date => Apr 15 2024 19:21:47
Build System => Linux
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/8.3/cli
Loaded Configuration File => /etc/php/8.3/cli/php.ini
Matched Content