====== DietPi による LAMP(Apache, MySQL, PHP) 環境構築 ======
===== GUI / CUI ログインの切り替えによる使用メモリー削減 =====
**systemd** のデフォルトターゲットを調べる\\
$ systemctl get-default
graphical.target
$ sudo systemctl set-default multi-user.target
Removed /etc/systemd/system/default.target.
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/multi-user.target.
$ sudo reboot
$ sudo apt install apache2 apache2-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils autopoint debhelper dh-autoreconf dh-strip-nondeterminism dwz
gettext groff-base intltool-debian libapr1 libapr1-dev libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-dev libaprutil1-ldap libarchive-zip-perl libdebhelper-perl libfile-stripnondeterminism-perl
libldap2-dev libpipeline1 libsctp-dev libsctp1 libsub-override-perl libuchardet0 man-db po-debconf
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom dh-make gettext-doc libasprintf-dev
libgettextpo-dev groff lksctp-tools apparmor libmail-box-perl
Recommended packages:
ssl-cert libarchive-cpio-perl libmail-sendmail-perl
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-dev apache2-utils autopoint debhelper dh-autoreconf
dh-strip-nondeterminism dwz gettext groff-base intltool-debian libapr1 libapr1-dev libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-dev libaprutil1-ldap libarchive-zip-perl libdebhelper-perl
libfile-stripnondeterminism-perl libldap2-dev libpipeline1 libsctp-dev libsctp1 libsub-override-perl
libuchardet0 man-db po-debconf
0 upgraded, 30 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,796 kB of archives.
After this operation, 39.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libuchardet0 armhf 0.0.7-1 [65.0 kB]
Get:2 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf groff-base armhf 1.22.4-6 [793 kB]
Get:3 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian bullseye/main armhf libpipeline1 armhf 1.5.3-1 [29.9 kB]
Get:4 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian bullseye/main armhf man-db armhf 2.9.4-2 [1,307 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libapr1 armhf 1.7.0-6+deb11u1 [87.1 kB]
Get:6 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian bullseye/main armhf libaprutil1 armhf 1.6.1-5 [81.2 kB]
Get:7 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libaprutil1-dbd-sqlite3 armhf 1.6.1-5 [17.5 kB]
Get:8 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libaprutil1-ldap armhf 1.6.1-5 [16.5 kB]
Get:9 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf apache2-bin armhf 2.4.54-1~deb11u1 [1,227 kB]
Get:10 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf apache2-data all 2.4.54-1~deb11u1 [160 kB]
Get:11 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf apache2-utils armhf 2.4.54-1~deb11u1 [259 kB]
Get:12 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf apache2 armhf 2.4.54-1~deb11u1 [275 kB]
Get:13 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf autopoint all 0.21-4 [510 kB]
Get:14 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libdebhelper-perl all 13.3.4 [189 kB]
Get:15 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf dh-autoreconf all 20 [17.1 kB]
Get:16 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libarchive-zip-perl all 1.68-1 [104 kB]
Get:17 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libsub-override-perl all 0.09-2 [10.2 kB]
Get:18 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libfile-stripnondeterminism-perl all 1.12.0-1 [26.3 kB]
Get:19 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf dh-strip-nondeterminism all 1.12.0-1 [15.4 kB]
Get:20 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf dwz armhf 0.13+20210201-1 [164 kB]
Get:21 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf gettext armhf 0.21-4 [1,215 kB]
Get:22 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf intltool-debian all 0.35.0+20060710.5 [26.8 kB]
Get:23 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf po-debconf all 1.0.21+nmu1 [248 kB]
Get:24 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian bullseye/main armhf debhelper all 13.3.4 [1,049 kB]
Get:25 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libsctp1 armhf 1.0.18+dfsg-1 [27.6 kB]
Get:26 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libsctp-dev armhf 1.0.18+dfsg-1 [81.1 kB]
Get:27 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libapr1-dev armhf 1.7.0-6+deb11u1 [727 kB]
Get:28 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libldap2-dev armhf 2.4.57+dfsg-3+deb11u1 [307 kB]
Get:29 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bullseye/main armhf libaprutil1-dev armhf 1.6.1-5 [399 kB]
Get:30 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf apache2-dev armhf 2.4.54-1~deb11u1 [363 kB]
Fetched 9,796 kB in 24s (403 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libuchardet0:armhf.
(Reading database ... 71553 files and directories currently installed.)
Preparing to unpack .../00-libuchardet0_0.0.7-1_armhf.deb ...
Unpacking libuchardet0:armhf (0.0.7-1) ...
Selecting previously unselected package groff-base.
Preparing to unpack .../01-groff-base_1.22.4-6_armhf.deb ...
Unpacking groff-base (1.22.4-6) ...
Selecting previously unselected package libpipeline1:armhf.
Preparing to unpack .../02-libpipeline1_1.5.3-1_armhf.deb ...
Unpacking libpipeline1:armhf (1.5.3-1) ...
Selecting previously unselected package man-db.
Preparing to unpack .../03-man-db_2.9.4-2_armhf.deb ...
Unpacking man-db (2.9.4-2) ...
Selecting previously unselected package libapr1:armhf.
Preparing to unpack .../04-libapr1_1.7.0-6+deb11u1_armhf.deb ...
Unpacking libapr1:armhf (1.7.0-6+deb11u1) ...
Selecting previously unselected package libaprutil1:armhf.
Preparing to unpack .../05-libaprutil1_1.6.1-5_armhf.deb ...
Unpacking libaprutil1:armhf (1.6.1-5) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:armhf.
Preparing to unpack .../06-libaprutil1-dbd-sqlite3_1.6.1-5_armhf.deb ...
Unpacking libaprutil1-dbd-sqlite3:armhf (1.6.1-5) ...
Selecting previously unselected package libaprutil1-ldap:armhf.
Preparing to unpack .../07-libaprutil1-ldap_1.6.1-5_armhf.deb ...
Unpacking libaprutil1-ldap:armhf (1.6.1-5) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../08-apache2-bin_2.4.54-1~deb11u1_armhf.deb ...
Unpacking apache2-bin (2.4.54-1~deb11u1) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../09-apache2-data_2.4.54-1~deb11u1_all.deb ...
Unpacking apache2-data (2.4.54-1~deb11u1) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../10-apache2-utils_2.4.54-1~deb11u1_armhf.deb ...
Unpacking apache2-utils (2.4.54-1~deb11u1) ...
Selecting previously unselected package apache2.
Preparing to unpack .../11-apache2_2.4.54-1~deb11u1_armhf.deb ...
Unpacking apache2 (2.4.54-1~deb11u1) ...
Selecting previously unselected package autopoint.
Preparing to unpack .../12-autopoint_0.21-4_all.deb ...
Unpacking autopoint (0.21-4) ...
Selecting previously unselected package libdebhelper-perl.
Preparing to unpack .../13-libdebhelper-perl_13.3.4_all.deb ...
Unpacking libdebhelper-perl (13.3.4) ...
Selecting previously unselected package dh-autoreconf.
Preparing to unpack .../14-dh-autoreconf_20_all.deb ...
Unpacking dh-autoreconf (20) ...
Selecting previously unselected package libarchive-zip-perl.
Preparing to unpack .../15-libarchive-zip-perl_1.68-1_all.deb ...
Unpacking libarchive-zip-perl (1.68-1) ...
Selecting previously unselected package libsub-override-perl.
Preparing to unpack .../16-libsub-override-perl_0.09-2_all.deb ...
Unpacking libsub-override-perl (0.09-2) ...
Selecting previously unselected package libfile-stripnondeterminism-perl.
Preparing to unpack .../17-libfile-stripnondeterminism-perl_1.12.0-1_all.deb ...
Unpacking libfile-stripnondeterminism-perl (1.12.0-1) ...
Selecting previously unselected package dh-strip-nondeterminism.
Preparing to unpack .../18-dh-strip-nondeterminism_1.12.0-1_all.deb ...
Unpacking dh-strip-nondeterminism (1.12.0-1) ...
Selecting previously unselected package dwz.
Preparing to unpack .../19-dwz_0.13+20210201-1_armhf.deb ...
Unpacking dwz (0.13+20210201-1) ...
Selecting previously unselected package gettext.
Preparing to unpack .../20-gettext_0.21-4_armhf.deb ...
Unpacking gettext (0.21-4) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../21-intltool-debian_0.35.0+20060710.5_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.5) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../22-po-debconf_1.0.21+nmu1_all.deb ...
Unpacking po-debconf (1.0.21+nmu1) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../23-debhelper_13.3.4_all.deb ...
Unpacking debhelper (13.3.4) ...
Selecting previously unselected package libsctp1:armhf.
Preparing to unpack .../24-libsctp1_1.0.18+dfsg-1_armhf.deb ...
Unpacking libsctp1:armhf (1.0.18+dfsg-1) ...
Selecting previously unselected package libsctp-dev:armhf.
Preparing to unpack .../25-libsctp-dev_1.0.18+dfsg-1_armhf.deb ...
Unpacking libsctp-dev:armhf (1.0.18+dfsg-1) ...
Selecting previously unselected package libapr1-dev.
Preparing to unpack .../26-libapr1-dev_1.7.0-6+deb11u1_armhf.deb ...
Unpacking libapr1-dev (1.7.0-6+deb11u1) ...
Selecting previously unselected package libldap2-dev:armhf.
Preparing to unpack .../27-libldap2-dev_2.4.57+dfsg-3+deb11u1_armhf.deb ...
Unpacking libldap2-dev:armhf (2.4.57+dfsg-3+deb11u1) ...
Selecting previously unselected package libaprutil1-dev.
Preparing to unpack .../28-libaprutil1-dev_1.6.1-5_armhf.deb ...
Unpacking libaprutil1-dev (1.6.1-5) ...
Selecting previously unselected package apache2-dev.
Preparing to unpack .../29-apache2-dev_2.4.54-1~deb11u1_armhf.deb ...
Unpacking apache2-dev (2.4.54-1~deb11u1) ...
Setting up libpipeline1:armhf (1.5.3-1) ...
Setting up gettext (0.21-4) ...
Setting up libarchive-zip-perl (1.68-1) ...
Setting up libdebhelper-perl (13.3.4) ...
Setting up libapr1:armhf (1.7.0-6+deb11u1) ...
Setting up intltool-debian (0.35.0+20060710.5) ...
Setting up libldap2-dev:armhf (2.4.57+dfsg-3+deb11u1) ...
Setting up autopoint (0.21-4) ...
Setting up dwz (0.13+20210201-1) ...
Setting up libsctp1:armhf (1.0.18+dfsg-1) ...
Setting up libuchardet0:armhf (0.0.7-1) ...
Setting up libsub-override-perl (0.09-2) ...
Setting up apache2-data (2.4.54-1~deb11u1) ...
Setting up libaprutil1:armhf (1.6.1-5) ...
Setting up libfile-stripnondeterminism-perl (1.12.0-1) ...
Setting up po-debconf (1.0.21+nmu1) ...
Setting up libaprutil1-ldap:armhf (1.6.1-5) ...
Setting up libaprutil1-dbd-sqlite3:armhf (1.6.1-5) ...
Setting up dh-autoreconf (20) ...
Setting up libsctp-dev:armhf (1.0.18+dfsg-1) ...
Setting up dh-strip-nondeterminism (1.12.0-1) ...
Setting up groff-base (1.22.4-6) ...
Setting up apache2-utils (2.4.54-1~deb11u1) ...
Setting up apache2-bin (2.4.54-1~deb11u1) ...
Setting up man-db (2.9.4-2) ...
Building database of manual pages ...
Created symlink /etc/systemd/system/timers.target.wants/man-db.timer → /lib/systemd/system/man-db.timer.
man-db.service is a disabled or a static unit, not starting it.
Setting up libapr1-dev (1.7.0-6+deb11u1) ...
Setting up libaprutil1-dev (1.6.1-5) ...
Setting up apache2 (2.4.54-1~deb11u1) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
Setting up debhelper (13.3.4) ...
Setting up apache2-dev (2.4.54-1~deb11u1) ...
Processing triggers for mailcap (3.69) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u3) ...