FreeBSD 14
Sponsored Link

PHP 8.1 : Install2024/01/30

 

Install PHP 8.1.

[1] Install PHP 8.1.
root@dlp:~ #
pkg install -y php81

Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        libargon2: 20190702
        php81: 8.1.27

Number of packages to be installed: 2

The process will require 25 MiB more space.
4 MiB to be downloaded.

.....
.....

root@dlp:~ #
php -v

PHP 8.1.27 (cli) (built: Jan  6 2024 01:46:08) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.27, Copyright (c) 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.1.27

System => FreeBSD www.srv.world 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
Build Date => Jan  6 2024 01:41:33
Build System => FreeBSD 140amd64-quarterly-job-01 14.0-RELEASE-p4 FreeBSD 14.0-RELEASE-p4 amd64
.....
.....
Matched Content