1. php7 설치
아래 명령어로 설치합니다.
sudo apt install php libapache2-mod-php php-xml php-gd php-mysql
설치로그는 아래 더보기에 있습니다.
더보기
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo apt install php libapache2-mod-php php-xml php-gd php-mysql
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
The following additional packages will be installed:
libapache2-mod-php7.3 php-common php7.3 php7.3-cli php7.3-common php7.3-gd
php7.3-json php7.3-mysql php7.3-opcache php7.3-readline php7.3-xml
제안하는 패키지:
php-pear
다음 새 패키지를 설치할 것입니다:
libapache2-mod-php libapache2-mod-php7.3 php php-common php-gd php-mysql
php-xml php7.3 php7.3-cli php7.3-common php7.3-gd php7.3-json php7.3-mysql
php7.3-opcache php7.3-readline php7.3-xml
0개 업그레이드, 16개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.
3,198 k바이트 아카이브를 받아야 합니다.
이 작업 후 14.9 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] y
받기:1 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-common all 2:69 [15.0 kB]
받기:2 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-common armhf 7.3.14-1~deb10u1 [520 kB]
받기:3 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-json armhf 7.3.14-1~deb10u1 [16.2 kB]
받기:4 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-opcache armhf 7.3.14-1~deb10u1 [154 kB]
받기:5 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-readline armhf 7.3.14-1~deb10u1 [10.7 kB]
받기:6 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-cli armhf 7.3.14-1~deb10u1 [1,125 kB]
받기:7 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libapache2-mod-php7.3 armhf 7.3.14-1~deb10u1 [1,082 kB]
받기:8 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libapache2-mod-php all 2:7.3+69 [6,120 B]
받기:9 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3 all 7.3.14-1~deb10u1 [40.7 kB]
받기:10 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php all 2:7.3+69 [5,964 B]
받기:11 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-gd armhf 7.3.14-1~deb10u1 [22.6 kB]
받기:12 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-gd all 2:7.3+69 [5,984 B]
받기:13 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-mysql armhf 7.3.14-1~deb10u1 [96.4 kB]
받기:14 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-mysql all 2:7.3+69 [5,992 B]
받기:15 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-xml armhf 7.3.14-1~deb10u1 [85.4 kB]
받기:16 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-xml all 2:7.3+69 [6,012 B]
내려받기 3,198 k바이트, 소요시간 11초 (304 k바이트/초)
Selecting previously unselected package php-common.
(데이터베이스 읽는중 ...현재 159235개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../00-php-common_2%3a69_all.deb ...
Unpacking php-common (2:69) ...
Selecting previously unselected package php7.3-common.
Preparing to unpack .../01-php7.3-common_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-common (7.3.14-1~deb10u1) ...
Selecting previously unselected package php7.3-json.
Preparing to unpack .../02-php7.3-json_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-json (7.3.14-1~deb10u1) ...
Selecting previously unselected package php7.3-opcache.
Preparing to unpack .../03-php7.3-opcache_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-opcache (7.3.14-1~deb10u1) ...
Selecting previously unselected package php7.3-readline.
Preparing to unpack .../04-php7.3-readline_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-readline (7.3.14-1~deb10u1) ...
Selecting previously unselected package php7.3-cli.
Preparing to unpack .../05-php7.3-cli_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-cli (7.3.14-1~deb10u1) ...
Selecting previously unselected package libapache2-mod-php7.3.
Preparing to unpack .../06-libapache2-mod-php7.3_7.3.14-1~deb10u1_armhf.deb ...
Unpacking libapache2-mod-php7.3 (7.3.14-1~deb10u1) ...
Selecting previously unselected package libapache2-mod-php.
Preparing to unpack .../07-libapache2-mod-php_2%3a7.3+69_all.deb ...
Unpacking libapache2-mod-php (2:7.3+69) ...
Selecting previously unselected package php7.3.
Preparing to unpack .../08-php7.3_7.3.14-1~deb10u1_all.deb ...
Unpacking php7.3 (7.3.14-1~deb10u1) ...
Selecting previously unselected package php.
Preparing to unpack .../09-php_2%3a7.3+69_all.deb ...
Unpacking php (2:7.3+69) ...
Selecting previously unselected package php7.3-gd.
Preparing to unpack .../10-php7.3-gd_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-gd (7.3.14-1~deb10u1) ...
Selecting previously unselected package php-gd.
Preparing to unpack .../11-php-gd_2%3a7.3+69_all.deb ...
Unpacking php-gd (2:7.3+69) ...
Selecting previously unselected package php7.3-mysql.
Preparing to unpack .../12-php7.3-mysql_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-mysql (7.3.14-1~deb10u1) ...
Selecting previously unselected package php-mysql.
Preparing to unpack .../13-php-mysql_2%3a7.3+69_all.deb ...
Unpacking php-mysql (2:7.3+69) ...
Selecting previously unselected package php7.3-xml.
Preparing to unpack .../14-php7.3-xml_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-xml (7.3.14-1~deb10u1) ...
Selecting previously unselected package php-xml.
Preparing to unpack .../15-php-xml_2%3a7.3+69_all.deb ...
Unpacking php-xml (2:7.3+69) ...
php-common (2:69) 설정하는 중입니다 ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.
php7.3-common (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/calendar.ini with new version
Creating config file /etc/php/7.3/mods-available/ctype.ini with new version
Creating config file /etc/php/7.3/mods-available/exif.ini with new version
Creating config file /etc/php/7.3/mods-available/fileinfo.ini with new version
Creating config file /etc/php/7.3/mods-available/ftp.ini with new version
Creating config file /etc/php/7.3/mods-available/gettext.ini with new version
Creating config file /etc/php/7.3/mods-available/iconv.ini with new version
Creating config file /etc/php/7.3/mods-available/pdo.ini with new version
Creating config file /etc/php/7.3/mods-available/phar.ini with new version
Creating config file /etc/php/7.3/mods-available/posix.ini with new version
Creating config file /etc/php/7.3/mods-available/shmop.ini with new version
Creating config file /etc/php/7.3/mods-available/sockets.ini with new version
Creating config file /etc/php/7.3/mods-available/sysvmsg.ini with new version
Creating config file /etc/php/7.3/mods-available/sysvsem.ini with new version
Creating config file /etc/php/7.3/mods-available/sysvshm.ini with new version
Creating config file /etc/php/7.3/mods-available/tokenizer.ini with new version
php7.3-mysql (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/mysqlnd.ini with new version
Creating config file /etc/php/7.3/mods-available/mysqli.ini with new version
Creating config file /etc/php/7.3/mods-available/pdo_mysql.ini with new version
php7.3-xml (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/dom.ini with new version
Creating config file /etc/php/7.3/mods-available/simplexml.ini with new version
Creating config file /etc/php/7.3/mods-available/wddx.ini with new version
Creating config file /etc/php/7.3/mods-available/xml.ini with new version
Creating config file /etc/php/7.3/mods-available/xmlreader.ini with new version
Creating config file /etc/php/7.3/mods-available/xmlwriter.ini with new version
Creating config file /etc/php/7.3/mods-available/xsl.ini with new version
php7.3-opcache (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/opcache.ini with new version
php7.3-gd (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/gd.ini with new version
php-xml (2:7.3+69) 설정하는 중입니다 ...
php-mysql (2:7.3+69) 설정하는 중입니다 ...
php7.3-json (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/json.ini with new version
php7.3-readline (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/readline.ini with new version
php7.3-cli (7.3.14-1~deb10u1) 설정하는 중입니다 ...
update-alternatives: using /usr/bin/php7.3 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar7.3 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar7.3 to provide /usr/bin/phar.phar (phar.phar) in auto mode
Creating config file /etc/php/7.3/cli/php.ini with new version
php-gd (2:7.3+69) 설정하는 중입니다 ...
libapache2-mod-php7.3 (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/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.3
libapache2-mod-php (2:7.3+69) 설정하는 중입니다 ...
php7.3 (7.3.14-1~deb10u1) 설정하는 중입니다 ...
php (2:7.3+69) 설정하는 중입니다 ...
Processing triggers for man-db (2.8.5-2) ...
pi@raspberrypi:~ $
2. MariaDB 설치
아래 명령어로 MariaDB를 설치한다
sudo apt-get install mariadb-server
더보기
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo apt-get install mariadb-server
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
The following additional packages will be installed:
galera-3 gawk libaio1 libcgi-fast-perl libcgi-pm-perl
libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl
libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
libhttp-date-perl libhttp-message-perl libio-html-perl
liblwp-mediatypes-perl libmariadb3 libreadline5 libsigsegv2
libterm-readkey-perl libtimedate-perl liburi-perl mariadb-client-10.3
mariadb-client-core-10.3 mariadb-common mariadb-server-10.3
mariadb-server-core-10.3 mysql-common socat
제안하는 패키지:
gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl
libsql-statement-perl libdata-dump-perl libipc-sharedcache-perl libwww-perl
mailx mariadb-test tinyca
다음 새 패키지를 설치할 것입니다:
galera-3 gawk libaio1 libcgi-fast-perl libcgi-pm-perl
libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libencode-locale-perl
libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
libhttp-date-perl libhttp-message-perl libio-html-perl
liblwp-mediatypes-perl libmariadb3 libreadline5 libsigsegv2
libterm-readkey-perl libtimedate-perl liburi-perl mariadb-client-10.3
mariadb-client-core-10.3 mariadb-common mariadb-server mariadb-server-10.3
mariadb-server-core-10.3 mysql-common socat
0개 업그레이드, 31개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.
18.2 M바이트 아카이브를 받아야 합니다.
이 작업 후 150 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] y
받기:1 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libsigsegv2 armhf 2.12-2 [32.3 kB]
받기:2 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf gawk armhf 1:4.2.1+dfsg-1 [590 kB]
받기:3 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf mysql-common all 5.8+1.0.5 [7,324 B]
받기:4 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf mariadb-common all 1:10.3.22-0+deb10u1 [31.9 kB]
받기:5 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf galera-3 armhf 25.3.25-2 [811 kB]
받기:6 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libdbi-perl armhf 1.642-1+b1 [766 kB]
받기:7 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libconfig-inifiles-perl all 3.000001-1 [51.9 kB]
받기:8 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libaio1 armhf 0.3.112-3 [10.8 kB]
받기:9 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libreadline5 armhf 5.2+dfsg-3 [103 kB]
받기:10 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf mariadb-client-core-10.3 armhf 1:10.3.22-0+deb10u1 [4,708 kB]
받기:11 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf mariadb-client-10.3 armhf 1:10.3.22-0+deb10u1 [983 kB]
받기:12 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf mariadb-server-core-10.3 armhf 1:10.3.22-0+deb10u1 [5,199 kB]
받기:13 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf socat armhf 1.7.3.2-2 [324 kB]
받기:14 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf mariadb-server-10.3 armhf 1:10.3.22-0+deb10u1 [3,559 kB]
받기:15 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libhtml-tagset-perl all 3.20-3 [12.7 kB]
받기:16 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf liburi-perl all 1.76-1 [89.9 kB]
받기:17 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libhtml-parser-perl armhf 3.72-3+b2 [101 kB]
받기:18 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libcgi-pm-perl all 4.40-1 [222 kB]
받기:19 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libfcgi-perl armhf 0.78-2+b2 [35.0 kB]
받기:20 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libcgi-fast-perl all 1:2.13-1 [11.4 kB]
받기:21 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libmariadb3 armhf 1:10.3.22-0+deb10u1 [158 kB]
받기:22 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libdbd-mysql-perl armhf 4.050-2 [114 kB]
받기:23 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libencode-locale-perl all 1.05-1 [13.7 kB]
받기:24 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libhtml-template-perl all 2.97-1 [66.0 kB]
받기:25 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libtimedate-perl all 2.3000-2+deb10u1 [38.1 kB]
받기:26 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libhttp-date-perl all 6.02-1 [10.7 kB]
받기:27 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libio-html-perl all 1.001-1 [17.6 kB]
받기:28 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf liblwp-mediatypes-perl all 6.02-1 [22.1 kB]
받기:29 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libhttp-message-perl all 6.18-1 [77.8 kB]
받기:30 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libterm-readkey-perl armhf 2.38-1 [26.3 kB]
받기:31 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf mariadb-server all 1:10.3.22-0+deb10u1 [30.8 kB]
내려받기 18.2 M바이트, 소요시간 20초 (891 k바이트/초)
패키지에서 템플릿을 추출하는 중: 100%
패키지를 미리 설정하는 중입니다...
Selecting previously unselected package libsigsegv2:armhf.
(데이터베이스 읽는중 ...현재 159430개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../libsigsegv2_2.12-2_armhf.deb ...
Unpacking libsigsegv2:armhf (2.12-2) ...
libsigsegv2:armhf (2.12-2) 설정하는 중입니다 ...
Selecting previously unselected package gawk.
(데이터베이스 읽는중 ...현재 159439개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../00-gawk_1%3a4.2.1+dfsg-1_armhf.deb ...
Unpacking gawk (1:4.2.1+dfsg-1) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../01-mysql-common_5.8+1.0.5_all.deb ...
Unpacking mysql-common (5.8+1.0.5) ...
Selecting previously unselected package mariadb-common.
Preparing to unpack .../02-mariadb-common_1%3a10.3.22-0+deb10u1_all.deb ...
Unpacking mariadb-common (1:10.3.22-0+deb10u1) ...
Selecting previously unselected package galera-3.
Preparing to unpack .../03-galera-3_25.3.25-2_armhf.deb ...
Unpacking galera-3 (25.3.25-2) ...
Selecting previously unselected package libdbi-perl:armhf.
Preparing to unpack .../04-libdbi-perl_1.642-1+b1_armhf.deb ...
Unpacking libdbi-perl:armhf (1.642-1+b1) ...
Selecting previously unselected package libconfig-inifiles-perl.
Preparing to unpack .../05-libconfig-inifiles-perl_3.000001-1_all.deb ...
Unpacking libconfig-inifiles-perl (3.000001-1) ...
Selecting previously unselected package libaio1:armhf.
Preparing to unpack .../06-libaio1_0.3.112-3_armhf.deb ...
Unpacking libaio1:armhf (0.3.112-3) ...
Selecting previously unselected package libreadline5:armhf.
Preparing to unpack .../07-libreadline5_5.2+dfsg-3_armhf.deb ...
Unpacking libreadline5:armhf (5.2+dfsg-3) ...
Selecting previously unselected package mariadb-client-core-10.3.
Preparing to unpack .../08-mariadb-client-core-10.3_1%3a10.3.22-0+deb10u1_armhf.deb ...
Unpacking mariadb-client-core-10.3 (1:10.3.22-0+deb10u1) ...
Selecting previously unselected package mariadb-client-10.3.
Preparing to unpack .../09-mariadb-client-10.3_1%3a10.3.22-0+deb10u1_armhf.deb ...
Unpacking mariadb-client-10.3 (1:10.3.22-0+deb10u1) ...
Selecting previously unselected package mariadb-server-core-10.3.
Preparing to unpack .../10-mariadb-server-core-10.3_1%3a10.3.22-0+deb10u1_armhf.deb ...
Unpacking mariadb-server-core-10.3 (1:10.3.22-0+deb10u1) ...
Selecting previously unselected package socat.
Preparing to unpack .../11-socat_1.7.3.2-2_armhf.deb ...
Unpacking socat (1.7.3.2-2) ...
mysql-common (5.8+1.0.5) 설정하는 중입니다 ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
mariadb-common (1:10.3.22-0+deb10u1) 설정하는 중입니다 ...
update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mariadb-server-10.3.
(데이터베이스 읽는중 ...현재 160011개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../00-mariadb-server-10.3_1%3a10.3.22-0+deb10u1_armhf.deb ...
Unpacking mariadb-server-10.3 (1:10.3.22-0+deb10u1) ...
Selecting previously unselected package libhtml-tagset-perl.
Preparing to unpack .../01-libhtml-tagset-perl_3.20-3_all.deb ...
Unpacking libhtml-tagset-perl (3.20-3) ...
Selecting previously unselected package liburi-perl.
Preparing to unpack .../02-liburi-perl_1.76-1_all.deb ...
Unpacking liburi-perl (1.76-1) ...
Selecting previously unselected package libhtml-parser-perl.
Preparing to unpack .../03-libhtml-parser-perl_3.72-3+b2_armhf.deb ...
Unpacking libhtml-parser-perl (3.72-3+b2) ...
Selecting previously unselected package libcgi-pm-perl.
Preparing to unpack .../04-libcgi-pm-perl_4.40-1_all.deb ...
Unpacking libcgi-pm-perl (4.40-1) ...
Selecting previously unselected package libfcgi-perl.
Preparing to unpack .../05-libfcgi-perl_0.78-2+b2_armhf.deb ...
Unpacking libfcgi-perl (0.78-2+b2) ...
Selecting previously unselected package libcgi-fast-perl.
Preparing to unpack .../06-libcgi-fast-perl_1%3a2.13-1_all.deb ...
Unpacking libcgi-fast-perl (1:2.13-1) ...
Selecting previously unselected package libmariadb3:armhf.
Preparing to unpack .../07-libmariadb3_1%3a10.3.22-0+deb10u1_armhf.deb ...
Unpacking libmariadb3:armhf (1:10.3.22-0+deb10u1) ...
Selecting previously unselected package libdbd-mysql-perl:armhf.
Preparing to unpack .../08-libdbd-mysql-perl_4.050-2_armhf.deb ...
Unpacking libdbd-mysql-perl:armhf (4.050-2) ...
Selecting previously unselected package libencode-locale-perl.
Preparing to unpack .../09-libencode-locale-perl_1.05-1_all.deb ...
Unpacking libencode-locale-perl (1.05-1) ...
Selecting previously unselected package libhtml-template-perl.
Preparing to unpack .../10-libhtml-template-perl_2.97-1_all.deb ...
Unpacking libhtml-template-perl (2.97-1) ...
Selecting previously unselected package libtimedate-perl.
Preparing to unpack .../11-libtimedate-perl_2.3000-2+deb10u1_all.deb ...
Unpacking libtimedate-perl (2.3000-2+deb10u1) ...
Selecting previously unselected package libhttp-date-perl.
Preparing to unpack .../12-libhttp-date-perl_6.02-1_all.deb ...
Unpacking libhttp-date-perl (6.02-1) ...
Selecting previously unselected package libio-html-perl.
Preparing to unpack .../13-libio-html-perl_1.001-1_all.deb ...
Unpacking libio-html-perl (1.001-1) ...
Selecting previously unselected package liblwp-mediatypes-perl.
Preparing to unpack .../14-liblwp-mediatypes-perl_6.02-1_all.deb ...
Unpacking liblwp-mediatypes-perl (6.02-1) ...
Selecting previously unselected package libhttp-message-perl.
Preparing to unpack .../15-libhttp-message-perl_6.18-1_all.deb ...
Unpacking libhttp-message-perl (6.18-1) ...
Selecting previously unselected package libterm-readkey-perl.
Preparing to unpack .../16-libterm-readkey-perl_2.38-1_armhf.deb ...
Unpacking libterm-readkey-perl (2.38-1) ...
Selecting previously unselected package mariadb-server.
Preparing to unpack .../17-mariadb-server_1%3a10.3.22-0+deb10u1_all.deb ...
Unpacking mariadb-server (1:10.3.22-0+deb10u1) ...
libconfig-inifiles-perl (3.000001-1) 설정하는 중입니다 ...
libreadline5:armhf (5.2+dfsg-3) 설정하는 중입니다 ...
gawk (1:4.2.1+dfsg-1) 설정하는 중입니다 ...
libhtml-tagset-perl (3.20-3) 설정하는 중입니다 ...
liblwp-mediatypes-perl (6.02-1) 설정하는 중입니다 ...
libencode-locale-perl (1.05-1) 설정하는 중입니다 ...
socat (1.7.3.2-2) 설정하는 중입니다 ...
libio-html-perl (1.001-1) 설정하는 중입니다 ...
libmariadb3:armhf (1:10.3.22-0+deb10u1) 설정하는 중입니다 ...
galera-3 (25.3.25-2) 설정하는 중입니다 ...
libtimedate-perl (2.3000-2+deb10u1) 설정하는 중입니다 ...
libfcgi-perl (0.78-2+b2) 설정하는 중입니다 ...
libterm-readkey-perl (2.38-1) 설정하는 중입니다 ...
libaio1:armhf (0.3.112-3) 설정하는 중입니다 ...
liburi-perl (1.76-1) 설정하는 중입니다 ...
libdbi-perl:armhf (1.642-1+b1) 설정하는 중입니다 ...
libhttp-date-perl (6.02-1) 설정하는 중입니다 ...
mariadb-server-core-10.3 (1:10.3.22-0+deb10u1) 설정하는 중입니다 ...
libdbd-mysql-perl:armhf (4.050-2) 설정하는 중입니다 ...
mariadb-client-core-10.3 (1:10.3.22-0+deb10u1) 설정하는 중입니다 ...
libhtml-parser-perl (3.72-3+b2) 설정하는 중입니다 ...
libhttp-message-perl (6.18-1) 설정하는 중입니다 ...
libcgi-pm-perl (4.40-1) 설정하는 중입니다 ...
libhtml-template-perl (2.97-1) 설정하는 중입니다 ...
mariadb-client-10.3 (1:10.3.22-0+deb10u1) 설정하는 중입니다 ...
mariadb-server-10.3 (1:10.3.22-0+deb10u1) 설정하는 중입니다 ...
Created symlink /etc/systemd/system/mysql.service → /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service → /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
libcgi-fast-perl (1:2.13-1) 설정하는 중입니다 ...
mariadb-server (1:10.3.22-0+deb10u1) 설정하는 중입니다 ...
Processing triggers for systemd (241-7~deb10u3+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
pi@raspberrypi:~ $
3. phpmyadmin 설치
sudo apt-get install phpmyadmin
더보기
pi@raspberrypi:~ $ sudo apt-get install phpmyadmin
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
The following additional packages will be installed:
dbconfig-common dbconfig-mysql libmcrypt4 libzip4 php-bz2 php-curl
php-mbstring php-pear php-php-gettext php-phpseclib php-tcpdf php-zip
php7.1-common php7.1-mcrypt php7.3-bz2 php7.3-curl php7.3-mbstring
php7.3-zip
제안하는 패키지:
libmcrypt-dev mcrypt php-libsodium php-gmp php-imagick
다음 새 패키지를 설치할 것입니다:
dbconfig-common dbconfig-mysql libmcrypt4 libzip4 php-bz2 php-curl
php-mbstring php-pear php-php-gettext php-phpseclib php-tcpdf php-zip
php7.1-common php7.1-mcrypt php7.3-bz2 php7.3-curl php7.3-mbstring
php7.3-zip phpmyadmin
0개 업그레이드, 19개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.
14.0 M바이트 아카이브를 받아야 합니다.
이 작업 후 56.6 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] y
받기:1 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf dbconfig-common all 2.0.11+deb10u1 [599 kB]
받기:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf dbconfig-mysql all 2.0.11+deb10u1 [1,096 B]
받기:3 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libmcrypt4 armhf 2.5.8-3.4 [64.2 kB]
받기:4 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf libzip4 armhf 1.5.1-4 [45.4 kB]
받기:5 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-bz2 armhf 7.3.14-1~deb10u1 [8,692 B]
받기:6 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-bz2 all 2:7.3+69 [5,988 B]
받기:7 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-curl armhf 7.3.14-1~deb10u1 [26.7 kB]
받기:8 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-curl all 2:7.3+69 [5,992 B]
받기:9 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-mbstring armhf 7.3.14-1~deb10u1 [469 kB]
받기:10 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-mbstring all 2:7.3+69 [5,996 B]
받기:11 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-pear all 1:1.10.6+submodules+notgz-1.1 [285 kB]
받기:12 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-php-gettext all 1.0.12-0.1 [16.4 kB]
받기:13 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-phpseclib all 2.0.14-1 [184 kB]
받기:14 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-tcpdf all 6.2.26+dfsg-1 [7,831 kB]
받기:15 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.3-zip armhf 7.3.14-1~deb10u1 [17.6 kB]
받기:16 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php-zip all 2:7.3+69 [5,988 B]
받기:17 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.1-common armhf 7.1.20-1+b2 [480 kB]
받기:18 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf php7.1-mcrypt armhf 7.1.20-1+b2 [12.6 kB]
받기:19 http://ftp.harukasan.org/raspbian/raspbian buster/main armhf phpmyadmin all 4:4.6.6-5 [3,913 kB]
내려받기 14.0 M바이트, 소요시간 19초 (729 k바이트/초)
패키지를 미리 설정하는 중입니다...
Selecting previously unselected package dbconfig-common.
(데이터베이스 읽는중 ...현재 160458개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../00-dbconfig-common_2.0.11+deb10u1_all.deb ...
Unpacking dbconfig-common (2.0.11+deb10u1) ...
Selecting previously unselected package dbconfig-mysql.
Preparing to unpack .../01-dbconfig-mysql_2.0.11+deb10u1_all.deb ...
Unpacking dbconfig-mysql (2.0.11+deb10u1) ...
Selecting previously unselected package libmcrypt4.
Preparing to unpack .../02-libmcrypt4_2.5.8-3.4_armhf.deb ...
Unpacking libmcrypt4 (2.5.8-3.4) ...
Selecting previously unselected package libzip4:armhf.
Preparing to unpack .../03-libzip4_1.5.1-4_armhf.deb ...
Unpacking libzip4:armhf (1.5.1-4) ...
Selecting previously unselected package php7.3-bz2.
Preparing to unpack .../04-php7.3-bz2_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-bz2 (7.3.14-1~deb10u1) ...
Selecting previously unselected package php-bz2.
Preparing to unpack .../05-php-bz2_2%3a7.3+69_all.deb ...
Unpacking php-bz2 (2:7.3+69) ...
Selecting previously unselected package php7.3-curl.
Preparing to unpack .../06-php7.3-curl_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-curl (7.3.14-1~deb10u1) ...
Selecting previously unselected package php-curl.
Preparing to unpack .../07-php-curl_2%3a7.3+69_all.deb ...
Unpacking php-curl (2:7.3+69) ...
Selecting previously unselected package php7.3-mbstring.
Preparing to unpack .../08-php7.3-mbstring_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-mbstring (7.3.14-1~deb10u1) ...
Selecting previously unselected package php-mbstring.
Preparing to unpack .../09-php-mbstring_2%3a7.3+69_all.deb ...
Unpacking php-mbstring (2:7.3+69) ...
Selecting previously unselected package php-pear.
Preparing to unpack .../10-php-pear_1%3a1.10.6+submodules+notgz-1.1_all.deb ...
Unpacking php-pear (1:1.10.6+submodules+notgz-1.1) ...
Selecting previously unselected package php-php-gettext.
Preparing to unpack .../11-php-php-gettext_1.0.12-0.1_all.deb ...
Unpacking php-php-gettext (1.0.12-0.1) ...
Selecting previously unselected package php-phpseclib.
Preparing to unpack .../12-php-phpseclib_2.0.14-1_all.deb ...
Unpacking php-phpseclib (2.0.14-1) ...
Selecting previously unselected package php-tcpdf.
Preparing to unpack .../13-php-tcpdf_6.2.26+dfsg-1_all.deb ...
Unpacking php-tcpdf (6.2.26+dfsg-1) ...
Selecting previously unselected package php7.3-zip.
Preparing to unpack .../14-php7.3-zip_7.3.14-1~deb10u1_armhf.deb ...
Unpacking php7.3-zip (7.3.14-1~deb10u1) ...
Selecting previously unselected package php-zip.
Preparing to unpack .../15-php-zip_2%3a7.3+69_all.deb ...
Unpacking php-zip (2:7.3+69) ...
Selecting previously unselected package php7.1-common.
Preparing to unpack .../16-php7.1-common_7.1.20-1+b2_armhf.deb ...
Unpacking php7.1-common (7.1.20-1+b2) ...
Selecting previously unselected package php7.1-mcrypt.
Preparing to unpack .../17-php7.1-mcrypt_7.1.20-1+b2_armhf.deb ...
Unpacking php7.1-mcrypt (7.1.20-1+b2) ...
Selecting previously unselected package phpmyadmin.
Preparing to unpack .../18-phpmyadmin_4%3a4.6.6-5_all.deb ...
Unpacking phpmyadmin (4:4.6.6-5) ...
php-pear (1:1.10.6+submodules+notgz-1.1) 설정하는 중입니다 ...
php7.3-mbstring (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/mbstring.ini with new version
php-tcpdf (6.2.26+dfsg-1) 설정하는 중입니다 ...
libzip4:armhf (1.5.1-4) 설정하는 중입니다 ...
dbconfig-common (2.0.11+deb10u1) 설정하는 중입니다 ...
Creating config file /etc/dbconfig-common/config with new version
php7.3-bz2 (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/bz2.ini with new version
php-mbstring (2:7.3+69) 설정하는 중입니다 ...
php-phpseclib (2.0.14-1) 설정하는 중입니다 ...
php-php-gettext (1.0.12-0.1) 설정하는 중입니다 ...
php7.1-common (7.1.20-1+b2) 설정하는 중입니다 ...
Creating config file /etc/php/7.1/mods-available/calendar.ini with new version
Creating config file /etc/php/7.1/mods-available/ctype.ini with new version
Creating config file /etc/php/7.1/mods-available/exif.ini with new version
Creating config file /etc/php/7.1/mods-available/fileinfo.ini with new version
Creating config file /etc/php/7.1/mods-available/ftp.ini with new version
Creating config file /etc/php/7.1/mods-available/gettext.ini with new version
Creating config file /etc/php/7.1/mods-available/iconv.ini with new version
Creating config file /etc/php/7.1/mods-available/pdo.ini with new version
Creating config file /etc/php/7.1/mods-available/phar.ini with new version
Creating config file /etc/php/7.1/mods-available/posix.ini with new version
Creating config file /etc/php/7.1/mods-available/shmop.ini with new version
Creating config file /etc/php/7.1/mods-available/sockets.ini with new version
Creating config file /etc/php/7.1/mods-available/sysvmsg.ini with new version
Creating config file /etc/php/7.1/mods-available/sysvsem.ini with new version
Creating config file /etc/php/7.1/mods-available/sysvshm.ini with new version
Creating config file /etc/php/7.1/mods-available/tokenizer.ini with new version
php7.3-zip (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/zip.ini with new version
libmcrypt4 (2.5.8-3.4) 설정하는 중입니다 ...
php7.3-curl (7.3.14-1~deb10u1) 설정하는 중입니다 ...
Creating config file /etc/php/7.3/mods-available/curl.ini with new version
php-curl (2:7.3+69) 설정하는 중입니다 ...
php-bz2 (2:7.3+69) 설정하는 중입니다 ...
php7.1-mcrypt (7.1.20-1+b2) 설정하는 중입니다 ...
Creating config file /etc/php/7.1/mods-available/mcrypt.ini with new version
dbconfig-mysql (2.0.11+deb10u1) 설정하는 중입니다 ...
phpmyadmin (4:4.6.6-5) 설정하는 중입니다 ...
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
php-zip (2:7.3+69) 설정하는 중입니다 ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for libapache2-mod-php7.3 (7.3.14-1~deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
pi@raspberrypi:~ $
설치 중간에 다음과 같은 화면이 나오는데 apache2를 선택하면 됩니다.
그리고 설정하는 아래와 같은 화면이 나옵니다.
암호를 설정하는 화면이 나오는데 암호를 입력, 한번더 입력하면 됩니다.
그리고 아파치를 재실행합니다.
sudo service apache2 restart
관리화면 접속 주소는 http://내부IP주소/phpmyadmin 또는 http://도메인주소/phpmyadmin입니다.
ID는 root 패스워드는 설치시 입력한 암호입니다.