さくらのレンタルサーバーに合わせた仮想環境にPHPをインストール。bootstrap済みのpkgで簡単にインストールできた。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
$ sudo pkg install php74 Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. The following 4 package(s) will be affected (of 0 checked): New packages to be INSTALLED: libargon2: 20190702 libxml2: 2.9.10_4 pcre2: 10.37 php74: 7.4.20 Number of packages to be installed: 4 The process will require 40 MiB more space. 6 MiB to be downloaded. Proceed with this action? [y/N]: y [1/4] Fetching php74-7.4.20.txz: 100% 4 MiB 2.1MB/s 00:02 [2/4] Fetching libxml2-2.9.10_4.txz: 100% 821 KiB 841.0kB/s 00:01 [3/4] Fetching libargon2-20190702.txz: 100% 63 KiB 64.7kB/s 00:01 [4/4] Fetching pcre2-10.37.txz: 100% 1 MiB 1.3MB/s 00:01 Checking integrity... done (0 conflicting) [1/4] Installing libxml2-2.9.10_4... [1/4] Extracting libxml2-2.9.10_4: 100% [2/4] Installing libargon2-20190702... [2/4] Extracting libargon2-20190702: 100% [3/4] Installing pcre2-10.37... [3/4] Extracting pcre2-10.37: 100% [4/4] Installing php74-7.4.20... [4/4] Extracting php74-7.4.20: 100% $ php -v PHP 7.4.20 (cli) (built: Jun 8 2021 01:11:43) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies |