総数:15 今日:1 昨日:0
https://qiita.com/witchcraze/items/acb88555e0cf96e78c10
https://www.yokoweb.net/2018/05/12/ubuntu-18_04-apache2-php72/
https://linuxize.com/post/how-to-install-and-secure-phpmyadmin-with-apache-on-ubuntu-18-04/
~$ sudo apt install -y php
パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下の追加パッケージがインストールされます: libapache2-mod-php7.4 php7.4 php7.4-cli php7.4-json php7.4-opcache php7.4-readline 提案パッケージ: php-pear 以下のパッケージが新たにインストールされます: libapache2-mod-php7.4 php php7.4 php7.4-cli php7.4-json php7.4-opcache php7.4-readline アップグレード: 0 個、新規インストール: 7 個、削除: 0 個、保留: 0 個。 3,028 kB のアーカイブを取得する必要があります。 この操作後に追加で 10.3 MB のディスク容量が消費されます。 取得:1 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-json amd64 7.4.3-4ubuntu2.4 [19.2 kB] 取得:2 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-opcache amd64 7.4.3-4ubuntu2.4 [198 kB] 取得:3 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-readline amd64 7.4.3-4ubuntu2.4 [12.6 kB] 取得:4 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-cli amd64 7.4.3-4ubuntu2.4 [1,422 kB] 取得:5 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libapache2-mod-php7.4 amd64 7.4.3-4ubuntu2.4 [1,364 kB] 取得:6 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4 all 7.4.3-4ubuntu2.4 [9,248 B] 取得:7 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 php all 2:7.4+75 [2,712 B] 3,028 kB を 1秒 で取得しました (2,047 kB/s) 以前に未選択のパッケージ php7.4-json を選択しています。 (データベースを読み込んでいます ... 現在 197555 個のファイルとディレクトリがインストールされています。) .../0-php7.4-json_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-json (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php7.4-opcache を選択しています。 .../1-php7.4-opcache_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-opcache (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php7.4-readline を選択しています。 .../2-php7.4-readline_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-readline (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php7.4-cli を選択しています。 .../3-php7.4-cli_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-cli (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ libapache2-mod-php7.4 を選択しています。 .../4-libapache2-mod-php7.4_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... libapache2-mod-php7.4 (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php7.4 を選択しています。 .../5-php7.4_7.4.3-4ubuntu2.4_all.deb を展開する準備をしています ... php7.4 (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php を選択しています。 .../6-php_2%3a7.4+75_all.deb を展開する準備をしています ... php (2:7.4+75) を展開しています... php7.4-json (7.4.3-4ubuntu2.4) を設定しています ... Creating config file /etc/php/7.4/mods-available/json.ini with new version php7.4-readline (7.4.3-4ubuntu2.4) を設定しています ... Creating config file /etc/php/7.4/mods-available/readline.ini with new version php7.4-opcache (7.4.3-4ubuntu2.4) を設定しています ... Creating config file /etc/php/7.4/mods-available/opcache.ini with new version php7.4-cli (7.4.3-4ubuntu2.4) を設定しています ... update-alternatives: /usr/bin/php (php) を提供するために自動モードで /usr/bin/php7.4 を使います update-alternatives: /usr/bin/phar (phar) を提供するために自動モードで /usr/bin/phar7.4 を使います update-alternatives: /usr/bin/phar.phar (phar.phar) を提供するために自動モードで /usr/bin/phar.phar7.4 を使います Creating config file /etc/php/7.4/cli/php.ini with new version libapache2-mod-php7.4 (7.4.3-4ubuntu2.4) を設定しています ... Creating config file /etc/php/7.4/apache2/php.ini with new version Module mpm_event disabled. Enabling module mpm_prefork. apache2_switch_mpm Switch to prefork apache2_invoke: Enable module php7.4 php7.4 (7.4.3-4ubuntu2.4) を設定しています ... php (2:7.4+75) を設定しています ... man-db (2.9.1-1) のトリガを処理しています ... php7.4-cli (7.4.3-4ubuntu2.4) のトリガを処理しています ... libapache2-mod-php7.4 (7.4.3-4ubuntu2.4) のトリガを処理しています ...
~$ which php /usr/bin/php ~$ php -i | grep php.ini Configuration File (php.ini) Path => /etc/php/7.4/cli Loaded Configuration File => /etc/php/7.4/cli/php.ini ~$ apt show php Package: php Version: 2:7.4+75 Priority: optional Section: php Source: php-defaults (75) Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Debian PHP Maintainers <team+pkg-php@tracker.debian.org> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 13.3 kB Depends: php7.4 Download-Size: 2,712 B APT-Manual-Installed: yes APT-Sources: http://jp.archive.ubuntu.com/ubuntu focal/main amd64 Packages Description: サーバーサイド・HTML埋め込みスクリプト言語 (デフォルト) PHP (PHP: Hypertext Preprocessor の再帰的頭字語) は広く使われている オープンソースな汎用スクリプト言語で、特にウェブ開発に適しており、 HTML に組み込むことができます。 . This package is a dependency package, which depends on latest stable PHP version (currently 7.4).
~$ sudo apt -y install libapache2-mod-php7.4
パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 libapache2-mod-php7.4 はすでに最新バージョン (7.4.3-4ubuntu2.4) です。 libapache2-mod-php7.4 は手動でインストールしたと設定されました。 アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。
~$ sudo gvim -f /var/www/html/info.php
<?php phpinfo(); ?>
http://192.168.3.12/info.php
参考url https://php.tutorials24x7.com/blog/how-to-install-mcrypt-for-php-7-on-ubuntu-20-04-lts
参考url https://websiteforstudents.com/install-php-7-2-mcrypt-module-on-ubuntu-18-04-lts/
Install the PHP development package using the below-mentioned command.
~$ sudo apt install php7.4-dev
パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下の追加パッケージがインストールされます: autoconf automake autopoint autotools-dev build-essential debhelper dh-autoreconf dh-strip-nondeterminism dpkg-dev dwz fakeroot g++ g++-9 gettext intltool-debian libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libarchive-cpio-perl libarchive-zip-perl libcroco3 libdebhelper-perl libfakeroot libfile-stripnondeterminism-perl libltdl-dev libmail-sendmail-perl libpcre2-16-0 libpcre2-dev libpcre2-posix2 libsigsegv2 libssl-dev libstdc++-9-dev libsub-override-perl libsys-hostname-long-perl libtool m4 php-pear php-xml php7.4-xml pkg-php-tools po-debconf shtool 提案パッケージ: autoconf-archive gnu-standards autoconf-doc dh-make debian-keyring g++-multilib g++-9-multilib gcc-9-doc gettext-doc libasprintf-dev libgettextpo-dev libtool-doc libssl-doc libstdc++-9-doc gfortran | fortran95-compiler gcj-jdk m4-doc dh-php libmail-box-perl 以下のパッケージが新たにインストールされます: autoconf automake autopoint autotools-dev build-essential debhelper dh-autoreconf dh-strip-nondeterminism dpkg-dev dwz fakeroot g++ g++-9 gettext intltool-debian libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libarchive-cpio-perl libarchive-zip-perl libcroco3 libdebhelper-perl libfakeroot libfile-stripnondeterminism-perl libltdl-dev libmail-sendmail-perl libpcre2-16-0 libpcre2-dev libpcre2-posix2 libsigsegv2 libssl-dev libstdc++-9-dev libsub-override-perl libsys-hostname-long-perl libtool m4 php-pear php-xml php7.4-dev php7.4-xml pkg-php-tools po-debconf shtool アップグレード: 0 個、新規インストール: 43 個、削除: 0 個、保留: 0 個。 18.8 MB のアーカイブを取得する必要があります。 この操作後に追加で 83.6 MB のディスク容量が消費されます。 続行しますか? [Y/n] Y 取得:1 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libsigsegv2 amd64 2.12-2 [13.9 kB] 取得:2 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 m4 amd64 1.4.18-4 [199 kB] 取得:3 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 autoconf all 2.69-11.1 [321 kB] 取得:4 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 autotools-dev all 20180224.1 [39.6 kB] 取得:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 automake all 1:1.16.1-4ubuntu6 [522 kB] 取得:6 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 autopoint all 0.19.8.1-10build1 [412 kB] 取得:7 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libstdc++-9-dev amd64 9.3.0-17ubuntu1~20.04 [1,714 kB] 取得:8 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 g++-9 amd64 9.3.0-17ubuntu1~20.04 [8,405 kB] 取得:9 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 g++ amd64 4:9.3.0-1ubuntu2 [1,604 B] 取得:10 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 dpkg-dev all 1.19.7ubuntu3 [679 kB] 取得:11 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 build-essential amd64 12.8ubuntu1.1 [4,664 B] 取得:12 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libtool all 2.4.6-14 [161 kB] 取得:13 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 dh-autoreconf all 19 [16.1 kB] 取得:14 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libdebhelper-perl all 12.10ubuntu1 [62.1 kB] 取得:15 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libarchive-zip-perl all 1.67-2 [90.5 kB] 取得:16 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libsub-override-perl all 0.09-2 [9,532 B] 取得:17 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libfile-stripnondeterminism-perl all 1.7.0-1 [15.9 kB] 取得:18 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 dh-strip-nondeterminism all 1.7.0-1 [5,228 B] 取得:19 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 dwz amd64 0.13-5 [151 kB] 取得:20 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libcroco3 amd64 0.6.13-1 [82.5 kB] 取得:21 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 gettext amd64 0.19.8.1-10build1 [895 kB] 取得:22 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 intltool-debian all 0.35.0+20060710.5 [24.9 kB] 取得:23 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 po-debconf all 1.0.21 [233 kB] 取得:24 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 debhelper all 12.10ubuntu1 [877 kB] 取得:25 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libfakeroot amd64 1.24-1 [25.7 kB] 取得:26 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 fakeroot amd64 1.24-1 [62.6 kB] 取得:27 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-diff-perl all 1.19.03-2 [46.6 kB] 取得:28 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-diff-xs-perl amd64 0.04-6 [11.3 kB] 取得:29 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB] 取得:30 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libarchive-cpio-perl all 0.10-1 [9,644 B] 取得:31 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libltdl-dev amd64 2.4.6-14 [162 kB] 取得:32 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libsys-hostname-long-perl all 1.5-1 [11.7 kB] 取得:33 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libmail-sendmail-perl all 0.80-1 [22.6 kB] 取得:34 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libpcre2-16-0 amd64 10.34-7 [181 kB] 取得:35 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libpcre2-posix2 amd64 10.34-7 [5,992 B] 取得:36 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libpcre2-dev amd64 10.34-7 [670 kB] 取得:37 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl-dev amd64 1.1.1f-1ubuntu2.1 [1,582 kB] 取得:38 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-xml amd64 7.4.3-4ubuntu2.4 [97.6 kB] 取得:39 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 php-xml all 2:7.4+75 [2,028 B] 取得:40 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 php-pear all 1:1.10.9+submodules+notgz-1ubuntu0.20.04.2 [286 kB] 取得:41 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 shtool all 2.0.8-10 [122 kB] 取得:42 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-dev amd64 7.4.3-4ubuntu2.4 [538 kB] 取得:43 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 pkg-php-tools all 1.38 [28.3 kB] 18.8 MB を 5秒 で取得しました (3,855 kB/s) パッケージからテンプレートを展開しています: 100% 以前に未選択のパッケージ libsigsegv2:amd64 を選択しています。 (データベースを読み込んでいます ... 現在 197617 個のファイルとディレクトリがインストールされています。) .../00-libsigsegv2_2.12-2_amd64.deb を展開する準備をしています ... libsigsegv2:amd64 (2.12-2) を展開しています... 以前に未選択のパッケージ m4 を選択しています。 .../01-m4_1.4.18-4_amd64.deb を展開する準備をしています ... m4 (1.4.18-4) を展開しています... 以前に未選択のパッケージ autoconf を選択しています。 .../02-autoconf_2.69-11.1_all.deb を展開する準備をしています ... autoconf (2.69-11.1) を展開しています... 以前に未選択のパッケージ autotools-dev を選択しています。 .../03-autotools-dev_20180224.1_all.deb を展開する準備をしています ... autotools-dev (20180224.1) を展開しています... 以前に未選択のパッケージ automake を選択しています。 .../04-automake_1%3a1.16.1-4ubuntu6_all.deb を展開する準備をしています ... automake (1:1.16.1-4ubuntu6) を展開しています... 以前に未選択のパッケージ autopoint を選択しています。 .../05-autopoint_0.19.8.1-10build1_all.deb を展開する準備をしています ... autopoint (0.19.8.1-10build1) を展開しています... 以前に未選択のパッケージ libstdc++-9-dev:amd64 を選択しています。 .../06-libstdc++-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb を展開する準備をしています ... libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) を展開しています... 以前に未選択のパッケージ g++-9 を選択しています。 .../07-g++-9_9.3.0-17ubuntu1~20.04_amd64.deb を展開する準備をしています ... g++-9 (9.3.0-17ubuntu1~20.04) を展開しています... 以前に未選択のパッケージ g++ を選択しています。 .../08-g++_4%3a9.3.0-1ubuntu2_amd64.deb を展開する準備をしています ... g++ (4:9.3.0-1ubuntu2) を展開しています... 以前に未選択のパッケージ dpkg-dev を選択しています。 .../09-dpkg-dev_1.19.7ubuntu3_all.deb を展開する準備をしています ... dpkg-dev (1.19.7ubuntu3) を展開しています... 以前に未選択のパッケージ build-essential を選択しています。 .../10-build-essential_12.8ubuntu1.1_amd64.deb を展開する準備をしています ... build-essential (12.8ubuntu1.1) を展開しています... 以前に未選択のパッケージ libtool を選択しています。 .../11-libtool_2.4.6-14_all.deb を展開する準備をしています ... libtool (2.4.6-14) を展開しています... 以前に未選択のパッケージ dh-autoreconf を選択しています。 .../12-dh-autoreconf_19_all.deb を展開する準備をしています ... dh-autoreconf (19) を展開しています... 以前に未選択のパッケージ libdebhelper-perl を選択しています。 .../13-libdebhelper-perl_12.10ubuntu1_all.deb を展開する準備をしています ... libdebhelper-perl (12.10ubuntu1) を展開しています... 以前に未選択のパッケージ libarchive-zip-perl を選択しています。 .../14-libarchive-zip-perl_1.67-2_all.deb を展開する準備をしています ... libarchive-zip-perl (1.67-2) を展開しています... 以前に未選択のパッケージ libsub-override-perl を選択しています。 .../15-libsub-override-perl_0.09-2_all.deb を展開する準備をしています ... libsub-override-perl (0.09-2) を展開しています... 以前に未選択のパッケージ libfile-stripnondeterminism-perl を選択しています。 .../16-libfile-stripnondeterminism-perl_1.7.0-1_all.deb を展開する準備をしています ... libfile-stripnondeterminism-perl (1.7.0-1) を展開しています... 以前に未選択のパッケージ dh-strip-nondeterminism を選択しています。 .../17-dh-strip-nondeterminism_1.7.0-1_all.deb を展開する準備をしています ... dh-strip-nondeterminism (1.7.0-1) を展開しています... 以前に未選択のパッケージ dwz を選択しています。 .../18-dwz_0.13-5_amd64.deb を展開する準備をしています ... dwz (0.13-5) を展開しています... 以前に未選択のパッケージ libcroco3:amd64 を選択しています。 .../19-libcroco3_0.6.13-1_amd64.deb を展開する準備をしています ... libcroco3:amd64 (0.6.13-1) を展開しています... 以前に未選択のパッケージ gettext を選択しています。 .../20-gettext_0.19.8.1-10build1_amd64.deb を展開する準備をしています ... gettext (0.19.8.1-10build1) を展開しています... 以前に未選択のパッケージ intltool-debian を選択しています。 .../21-intltool-debian_0.35.0+20060710.5_all.deb を展開する準備をしています ... intltool-debian (0.35.0+20060710.5) を展開しています... 以前に未選択のパッケージ po-debconf を選択しています。 .../22-po-debconf_1.0.21_all.deb を展開する準備をしています ... po-debconf (1.0.21) を展開しています... 以前に未選択のパッケージ debhelper を選択しています。 .../23-debhelper_12.10ubuntu1_all.deb を展開する準備をしています ... debhelper (12.10ubuntu1) を展開しています... 以前に未選択のパッケージ libfakeroot:amd64 を選択しています。 .../24-libfakeroot_1.24-1_amd64.deb を展開する準備をしています ... libfakeroot:amd64 (1.24-1) を展開しています... 以前に未選択のパッケージ fakeroot を選択しています。 .../25-fakeroot_1.24-1_amd64.deb を展開する準備をしています ... fakeroot (1.24-1) を展開しています... 以前に未選択のパッケージ libalgorithm-diff-perl を選択しています。 .../26-libalgorithm-diff-perl_1.19.03-2_all.deb を展開する準備をしています ... libalgorithm-diff-perl (1.19.03-2) を展開しています... 以前に未選択のパッケージ libalgorithm-diff-xs-perl を選択しています。 .../27-libalgorithm-diff-xs-perl_0.04-6_amd64.deb を展開する準備をしています ... libalgorithm-diff-xs-perl (0.04-6) を展開しています... 以前に未選択のパッケージ libalgorithm-merge-perl を選択しています。 .../28-libalgorithm-merge-perl_0.08-3_all.deb を展開する準備をしています ... libalgorithm-merge-perl (0.08-3) を展開しています... 以前に未選択のパッケージ libarchive-cpio-perl を選択しています。 .../29-libarchive-cpio-perl_0.10-1_all.deb を展開する準備をしています ... libarchive-cpio-perl (0.10-1) を展開しています... 以前に未選択のパッケージ libltdl-dev:amd64 を選択しています。 .../30-libltdl-dev_2.4.6-14_amd64.deb を展開する準備をしています ... libltdl-dev:amd64 (2.4.6-14) を展開しています... 以前に未選択のパッケージ libsys-hostname-long-perl を選択しています。 .../31-libsys-hostname-long-perl_1.5-1_all.deb を展開する準備をしています ... libsys-hostname-long-perl (1.5-1) を展開しています... 以前に未選択のパッケージ libmail-sendmail-perl を選択しています。 .../32-libmail-sendmail-perl_0.80-1_all.deb を展開する準備をしています ... libmail-sendmail-perl (0.80-1) を展開しています... 以前に未選択のパッケージ libpcre2-16-0:amd64 を選択しています。 .../33-libpcre2-16-0_10.34-7_amd64.deb を展開する準備をしています ... libpcre2-16-0:amd64 (10.34-7) を展開しています... 以前に未選択のパッケージ libpcre2-posix2:amd64 を選択しています。 .../34-libpcre2-posix2_10.34-7_amd64.deb を展開する準備をしています ... libpcre2-posix2:amd64 (10.34-7) を展開しています... 以前に未選択のパッケージ libpcre2-dev:amd64 を選択しています。 .../35-libpcre2-dev_10.34-7_amd64.deb を展開する準備をしています ... libpcre2-dev:amd64 (10.34-7) を展開しています... 以前に未選択のパッケージ libssl-dev:amd64 を選択しています。 .../36-libssl-dev_1.1.1f-1ubuntu2.1_amd64.deb を展開する準備をしています ... libssl-dev:amd64 (1.1.1f-1ubuntu2.1) を展開しています... 以前に未選択のパッケージ php7.4-xml を選択しています。 .../37-php7.4-xml_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-xml (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php-xml を選択しています。 .../38-php-xml_2%3a7.4+75_all.deb を展開する準備をしています ... php-xml (2:7.4+75) を展開しています... 以前に未選択のパッケージ php-pear を選択しています。 .../39-php-pear_1%3a1.10.9+submodules+notgz-1ubuntu0.20.04.2_all.deb を展開する準備をしています ... php-pear (1:1.10.9+submodules+notgz-1ubuntu0.20.04.2) を展開しています... 以前に未選択のパッケージ shtool を選択しています。 .../40-shtool_2.0.8-10_all.deb を展開する準備をしています ... shtool (2.0.8-10) を展開しています... 以前に未選択のパッケージ php7.4-dev を選択しています。 .../41-php7.4-dev_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-dev (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ pkg-php-tools を選択しています。 .../42-pkg-php-tools_1.38_all.deb を展開する準備をしています ... pkg-php-tools (1.38) を展開しています... shtool (2.0.8-10) を設定しています ... php7.4-xml (7.4.3-4ubuntu2.4) を設定しています ... Creating config file /etc/php/7.4/mods-available/dom.ini with new version Creating config file /etc/php/7.4/mods-available/simplexml.ini with new version Creating config file /etc/php/7.4/mods-available/xml.ini with new version Creating config file /etc/php/7.4/mods-available/xmlreader.ini with new version Creating config file /etc/php/7.4/mods-available/xmlwriter.ini with new version Creating config file /etc/php/7.4/mods-available/xsl.ini with new version libstdc++-9-dev:amd64 (9.3.0-17ubuntu1~20.04) を設定しています ... libalgorithm-diff-perl (1.19.03-2) を設定しています ... libarchive-zip-perl (1.67-2) を設定しています ... libdebhelper-perl (12.10ubuntu1) を設定しています ... libpcre2-16-0:amd64 (10.34-7) を設定しています ... libfakeroot:amd64 (1.24-1) を設定しています ... dpkg-dev (1.19.7ubuntu3) を設定しています ... fakeroot (1.24-1) を設定しています ... update-alternatives: /usr/bin/fakeroot (fakeroot) を提供するために自動モードで /usr/bin/fakeroot-sysv を使います autotools-dev (20180224.1) を設定しています ... libsigsegv2:amd64 (2.12-2) を設定しています ... libssl-dev:amd64 (1.1.1f-1ubuntu2.1) を設定しています ... autopoint (0.19.8.1-10build1) を設定しています ... libcroco3:amd64 (0.6.13-1) を設定しています ... libpcre2-posix2:amd64 (10.34-7) を設定しています ... g++-9 (9.3.0-17ubuntu1~20.04) を設定しています ... g++ (4:9.3.0-1ubuntu2) を設定しています ... update-alternatives: /usr/bin/c++ (c++) を提供するために自動モードで /usr/bin/g++ を使います dwz (0.13-5) を設定しています ... libarchive-cpio-perl (0.10-1) を設定しています ... build-essential (12.8ubuntu1.1) を設定しています ... libsub-override-perl (0.09-2) を設定しています ... libsys-hostname-long-perl (1.5-1) を設定しています ... libalgorithm-diff-xs-perl (0.04-6) を設定しています ... libalgorithm-merge-perl (0.08-3) を設定しています ... php-xml (2:7.4+75) を設定しています ... libfile-stripnondeterminism-perl (1.7.0-1) を設定しています ... php-pear (1:1.10.9+submodules+notgz-1ubuntu0.20.04.2) を設定しています ... gettext (0.19.8.1-10build1) を設定しています ... libpcre2-dev:amd64 (10.34-7) を設定しています ... libtool (2.4.6-14) を設定しています ... m4 (1.4.18-4) を設定しています ... intltool-debian (0.35.0+20060710.5) を設定しています ... libmail-sendmail-perl (0.80-1) を設定しています ... autoconf (2.69-11.1) を設定しています ... dh-strip-nondeterminism (1.7.0-1) を設定しています ... automake (1:1.16.1-4ubuntu6) を設定しています ... update-alternatives: /usr/bin/automake (automake) を提供するために自動モードで /usr/bin/automake-1.16 を使います po-debconf (1.0.21) を設定しています ... libltdl-dev:amd64 (2.4.6-14) を設定しています ... php7.4-dev (7.4.3-4ubuntu2.4) を設定しています ... update-alternatives: /usr/bin/php-config (php-config) を提供するために自動モードで /usr/bin/php-config7.4 を使います update-alternatives: /usr/bin/phpize (phpize) を提供するために自動モードで /usr/bin/phpize7.4 を使います debhelper (12.10ubuntu1) を設定しています ... dh-autoreconf (19) を設定しています ... pkg-php-tools (1.38) を設定しています ... libc-bin (2.31-0ubuntu9.2) のトリガを処理しています ... man-db (2.9.1-1) のトリガを処理しています ... install-info (6.7.0.dfsg.2-5) のトリガを処理しています ... libapache2-mod-php7.4 (7.4.3-4ubuntu2.4) のトリガを処理しています ... php7.4-cli (7.4.3-4ubuntu2.4) のトリガを処理しています ...
Install the build tools using the below-mentioned command.
sudo apt -y install gcc make autoconf libc-dev pkg-config
パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 注意、'libc-dev' の代わりに 'libc6-dev' を選択します autoconf はすでに最新バージョン (2.69-11.1) です。 autoconf は手動でインストールしたと設定されました。 gcc はすでに最新バージョン (4:9.3.0-1ubuntu2) です。 make はすでに最新バージョン (4.2.1-1.2) です。 pkg-config はすでに最新バージョン (0.29.1-0ubuntu4) です。 pkg-config は手動でインストールしたと設定されました。 libc6-dev はすでに最新バージョン (2.31-0ubuntu9.2) です。 libc6-dev は手動でインストールしたと設定されました。 アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。
Install the MCrypt development package using the below-mentioned command.
~$ sudo apt-get -y install libmcrypt-dev
パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下の追加パッケージがインストールされます: libmcrypt4 提案パッケージ: mcrypt 以下のパッケージが新たにインストールされます: libmcrypt-dev libmcrypt4 アップグレード: 0 個、新規インストール: 2 個、削除: 0 個、保留: 0 個。 149 kB のアーカイブを取得する必要があります。 この操作後に追加で 589 kB のディスク容量が消費されます。 取得:1 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 libmcrypt4 amd64 2.5.8-3.4 [64.6 kB] 取得:2 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 libmcrypt-dev amd64 2.5.8-3.4 [84.8 kB] 149 kB を 1秒 で取得しました (250 kB/s) 以前に未選択のパッケージ libmcrypt4 を選択しています。 (データベースを読み込んでいます ... 現在 200906 個のファイルとディレクトリがインストールされています。) .../libmcrypt4_2.5.8-3.4_amd64.deb を展開する準備をしています ... libmcrypt4 (2.5.8-3.4) を展開しています... 以前に未選択のパッケージ libmcrypt-dev を選択しています。 .../libmcrypt-dev_2.5.8-3.4_amd64.deb を展開する準備をしています ... libmcrypt-dev (2.5.8-3.4) を展開しています... libmcrypt4 (2.5.8-3.4) を設定しています ... libmcrypt-dev (2.5.8-3.4) を設定しています ... man-db (2.9.1-1) のトリガを処理しています ... libc-bin (2.31-0ubuntu9.2) のトリガを処理しています ...
Install the most recent version of MCrypt using the below-mentioned command.
~$ sudo pecl install mcrypt-1.0.4
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187 PHP Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187 Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187 PHP Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187 Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187 PHP Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187 Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187 PHP Notice: Trying to access array offset on value of type bool in /usr/share/php/PEAR/REST.php on line 187 WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update downloading mcrypt-1.0.4.tgz ... Starting to download mcrypt-1.0.4.tgz (27,056 bytes) .........done: 27,056 bytes 6 source files, building running: phpize Configuring for: PHP Api Version: 20190902 Zend Module Api No: 20190902 Zend Extension Api No: 320190902 libmcrypt prefix? [autodetect] :
press enter.
building in /tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4
running: /tmp/pear/temp/mcrypt/configure --with-php-config=/usr/bin/php-config --with-mcrypt
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20190902
checking for PHP installed headers prefix... /usr/include/php/20190902
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for mcrypt support... yes, shared
checking for libmcrypt version... >= 2.5.6
checking for mcrypt_module_open in -lmcrypt... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/tmp/pear/temp/mcrypt -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/include -I/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/main -I/tmp/pear/temp/mcrypt -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/mcrypt/mcrypt.c -o mcrypt.lo
mkdir .libs
cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/tmp/pear/temp/mcrypt -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/include -I/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/main -I/tmp/pear/temp/mcrypt -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/mcrypt/mcrypt.c -fPIC -DPIC -o .libs/mcrypt.o
/bin/bash /tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/tmp/pear/temp/mcrypt -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/include -I/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/main -I/tmp/pear/temp/mcrypt -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/mcrypt/mcrypt_filter.c -o mcrypt_filter.lo
cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/tmp/pear/temp/mcrypt -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/include -I/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/main -I/tmp/pear/temp/mcrypt -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/mcrypt/mcrypt_filter.c -fPIC -DPIC -o .libs/mcrypt_filter.o
/bin/bash /tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/include -I/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/main -I/tmp/pear/temp/mcrypt -I/usr/include/php/20190902 -I/usr/include/php/20190902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/usr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o mcrypt.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/modules mcrypt.lo mcrypt_filter.lo -lmcrypt -lltdl
cc -shared .libs/mcrypt.o .libs/mcrypt_filter.o /usr/lib/libmcrypt.so /usr/lib/x86_64-linux-gnu/libltdl.so -Wl,-soname -Wl,mcrypt.so -o .libs/mcrypt.so
creating mcrypt.la
(cd .libs && rm -f mcrypt.la && ln -s ../mcrypt.la mcrypt.la)
/bin/bash /tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/libtool --mode=install cp ./mcrypt.la /tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/modules
cp ./.libs/mcrypt.so /tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/modules/mcrypt.so
cp ./.libs/mcrypt.lai /tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/modules/mcrypt.la
PATH="$PATH:/sbin" ldconfig -n /tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/modules
----------------------------------------------------------------------
Libraries have been installed in:
/tmp/pear/temp/pear-build-rootcf3A5e/mcrypt-1.0.4/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Build complete.
Don't forget to run 'make test'.
running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootcf3A5e/install-mcrypt-1.0.4" install
Installing shared extensions: /tmp/pear/temp/pear-build-rootcf3A5e/install-mcrypt-1.0.4/usr/lib/php/20190902/
running: find "/tmp/pear/temp/pear-build-rootcf3A5e/install-mcrypt-1.0.4" | xargs ls -dils
9437373 4 drwxr-xr-x 3 root root 4096 2月 13 15:53 /tmp/pear/temp/pear-build-rootcf3A5e/install-mcrypt-1.0.4
9437396 4 drwxr-xr-x 3 root root 4096 2月 13 15:53 /tmp/pear/temp/pear-build-rootcf3A5e/install-mcrypt-1.0.4/usr
9437397 4 drwxr-xr-x 3 root root 4096 2月 13 15:53 /tmp/pear/temp/pear-build-rootcf3A5e/install-mcrypt-1.0.4/usr/lib
9437398 4 drwxr-xr-x 3 root root 4096 2月 13 15:53 /tmp/pear/temp/pear-build-rootcf3A5e/install-mcrypt-1.0.4/usr/lib/php
9437399 4 drwxr-xr-x 2 root root 4096 2月 13 15:53 /tmp/pear/temp/pear-build-rootcf3A5e/install-mcrypt-1.0.4/usr/lib/php/20190902
9437394 216 -rwxr-xr-x 1 root root 219288 2月 13 15:53 /tmp/pear/temp/pear-build-rootcf3A5e/install-mcrypt-1.0.4/usr/lib/php/20190902/mcrypt.so
Build process completed successfully
Installing '/usr/lib/php/20190902/mcrypt.so'
install ok: channel://pecl.php.net/mcrypt-1.0.4
configuration option "php_ini" is not set to php.ini location
You should add "extension=mcrypt.so" to php.ini
Now configure the PHP by updating the php.ini file using the below-mentioned commands.
~$ sudo bash -c "echo extension=/usr/lib/php/20190902/mcrypt.so > /etc/php/7.4/cli/conf.d/mcrypt.ini" ~$ sudo bash -c "echo extension=/usr/lib/php/20190902/mcrypt.so > /etc/php/7.4/apache2/conf.d/mcrypt.ini"
At last, test your installation.
~$ php -i | grep "mcrypt"
/etc/php/7.4/cli/conf.d/mcrypt.ini Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, convert.iconv.*, mcrypt.*, mdecrypt.* mcrypt mcrypt support => enabled mcrypt_filter support => enabled mcrypt.algorithms_dir => no value => no value mcrypt.modes_dir => no value => no value
Shown abobe are the steps required to install the MCrypt extension on most recent versions of PHP i.e. PHP 7.4.
~$ sudo apt -y install php-mysql
パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 php-mysql はすでに最新バージョン (2:7.4+75) です。 アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。
~$ sudo apt -y install php-mbstring
パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下の追加パッケージがインストールされます: libonig5 php7.4-mbstring 以下のパッケージが新たにインストールされます: libonig5 php-mbstring php7.4-mbstring アップグレード: 0 個、新規インストール: 3 個、削除: 0 個、保留: 0 個。 541 kB のアーカイブを取得する必要があります。 この操作後に追加で 1,709 kB のディスク容量が消費されます。 取得:1 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 libonig5 amd64 6.9.4-1 [142 kB] 取得:2 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-mbstring amd64 7.4.3-4ubuntu2.4 [397 kB] 取得:3 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-mbstring all 2:7.4+75 [2,012 B] 541 kB を 3秒 で取得しました (213 kB/s) 以前に未選択のパッケージ libonig5:amd64 を選択しています。 (データベースを読み込んでいます ... 現在 200930 個のファイルとディレクトリがインストールされています。) .../libonig5_6.9.4-1_amd64.deb を展開する準備をしています ... libonig5:amd64 (6.9.4-1) を展開しています... 以前に未選択のパッケージ php7.4-mbstring を選択しています。 .../php7.4-mbstring_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-mbstring (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php-mbstring を選択しています。 .../php-mbstring_2%3a7.4+75_all.deb を展開する準備をしています ... php-mbstring (2:7.4+75) を展開しています... libonig5:amd64 (6.9.4-1) を設定しています ... php7.4-mbstring (7.4.3-4ubuntu2.4) を設定しています ... Creating config file /etc/php/7.4/mods-available/mbstring.ini with new version php-mbstring (2:7.4+75) を設定しています ... libc-bin (2.31-0ubuntu9.2) のトリガを処理しています ... libapache2-mod-php7.4 (7.4.3-4ubuntu2.4) のトリガを処理しています ... php7.4-cli (7.4.3-4ubuntu2.4) のトリガを処理しています ...
sudo apt -y install php-gettext
パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 E: パッケージ php-gettext が見つかりません
~$ sudo apt install phpmyadmin
| 入力項目 | 入力内容 |
| web サーバを選択する画面 | apache2 を選択する。 |
| phpmyadmin 用のデータベースを dbconfig-common で設定しますか? | 「はい」を選択する。 |
| phpmyadmin 用の MySQL アプリケーションパスワード | 例)phpmyadmin と入力して「了解」を選択する。 |
| admin用パスワード確認入力 | 例)phpmyadmin と入力して「了解」を選択する。 |
パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下の追加パッケージがインストールされます: dbconfig-common dbconfig-mysql icc-profiles-free libjs-openlayers libjs-sphinxdoc libjs-underscore libzip5 php-bz2 php-curl php-gd php-google-recaptcha php-phpmyadmin-motranslator php-phpmyadmin-shapefile php-phpmyadmin-sql-parser php-phpseclib php-psr-cache php-psr-container php-psr-log php-symfony-cache php-symfony-cache-contracts php-symfony-expression-language php-symfony-service-contracts php-symfony-var-exporter php-tcpdf php-twig php-twig-extensions php-zip php7.4-bz2 php7.4-curl php7.4-gd php7.4-zip 提案パッケージ: php-dbase php-libsodium php-mcrypt php-gmp php-symfony-service-implementation php-imagick php-twig-doc php-symfony-translation php-recode php-gd2 php-pragmarx-google2fa php-bacon-qr-code php-samyoul-u2f-php-server 推奨パッケージ: php-mcrypt 以下のパッケージが新たにインストールされます: dbconfig-common dbconfig-mysql icc-profiles-free libjs-openlayers libjs-sphinxdoc libjs-underscore libzip5 php-bz2 php-curl php-gd php-google-recaptcha php-phpmyadmin-motranslator php-phpmyadmin-shapefile php-phpmyadmin-sql-parser php-phpseclib php-psr-cache php-psr-container php-psr-log php-symfony-cache php-symfony-cache-contracts php-symfony-expression-language php-symfony-service-contracts php-symfony-var-exporter php-tcpdf php-twig php-twig-extensions php-zip php7.4-bz2 php7.4-curl php7.4-gd php7.4-zip phpmyadmin アップグレード: 0 個、新規インストール: 32 個、削除: 0 個、保留: 0 個。 14.9 MB のアーカイブを取得する必要があります。 この操作後に追加で 68.4 MB のディスク容量が消費されます。 続行しますか? [Y/n] Y 取得:1 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 dbconfig-common all 2.0.13 [586 kB] 取得:2 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 dbconfig-mysql all 2.0.13 [1,136 B] 取得:3 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 icc-profiles-free all 2.0.1+dfsg-1 [549 kB] 取得:4 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libjs-underscore all 1.9.1~dfsg-1 [98.6 kB] 取得:5 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 libjs-sphinxdoc all 1.8.5-7ubuntu3 [97.1 kB] 取得:6 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 libzip5 amd64 1.5.1-0ubuntu1 [46.7 kB] 取得:7 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-bz2 amd64 7.4.3-4ubuntu2.4 [10.4 kB] 取得:8 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-bz2 all 2:7.4+75 [2,004 B] 取得:9 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-curl amd64 7.4.3-4ubuntu2.4 [31.0 kB] 取得:10 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 php-curl all 2:7.4+75 [2,000 B] 取得:11 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-gd amd64 7.4.3-4ubuntu2.4 [28.0 kB] 取得:12 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 php-gd all 2:7.4+75 [2,000 B] 取得:13 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-google-recaptcha all 1.2.3-1 [8,500 B] 取得:14 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-psr-cache all 1.0.1-2 [5,300 B] 取得:15 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-psr-log all 1.1.2-1 [8,268 B] 取得:16 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-cache-contracts all 1.1.8-1 [6,504 B] 取得:17 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-psr-container all 1.0.0-2 [3,352 B] 取得:18 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-service-contracts all 1.1.8-1 [7,192 B] 取得:19 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-var-exporter all 4.3.8+dfsg-1ubuntu1 [18.4 kB] 取得:20 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-cache all 4.3.8+dfsg-1ubuntu1 [50.1 kB] 取得:21 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-expression-language all 4.3.8+dfsg-1ubuntu1 [20.3 kB] 取得:22 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-phpmyadmin-motranslator all 5.0.0-1 [12.2 kB] 取得:23 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-phpmyadmin-shapefile all 2.1-3 [10.6 kB] 取得:24 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-phpmyadmin-sql-parser all 4.6.1-2 [70.4 kB] 取得:25 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-phpseclib all 2.0.23-2 [182 kB] 取得:26 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-tcpdf all 6.3.5+dfsg1-1 [7,791 kB] 取得:27 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-twig all 2.12.5-1 [98.8 kB] 取得:28 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-twig-extensions all 1.5.4-1 [10.6 kB] 取得:29 http://jp.archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-zip amd64 7.4.3-4ubuntu2.4 [21.5 kB] 取得:30 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 php-zip all 2:7.4+75 [1,996 B] 取得:31 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 libjs-openlayers all 2.13.1+ds2-7 [715 kB] 取得:32 http://jp.archive.ubuntu.com/ubuntu focal/universe amd64 phpmyadmin all 4:4.9.5+dfsg1-2 [4,426 kB] 14.9 MB を 4秒 で取得しました (3,874 kB/s) パッケージからテンプレートを展開しています: 100% パッケージを事前設定しています ... 以前に未選択のパッケージ dbconfig-common を選択しています。 (データベースを読み込んでいます ... 現在 200947 個のファイルとディレクトリがインストールされています。) .../00-dbconfig-common_2.0.13_all.deb を展開する準備をしています ... dbconfig-common (2.0.13) を展開しています... 以前に未選択のパッケージ dbconfig-mysql を選択しています。 .../01-dbconfig-mysql_2.0.13_all.deb を展開する準備をしています ... dbconfig-mysql (2.0.13) を展開しています... 以前に未選択のパッケージ icc-profiles-free を選択しています。 .../02-icc-profiles-free_2.0.1+dfsg-1_all.deb を展開する準備をしています ... icc-profiles-free (2.0.1+dfsg-1) を展開しています... 以前に未選択のパッケージ libjs-underscore を選択しています。 .../03-libjs-underscore_1.9.1~dfsg-1_all.deb を展開する準備をしています ... libjs-underscore (1.9.1~dfsg-1) を展開しています... 以前に未選択のパッケージ libjs-sphinxdoc を選択しています。 .../04-libjs-sphinxdoc_1.8.5-7ubuntu3_all.deb を展開する準備をしています ... libjs-sphinxdoc (1.8.5-7ubuntu3) を展開しています... 以前に未選択のパッケージ libzip5:amd64 を選択しています。 .../05-libzip5_1.5.1-0ubuntu1_amd64.deb を展開する準備をしています ... libzip5:amd64 (1.5.1-0ubuntu1) を展開しています... 以前に未選択のパッケージ php7.4-bz2 を選択しています。 .../06-php7.4-bz2_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-bz2 (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php-bz2 を選択しています。 .../07-php-bz2_2%3a7.4+75_all.deb を展開する準備をしています ... php-bz2 (2:7.4+75) を展開しています... 以前に未選択のパッケージ php7.4-curl を選択しています。 .../08-php7.4-curl_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-curl (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php-curl を選択しています。 .../09-php-curl_2%3a7.4+75_all.deb を展開する準備をしています ... php-curl (2:7.4+75) を展開しています... 以前に未選択のパッケージ php7.4-gd を選択しています。 .../10-php7.4-gd_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-gd (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php-gd を選択しています。 .../11-php-gd_2%3a7.4+75_all.deb を展開する準備をしています ... php-gd (2:7.4+75) を展開しています... 以前に未選択のパッケージ php-google-recaptcha を選択しています。 .../12-php-google-recaptcha_1.2.3-1_all.deb を展開する準備をしています ... php-google-recaptcha (1.2.3-1) を展開しています... 以前に未選択のパッケージ php-psr-cache を選択しています。 .../13-php-psr-cache_1.0.1-2_all.deb を展開する準備をしています ... php-psr-cache (1.0.1-2) を展開しています... 以前に未選択のパッケージ php-psr-log を選択しています。 .../14-php-psr-log_1.1.2-1_all.deb を展開する準備をしています ... php-psr-log (1.1.2-1) を展開しています... 以前に未選択のパッケージ php-symfony-cache-contracts を選択しています。 .../15-php-symfony-cache-contracts_1.1.8-1_all.deb を展開する準備をしています ... php-symfony-cache-contracts (1.1.8-1) を展開しています... 以前に未選択のパッケージ php-psr-container を選択しています。 .../16-php-psr-container_1.0.0-2_all.deb を展開する準備をしています ... php-psr-container (1.0.0-2) を展開しています... 以前に未選択のパッケージ php-symfony-service-contracts を選択しています。 .../17-php-symfony-service-contracts_1.1.8-1_all.deb を展開する準備をしています ... php-symfony-service-contracts (1.1.8-1) を展開しています... 以前に未選択のパッケージ php-symfony-var-exporter を選択しています。 .../18-php-symfony-var-exporter_4.3.8+dfsg-1ubuntu1_all.deb を展開する準備をしています ... php-symfony-var-exporter (4.3.8+dfsg-1ubuntu1) を展開しています... 以前に未選択のパッケージ php-symfony-cache を選択しています。 .../19-php-symfony-cache_4.3.8+dfsg-1ubuntu1_all.deb を展開する準備をしています ... php-symfony-cache (4.3.8+dfsg-1ubuntu1) を展開しています... 以前に未選択のパッケージ php-symfony-expression-language を選択しています。 .../20-php-symfony-expression-language_4.3.8+dfsg-1ubuntu1_all.deb を展開する準備をしています ... php-symfony-expression-language (4.3.8+dfsg-1ubuntu1) を展開しています... 以前に未選択のパッケージ php-phpmyadmin-motranslator を選択しています。 .../21-php-phpmyadmin-motranslator_5.0.0-1_all.deb を展開する準備をしています ... php-phpmyadmin-motranslator (5.0.0-1) を展開しています... 以前に未選択のパッケージ php-phpmyadmin-shapefile を選択しています。 .../22-php-phpmyadmin-shapefile_2.1-3_all.deb を展開する準備をしています ... php-phpmyadmin-shapefile (2.1-3) を展開しています... 以前に未選択のパッケージ php-phpmyadmin-sql-parser を選択しています。 .../23-php-phpmyadmin-sql-parser_4.6.1-2_all.deb を展開する準備をしています ... php-phpmyadmin-sql-parser (4.6.1-2) を展開しています... 以前に未選択のパッケージ php-phpseclib を選択しています。 .../24-php-phpseclib_2.0.23-2_all.deb を展開する準備をしています ... php-phpseclib (2.0.23-2) を展開しています... 以前に未選択のパッケージ php-tcpdf を選択しています。 .../25-php-tcpdf_6.3.5+dfsg1-1_all.deb を展開する準備をしています ... php-tcpdf (6.3.5+dfsg1-1) を展開しています... 以前に未選択のパッケージ php-twig を選択しています。 .../26-php-twig_2.12.5-1_all.deb を展開する準備をしています ... php-twig (2.12.5-1) を展開しています... 以前に未選択のパッケージ php-twig-extensions を選択しています。 .../27-php-twig-extensions_1.5.4-1_all.deb を展開する準備をしています ... php-twig-extensions (1.5.4-1) を展開しています... 以前に未選択のパッケージ php7.4-zip を選択しています。 .../28-php7.4-zip_7.4.3-4ubuntu2.4_amd64.deb を展開する準備をしています ... php7.4-zip (7.4.3-4ubuntu2.4) を展開しています... 以前に未選択のパッケージ php-zip を選択しています。 .../29-php-zip_2%3a7.4+75_all.deb を展開する準備をしています ... php-zip (2:7.4+75) を展開しています... 以前に未選択のパッケージ libjs-openlayers を選択しています。 .../30-libjs-openlayers_2.13.1+ds2-7_all.deb を展開する準備をしています ... libjs-openlayers (2.13.1+ds2-7) を展開しています... 以前に未選択のパッケージ phpmyadmin を選択しています。 .../31-phpmyadmin_4%3a4.9.5+dfsg1-2_all.deb を展開する準備をしています ... phpmyadmin (4:4.9.5+dfsg1-2) を展開しています... php7.4-curl (7.4.3-4ubuntu2.4) を設定しています ... Creating config file /etc/php/7.4/mods-available/curl.ini with new version libzip5:amd64 (1.5.1-0ubuntu1) を設定しています ... php-phpmyadmin-shapefile (2.1-3) を設定しています ... php-psr-container (1.0.0-2) を設定しています ... php-symfony-service-contracts (1.1.8-1) を設定しています ... php7.4-bz2 (7.4.3-4ubuntu2.4) を設定しています ... Creating config file /etc/php/7.4/mods-available/bz2.ini with new version dbconfig-common (2.0.13) を設定しています ... Creating config file /etc/dbconfig-common/config with new version php-phpseclib (2.0.23-2) を設定しています ... php7.4-zip (7.4.3-4ubuntu2.4) を設定しています ... Creating config file /etc/php/7.4/mods-available/zip.ini with new version icc-profiles-free (2.0.1+dfsg-1) を設定しています ... php-psr-cache (1.0.1-2) を設定しています ... php-phpmyadmin-sql-parser (4.6.1-2) を設定しています ... php-twig (2.12.5-1) を設定しています ... php-psr-log (1.1.2-1) を設定しています ... php-twig-extensions (1.5.4-1) を設定しています ... php-zip (2:7.4+75) を設定しています ... libjs-openlayers (2.13.1+ds2-7) を設定しています ... php-google-recaptcha (1.2.3-1) を設定しています ... php-symfony-var-exporter (4.3.8+dfsg-1ubuntu1) を設定しています ... php7.4-gd (7.4.3-4ubuntu2.4) を設定しています ... Creating config file /etc/php/7.4/mods-available/gd.ini with new version libjs-underscore (1.9.1~dfsg-1) を設定しています ... php-curl (2:7.4+75) を設定しています ... php-symfony-cache-contracts (1.1.8-1) を設定しています ... php-tcpdf (6.3.5+dfsg1-1) を設定しています ... php-bz2 (2:7.4+75) を設定しています ... dbconfig-mysql (2.0.13) を設定しています ... php-symfony-cache (4.3.8+dfsg-1ubuntu1) を設定しています ... php-symfony-expression-language (4.3.8+dfsg-1ubuntu1) を設定しています ... libjs-sphinxdoc (1.8.5-7ubuntu3) を設定しています ... php-gd (2:7.4+75) を設定しています ... php-phpmyadmin-motranslator (5.0.0-1) を設定しています ... phpmyadmin (4:4.9.5+dfsg1-2) を設定しています ... Determining localhost credentials from /etc/mysql/debian.cnf: succeeded. dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version Creating config file /etc/phpmyadmin/config-db.php with new version checking privileges on database phpmyadmin for phpmyadmin@localhost: user creation needed. granting access to database phpmyadmin for phpmyadmin@localhost: success. verifying access for phpmyadmin@localhost: success. creating database phpmyadmin: success. verifying database phpmyadmin exists: success. populating database via sql... done. dbconfig-common: flushing administrative password apache2_invoke: Enable configuration phpmyadmin libapache2-mod-php7.4 (7.4.3-4ubuntu2.4) のトリガを処理しています ... hicolor-icon-theme (0.17-2) のトリガを処理しています ... libc-bin (2.31-0ubuntu9.2) のトリガを処理しています ... man-db (2.9.1-1) のトリガを処理しています ... php7.4-cli (7.4.3-4ubuntu2.4) のトリガを処理しています ...
/etc/phpmyadmin/apache.conf
~$ cat /etc/phpmyadmin/apache.conf
# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options SymLinksIfOwnerMatch
DirectoryIndex index.php
# limit libapache2-mod-php to files and directories necessary by pma
<IfModule mod_php7.c>
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/:/usr/share/php/PhpMyAdmin/:/usr/share/php/Symfony/:/usr/share/php/Twig/:/usr/share/php/Twig-Extensions/:/usr/share/php/ReCaptcha/:/usr/share/php/Psr/Container/:/usr/share/php/Psr/Cache/:/usr/share/php/Psr/Log/:/usr/share/php/Psr/SimpleCache/
</IfModule>
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/templates>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/libraries>
Require all denied
</Directory>
~$ sudo phpenmod mcrypt WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.4/mods-available WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.4/mods-available
~$ sudo phpenmod mbstring
~$ sudo systemctl restart apache2
http://localhost/phpmyadmin/
ユーザ名:root パスワード:
~$ sudo mysql -p -u root Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 31 Server version: 8.0.23-0ubuntu0.20.04.1 (Ubuntu) Copyright (c) 2000, 2021, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> SELECT user,plugin,host FROM mysql.user WHERE user = 'root'; +------+-------------+-----------+ | user | plugin | host | +------+-------------+-----------+ | root | auth_socket | localhost | +------+-------------+-----------+ 1 row in set (0.00 sec) mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; Query OK, 0 rows affected (0.01 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye
~$ sudo gvim -f /etc/apache2/mods-enabled/dir.conf
<IfModule mod_dir.c> DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm </IfModule> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
<IfModule mod_dir.c> DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm </IfModule> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
~$ sudo service apache2 restart
~$ apt-cache search php7 libapache2-mod-php7.0 - サーバサイド HTML 組込みスクリプト言語 (Apache 2 モジュール) php7.0 - サーバサイドの HTML 組込みスクリプト言語 (メタパッケージ) php7.0-cgi - server-side, HTML-embedded scripting language (CGI binary) php7.0-cli - command-line interpreter for the PHP scripting language php7.0-common - documentation, examples and common module for PHP php7.0-curl - CURL module for PHP php7.0-dev - Files for PHP7.0 module development php7.0-gd - GD module for PHP php7.0-gmp - GMP module for PHP php7.0-json - JSON module for PHP php7.0-ldap - LDAP module for PHP php7.0-mysql - MySQL module for PHP php7.0-odbc - ODBC module for PHP php7.0-opcache - Zend OpCache module for PHP php7.0-pgsql - PostgreSQL module for PHP php7.0-pspell - pspell module for PHP php7.0-readline - readline module for PHP php7.0-recode - recode module for PHP php7.0-snmp - SNMP module for PHP php7.0-sqlite3 - SQLite3 module for PHP php7.0-tidy - tidy module for PHP php7.0-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP php7.0-xmlrpc - XMLRPC-EPI module for PHP php-all-dev - package depending on all supported PHP development packages libphp7.0-embed - HTML-embedded scripting language (Embedded SAPI library) php7.0-bcmath - Bcmath module for PHP php7.0-bz2 - bzip2 module for PHP php7.0-enchant - Enchant module for PHP php7.0-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary) php7.0-imap - IMAP module for PHP php7.0-interbase - Interbase module for PHP php7.0-intl - Internationalisation module for PHP php7.0-mbstring - MBSTRING module for PHP php7.0-mcrypt - libmcrypt module for PHP php7.0-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary) php7.0-soap - SOAP module for PHP php7.0-sybase - Sybase module for PHP php7.0-xsl - XSL module for PHP (dummy) php7.0-zip - Zip module for PHP php7.0-dba - DBA module for PHP
~$ apt-cache show php7.0-cli Package: php7.0-cli Architecture: amd64 Version: 7.0.28-0ubuntu0.16.04.1 Priority: optional Section: php Source: php7.0 Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 4334 Provides: php-cli, phpapi-20151012 Depends: libedit2 (>= 2.11-20080614-4), libmagic1, mime-support, php7.0-common (= 7.0.28-0ubuntu0.16.04.1), php7.0-json, php7.0-opcache, php7.0-readline, tzdata, ucf, libc6 (>= 2.15), libpcre3, libssl1.0.0 (>= 1.0.2~beta3), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4) Suggests: php-pear Breaks: php5-cli (<< 5.6.16+dfsg-4~) Replaces: php5-cli (<< 5.6.16+dfsg-4~) Filename: pool/main/p/php7.0/php7.0-cli_7.0.28-0ubuntu0.16.04.1_amd64.deb Size: 1281872 MD5sum: bde0c26174c004d2cfdd23c6254efffa SHA1: 4b454c865dae952c347deca23b45e1c08be5c063 SHA256: 816cc108d313157e2214170deec682d1ae46a4752016b4609649aa2c378fcc7a Homepage: http://www.php.net/ Description-ja: command-line interpreter for the PHP scripting language This package provides the /usr/bin/php7.0 command interpreter, useful for testing PHP scripts from a shell or performing general shell scripting tasks. . The following extensions are built in: Core date filter hash libxml openssl pcntl pcre Reflection session SPL standard zlib. . PHP (PHP: Hypertext Preprocessor の再帰的頭字語) は広く使われているオープン ソースな汎用スクリプト言語で、特にウェブ開発に適しており、HTML に組み込むこ とができます。 Description-md5: 22825d1d78d475175fcb3e2f13054b4d Task: lamp-server, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master Supported: 5y Package: php7.0-cli Priority: optional Section: php Installed-Size: 4350 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org> Architecture: amd64 Source: php7.0 Version: 7.0.4-7ubuntu2 Replaces: php5-cli (<< 5.6.16+dfsg-4~) Provides: php-cli, phpapi-20151012 Depends: libedit2 (>= 2.11-20080614-4), libmagic1, mime-support, php7.0-common (= 7.0.4-7ubuntu2), php7.0-json, php7.0-opcache, php7.0-readline, tzdata, ucf, libc6 (>= 2.15), libpcre3, libssl1.0.0 (>= 1.0.2~beta3), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4) Suggests: php-pear Breaks: php5-cli (<< 5.6.16+dfsg-4~) Filename: pool/main/p/php7.0/php7.0-cli_7.0.4-7ubuntu2_amd64.deb Size: 1275868 MD5sum: 4ab33a1f75a2afd05a2302c934bd941b SHA1: 9b53f1ccabb35a0479199408f010e9552b4ec300 SHA256: e5d52a1b00b50dd7d42d0f8efcc78a3b7a0d04221c0e782568899530340d273e Description-ja: command-line interpreter for the PHP scripting language This package provides the /usr/bin/php7.0 command interpreter, useful for testing PHP scripts from a shell or performing general shell scripting tasks. . The following extensions are built in: Core date filter hash libxml openssl pcntl pcre Reflection session SPL standard zlib. . PHP (PHP: Hypertext Preprocessor の再帰的頭字語) は広く使われているオープン ソースな汎用スクリプト言語で、特にウェブ開発に適しており、HTML に組み込むこ とができます。 Description-md5: 22825d1d78d475175fcb3e2f13054b4d Homepage: http://www.php.net/ Bugs: https://bugs.launchpad.net/ubuntu/+filebug Origin: Ubuntu Supported: 5y Task: lamp-server, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master
~$ sudo bash ~# cat << EOF > /var/www/html/info.php <?php phpinfo(); ?> EOF
http://192.168.3.16/info.php
https://linuxconfig.org/how-to-reset-root-mysql-password-on-ubuntu-18-04-bionic-beaver-linux
$ sudo service mysql stop $ sudo mkdir -p /var/run/mysqld $ sudo chown mysql:mysql /var/run/mysqld
$ sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking & $ [1] 2708
$ jobs [1]+ Running sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &
$ mysql -u root
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql> USE mysql;
Database changed
mysql> UPDATE user SET authentication_string=PASSWORD("my_password") WHERE
User='root';
Query OK, 0 rows affected, 1 warning (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 1
mysql> UPDATE user SET plugin="mysql_native_password" WHERE User='root';
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 0
mysql> quit Bye
$ sudo pkill mysqld $ jobs [1]+ Done sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking
$ sudo service mysql start
gerritをインストールする場合は