Debian 13 trixie

PHP 8.4 : Install2025/09/05

 

Install PHP.

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

PHP 8.4.11 (cli) (built: Aug  3 2025 07:32:21) (NTS)
Copyright (c) The PHP Group
Built by Debian
Zend Engine v4.4.11, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.11, 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.4.11

System => Linux dlp.srv.world 6.12.41+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.41-1 (2025-08-12) x86_64
Build Date => Aug  3 2025 07:32:21
Build System => Linux
Build Provider => Debian
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/8.4/cli
Matched Content