How-to-Install-Zabbix-on-Debian-10

Как установить и настроить Zabbix на Debian 10?

Мониторинг

Zabbix — это бесплатное, популярное и многофункциональное программное обеспечение для мониторинга ИТ-инфраструктуры с открытым исходным кодом, разработанное с использованием языка PHP. Zabbix используется для мониторинга сетей, серверов, приложений, сервисов, а также облачных ресурсов. Он также поддерживает мониторинг устройств хранения, баз данных, виртуальных машин, телефонии, ресурсов ИТ-безопасности и многое другое.

Для разработчиков Zabbix поставляется с API, который обеспечивает доступ практически ко всем функциям, доступным в Zabbix. Он поддерживает простую двустороннюю интеграцию с любым программным обеспечением.

 

Видео инструкция на нашем YouTube канале:

 

Требования

  • Debian 10

 

В этой статье показано, как установить и настроить последний выпуск Zabbix 5.0 LTS Server на Linux Debian 10 с базой данных MySQL, веб-интерфейсом на PHP и веб-сервером Apache.

 

Шаг 0. Обновление системы

Чтобы установка прошла гладко, обновим нашу систему до последней версии:

# apt update && apt dist-upgrade && shutdown -r now

 

Пример вывода:

0% [Working]

Get:1 http://security.debian.org buster/updates InRelease [65.4 kB]

0% [Connecting to mirrors.digitalocean.com (104.24.117.209)] [1 InRelease 37.1 kB/65.4 kB 57%]

0% [Connecting to mirrors.digitalocean.com (104.24.117.209)]

Get:2 http://mirrors.digitalocean.com/debian buster InRelease [121 kB]

0% [2 InRelease 22.8 kB/121 kB 19%]

0% [Waiting for headers]

Get:3 http://mirrors.digitalocean.com/debian buster-updates InRelease [51.9 kB]

0% [3 InRelease 22.0 kB/51.9 kB 42%]

0% [Waiting for headers]

Get:4 http://mirrors.digitalocean.com/debian buster-backports InRelease [46.7 kB]

0% [4 InRelease 32.2 kB/46.7 kB 69%]

0% [Working]
0% [Working]

Get:5 http://security.debian.org buster/updates/main Sources [130 kB]

0% [5 Sources 30.4 kB/130 kB 23%]

0% [Working]
0% [5 Sources store 0 B] [Waiting for headers]

Get:6 http://security.debian.org buster/updates/main amd64 Packages [208 kB]

0% [5 Sources store 0 B] [6 Packages 7,462 B/208 kB 4%]

0% [5 Sources store 0 B]

Get:7 http://security.debian.org buster/updates/main Translation-en [113 kB]

0% [5 Sources store 0 B] [7 Translation-en 0 B/113 kB 0%]

0% [5 Sources store 0 B]

0% [Working]
0% [6 Packages store 0 B]

0% [Working]
0% [7 Translation-en store 0 B]

0% [Working]
0% [Working]

Get:8 http://mirrors.digitalocean.com/debian buster/main Sources [7,831 kB]

0% [8 Sources 18.5 kB/7,831 kB 0%]
0% [8 Sources 1,126 kB/7,831 kB 14%]
31% [8 Sources 4,708 kB/7,831 kB 60%]

42% [Working]
42% [8 Sources store 0 B]

Get:9 http://mirrors.digitalocean.com/debian buster/main amd64 Packages [7,905 kB]

42% [8 Sources store 0 B] [9 Packages 0 B/7,905 kB 0%]

69% [8 Sources store 0 B]

Get:10 http://mirrors.digitalocean.com/debian buster/main Translation-en [5,969 kB]

69% [8 Sources store 0 B] [10 Translation-en 0 B/5,969 kB 0%]

89% [8 Sources store 0 B]

Get:11 http://mirrors.digitalocean.com/debian buster-updates/main Sources [3,716 B]

89% [8 Sources store 0 B] [11 Sources 0 B/3,716 B 0%]

89% [8 Sources store 0 B]

Get:12 http://mirrors.digitalocean.com/debian buster-updates/main amd64 Packages [7,868 B]

89% [8 Sources store 0 B] [12 Packages 0 B/7,868 B 0%]

89% [8 Sources store 0 B]

Get:13 http://mirrors.digitalocean.com/debian buster-updates/main Translation-en [5,672 B]

89% [8 Sources store 0 B] [13 Translation-en 0 B/5,672 B 0%]

89% [8 Sources store 0 B]

Get:14 http://mirrors.digitalocean.com/debian buster-backports/main Sources [290 kB]

89% [8 Sources store 0 B] [14 Sources 0 B/290 kB 0%]

90% [8 Sources store 0 B]

Get:15 http://mirrors.digitalocean.com/debian buster-backports/main amd64 Packages [332 kB]

90% [8 Sources store 0 B] [15 Packages 0 B/332 kB 0%]

92% [8 Sources store 0 B]

Get:16 http://mirrors.digitalocean.com/debian buster-backports/main Translation-en [259 kB]

92% [8 Sources store 0 B] [16 Translation-en 0 B/259 kB 0%]

92% [8 Sources store 0 B]
92% [8 Sources store 0 B]

93% [Working]
93% [9 Packages store 0 B]
93% [9 Packages store 0 B]
93% [9 Packages store 0 B]

94% [Working]
94% [10 Translation-en store 0 B]
94% [10 Translation-en store 0 B]
94% [10 Translation-en store 0 B]
94% [10 Translation-en store 0 B]

95% [Working]
95% [11 Sources store 0 B]

96% [Working]
96% [12 Packages store 0 B]

97% [Working]
97% [13 Translation-en store 0 B]

98% [Working]
98% [14 Sources store 0 B]

98% [Working]
98% [15 Packages store 0 B]

99% [Working]
99% [16 Translation-en store 0 B]

100% [Working]

Fetched 23.3 MB in 5s (4,412 kB/s)

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 55%

Reading package lists... 55%

Reading package lists... 92%

Reading package lists... 92%

Reading package lists... 94%

Reading package lists... 94%

Reading package lists... 95%

Reading package lists... 95%

Reading package lists... 95%

Reading package lists... 95%

Reading package lists... 95%

Reading package lists... 95%

Reading package lists... 97%

Reading package lists... 97%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... Done

 

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree

 

Reading state information... 0%

Reading state information... 9%

Reading state information... Done

25 packages can be upgraded. Run 'apt list --upgradable' to see them.

Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done

 

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree

 

Reading state information... 0%

Reading state information... 9%

Reading state information... Done

 

Calculating upgrade... 0%

Calculating upgrade... 10%

Calculating upgrade... Done

The following NEW packages will be installed:
linux-image-4.19.0-9-cloud-amd64
The following packages will be upgraded:
apt apt-utils base-files ca-certificates distro-info-data iputils-ping libapt-inst2.0 libapt-pkg5.0 libdns-export1104 libfuse2
libgnutls30 libicu63 libisc-export1100 libpam-systemd libssl1.1 libsystemd0 libudev1 linux-image-4.19.0-8-cloud-amd64
linux-image-cloud-amd64 openssl qemu-utils systemd systemd-sysv tzdata udev
25 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 54.5 MB of archives.
After this operation, 69.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

0% [Working]

Get:1 http://security.debian.org buster/updates/main amd64 libgnutls30 amd64 3.6.7-4+deb10u4 [1,124 kB]

0% [Connecting to mirrors.digitalocean.com (104.24.117.209)] [1 libgnutls30 0 B/1,124 kB 0%]

2% [Waiting for headers]

Get:2 http://security.debian.org buster/updates/main amd64 libapt-pkg5.0 amd64 1.8.2.1 [966 kB]

2% [Waiting for headers] [2 libapt-pkg5.0 0 B/966 kB 0%]

5% [Waiting for headers] [Waiting for headers]

Get:3 http://security.debian.org buster/updates/main amd64 libapt-inst2.0 amd64 1.8.2.1 [203 kB]

5% [Waiting for headers] [3 libapt-inst2.0 0 B/203 kB 0%]

6% [Waiting for headers]

Get:4 http://security.debian.org buster/updates/main amd64 apt amd64 1.8.2.1 [1,418 kB]

6% [Waiting for headers] [4 apt 0 B/1,418 kB 0%]

Get:5 http://mirrors.digitalocean.com/debian buster/main amd64 base-files amd64 10.3+deb10u4 [69.8 kB]

6% [5 base-files 0 B/69.8 kB 0%] [4 apt 261 kB/1,418 kB 18%]

9% [5 base-files 43.4 kB/69.8 kB 62%]

Get:6 http://security.debian.org buster/updates/main amd64 apt-utils amd64 1.8.2.1 [421 kB]

9% [5 base-files 43.4 kB/69.8 kB 62%] [6 apt-utils 0 B/421 kB 0%]

10% [6 apt-utils 85.9 kB/421 kB 20%]

11% [Waiting for headers]

Get:7 http://security.debian.org buster/updates/main amd64 libisc-export1100 amd64 1:9.11.5.P4+dfsg-5.1+deb10u1 [380 kB]

11% [Waiting for headers] [7 libisc-export1100 0 B/380 kB 0%]

12% [Waiting for headers]

Get:8 http://security.debian.org buster/updates/main amd64 libdns-export1104 amd64 1:9.11.5.P4+dfsg-5.1+deb10u1 [972 kB]

12% [Waiting for headers] [8 libdns-export1104 0 B/972 kB 0%]

14% [Waiting for headers]

Get:9 http://mirrors.digitalocean.com/debian buster/main amd64 systemd-sysv amd64 241-7~deb10u4 [99.9 kB]

14% [9 systemd-sysv 0 B/99.9 kB 0%] [Waiting for headers]

Get:10 http://security.debian.org buster/updates/main amd64 linux-image-4.19.0-8-cloud-amd64 amd64 4.19.98-1+deb10u1 [15.5 MB]

14% [9 systemd-sysv 43.4 kB/99.9 kB 43%] [10 linux-image-4.19.0-8-cloud-amd64 0 B/15.5 MB 0%]

16% [10 linux-image-4.19.0-8-cloud-amd64 212 kB/15.5 MB 1%]

Get:11 http://mirrors.digitalocean.com/debian buster/main amd64 libpam-systemd amd64 241-7~deb10u4 [209 kB]

18% [11 libpam-systemd 0 B/209 kB 0%] [10 linux-image-4.19.0-8-cloud-amd64 1,850 kB/15.5 MB 12%]

21% [10 linux-image-4.19.0-8-cloud-amd64 2,964 kB/15.5 MB 19%]

Get:12 http://mirrors.digitalocean.com/debian buster/main amd64 libsystemd0 amd64 241-7~deb10u4 [331 kB]

24% [12 libsystemd0 0 B/331 kB 0%] [10 linux-image-4.19.0-8-cloud-amd64 5,061 kB/15.5 MB 33%]

28% [10 linux-image-4.19.0-8-cloud-amd64 7,290 kB/15.5 MB 47%]

Get:13 http://mirrors.digitalocean.com/debian buster/main amd64 systemd amd64 241-7~deb10u4 [3,499 kB]

32% [13 systemd 0 B/3,499 kB 0%] [10 linux-image-4.19.0-8-cloud-amd64 9,585 kB/15.5 MB 62%]

46% [10 linux-image-4.19.0-8-cloud-amd64 15.4 MB/15.5 MB 99%]

47% [Waiting for headers]

Get:14 http://security.debian.org buster/updates/main amd64 linux-image-4.19.0-9-cloud-amd64 amd64 4.19.118-2+deb10u1 [15.6 MB]

47% [Waiting for headers] [14 linux-image-4.19.0-9-cloud-amd64 23.7 kB/15.6 MB 0%]

Get:15 http://mirrors.digitalocean.com/debian buster/main amd64 udev amd64 241-7~deb10u4 [1,277 kB]

50% [15 udev 0 B/1,277 kB 0%] [14 linux-image-4.19.0-9-cloud-amd64 2,294 kB/15.6 MB 15%]

56% [14 linux-image-4.19.0-9-cloud-amd64 4,349 kB/15.6 MB 28%]

Get:16 http://mirrors.digitalocean.com/debian buster/main amd64 libudev1 amd64 241-7~deb10u4 [150 kB]

62% [16 libudev1 0 B/150 kB 0%] [14 linux-image-4.19.0-9-cloud-amd64 8,389 kB/15.6 MB 54%]

65% [14 linux-image-4.19.0-9-cloud-amd64 9,657 kB/15.6 MB 62%]

Get:17 http://mirrors.digitalocean.com/debian buster/main amd64 tzdata all 2020a-0+deb10u1 [263 kB]

70% [17 tzdata 0 B/263 kB 0%] [14 linux-image-4.19.0-9-cloud-amd64 12.8 MB/15.6 MB 82%]

72% [14 linux-image-4.19.0-9-cloud-amd64 13.6 MB/15.6 MB 87%]

75% [Waiting for headers]

Get:18 http://mirrors.digitalocean.com/debian buster/main amd64 iputils-ping amd64 3:20180629-2+deb10u1 [43.3 kB]

75% [18 iputils-ping 0 B/43.3 kB 0%]

76% [Working]

Get:19 http://mirrors.digitalocean.com/debian buster/main amd64 libssl1.1 amd64 1.1.1d-0+deb10u3 [1,538 kB]

76% [19 libssl1.1 0 B/1,538 kB 0%]

79% [Working]

Get:20 http://mirrors.digitalocean.com/debian buster/main amd64 openssl amd64 1.1.1d-0+deb10u3 [844 kB]

79% [20 openssl 0 B/844 kB 0%]

81% [Working]

Get:21 http://mirrors.digitalocean.com/debian buster-updates/main amd64 ca-certificates all 20200601~deb10u1 [158 kB]

81% [21 ca-certificates 0 B/158 kB 0%]

82% [Working]

Get:22 http://mirrors.digitalocean.com/debian buster/main amd64 distro-info-data all 0.41+deb10u2 [6,584 B]

82% [22 distro-info-data 0 B/6,584 B 0%]

83% [Working]

Get:23 http://mirrors.digitalocean.com/debian buster/main amd64 libfuse2 amd64 2.9.9-1+deb10u1 [128 kB]

83% [23 libfuse2 0 B/128 kB 0%]

84% [Working]

Get:24 http://mirrors.digitalocean.com/debian buster/main amd64 libicu63 amd64 63.1-6+deb10u1 [8,300 kB]

84% [24 libicu63 0 B/8,300 kB 0%]

97% [Working]

Get:25 http://mirrors.digitalocean.com/debian buster/main amd64 linux-image-cloud-amd64 amd64 4.19+105+deb10u4 [8,160 B]

97% [25 linux-image-cloud-amd64 0 B/8,160 B 0%]

98% [Working]

Get:26 http://mirrors.digitalocean.com/debian buster/main amd64 qemu-utils amd64 1:3.1+dfsg-8+deb10u5 [966 kB]

98% [26 qemu-utils 0 B/966 kB 0%]

100% [Working]

Fetched 54.5 MB in 1s (57.8 MB/s)
Preconfiguring packages ...

(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 26970 files and directories currently installed.)
Preparing to unpack .../base-files_10.3+deb10u4_amd64.deb ...
Progress: [ 0%] [...............................................................................................................] Unpacking base-files (10.3+deb10u4) over (10.3+deb10u3) ...
Progress: [ 2%] [##.............................................................................................................] Setting up base-files (10.3+deb10u4) ...
Installing new version of config file /etc/debian_version ...
Progress: [ 3%] [###............................................................................................................] Progress: [ 4%] [####...........................................................................................................] (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 26970 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_241-7~deb10u4_amd64.deb ...
Progress: [ 5%] [#####..........................................................................................................] Unpacking systemd-sysv (241-7~deb10u4) over (241-7~deb10u3) ...
Progress: [ 6%] [######.........................................................................................................] Preparing to unpack .../libpam-systemd_241-7~deb10u4_amd64.deb ...
Progress: [ 7%] [#######........................................................................................................] Unpacking libpam-systemd:amd64 (241-7~deb10u4) over (241-7~deb10u3) ...
Progress: [ 8%] [########.......................................................................................................] Preparing to unpack .../libsystemd0_241-7~deb10u4_amd64.deb ...
Progress: [ 9%] [#########......................................................................................................] Unpacking libsystemd0:amd64 (241-7~deb10u4) over (241-7~deb10u3) ...
Progress: [ 10%] [##########.....................................................................................................] Setting up libsystemd0:amd64 (241-7~deb10u4) ...
Progress: [ 10%] [###########....................................................................................................] Progress: [ 11%] [############...................................................................................................] (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 26970 files and directories currently installed.)
Preparing to unpack .../systemd_241-7~deb10u4_amd64.deb ...
Progress: [ 12%] [#############..................................................................................................] Unpacking systemd (241-7~deb10u4) over (241-7~deb10u3) ...
Progress: [ 13%] [##############.................................................................................................] Preparing to unpack .../udev_241-7~deb10u4_amd64.deb ...
Progress: [ 14%] [###############................................................................................................] Unpacking udev (241-7~deb10u4) over (241-7~deb10u3) ...
Progress: [ 15%] [################...............................................................................................] Preparing to unpack .../libudev1_241-7~deb10u4_amd64.deb ...
Progress: [ 16%] [#################..............................................................................................] Unpacking libudev1:amd64 (241-7~deb10u4) over (241-7~deb10u3) ...
Progress: [ 17%] [###################............................................................................................] Setting up libudev1:amd64 (241-7~deb10u4) ...
Progress: [ 18%] [####################...........................................................................................] Progress: [ 19%] [#####################..........................................................................................] (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 26970 files and directories currently installed.)
Preparing to unpack .../libgnutls30_3.6.7-4+deb10u4_amd64.deb ...
Progress: [ 20%] [######################.........................................................................................] Unpacking libgnutls30:amd64 (3.6.7-4+deb10u4) over (3.6.7-4+deb10u2) ...
Setting up libgnutls30:amd64 (3.6.7-4+deb10u4) ...
Progress: [ 22%] [########################.......................................................................................] Progress: [ 23%] [#########################......................................................................................] (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 26970 files and directories currently installed.)
Preparing to unpack .../libapt-pkg5.0_1.8.2.1_amd64.deb ...
Progress: [ 24%] [##########################.....................................................................................] Unpacking libapt-pkg5.0:amd64 (1.8.2.1) over (1.8.2) ...
Progress: [ 25%] [###########################....................................................................................] Setting up libapt-pkg5.0:amd64 (1.8.2.1) ...
Progress: [ 26%] [############################...................................................................................] Progress: [ 27%] [#############################..................................................................................] (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 26970 files and directories currently installed.)
Preparing to unpack .../libapt-inst2.0_1.8.2.1_amd64.deb ...
Progress: [ 28%] [##############################.................................................................................] Unpacking libapt-inst2.0:amd64 (1.8.2.1) over (1.8.2) ...
Progress: [ 29%] [###############################................................................................................] Preparing to unpack .../archives/apt_1.8.2.1_amd64.deb ...
Progress: [ 30%] [################################...............................................................................] Unpacking apt (1.8.2.1) over (1.8.2) ...
Progress: [ 30%] [#################################..............................................................................] Setting up apt (1.8.2.1) ...
Progress: [ 31%] [##################################.............................................................................] Progress: [ 32%] [###################################............................................................................] (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 26970 files and directories currently installed.)
Preparing to unpack .../00-apt-utils_1.8.2.1_amd64.deb ...
Progress: [ 33%] [####################################...........................................................................] Unpacking apt-utils (1.8.2.1) over (1.8.2) ...
Progress: [ 34%] [######################################.........................................................................] Preparing to unpack .../01-tzdata_2020a-0+deb10u1_all.deb ...
Progress: [ 35%] [#######################################........................................................................] Unpacking tzdata (2020a-0+deb10u1) over (2019c-0+deb10u1) ...
Progress: [ 36%] [########################################.......................................................................] Preparing to unpack .../02-iputils-ping_3%3a20180629-2+deb10u1_amd64.deb ...
Progress: [ 37%] [#########################################......................................................................] Unpacking iputils-ping (3:20180629-2+deb10u1) over (3:20180629-2) ...
Progress: [ 38%] [##########################################.....................................................................] Preparing to unpack .../03-libssl1.1_1.1.1d-0+deb10u3_amd64.deb ...
Progress: [ 39%] [###########################################....................................................................] Unpacking libssl1.1:amd64 (1.1.1d-0+deb10u3) over (1.1.1d-0+deb10u2) ...
Progress: [ 40%] [############################################...................................................................] Preparing to unpack .../04-openssl_1.1.1d-0+deb10u3_amd64.deb ...
Unpacking openssl (1.1.1d-0+deb10u3) over (1.1.1d-0+deb10u2) ...
Progress: [ 42%] [##############################################.................................................................] Preparing to unpack .../05-ca-certificates_20200601~deb10u1_all.deb ...
Progress: [ 43%] [###############################################................................................................] Unpacking ca-certificates (20200601~deb10u1) over (20190110) ...
Progress: [ 44%] [################################################...............................................................] Preparing to unpack .../06-distro-info-data_0.41+deb10u2_all.deb ...
Progress: [ 45%] [#################################################..............................................................] Unpacking distro-info-data (0.41+deb10u2) over (0.41+deb10u1) ...
Progress: [ 46%] [##################################################.............................................................] Preparing to unpack .../07-libisc-export1100_1%3a9.11.5.P4+dfsg-5.1+deb10u1_amd64.deb ...
Progress: [ 47%] [###################################################............................................................] Unpacking libisc-export1100:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) over (1:9.11.5.P4+dfsg-5.1) ...
Progress: [ 48%] [####################################################...........................................................] Preparing to unpack .../08-libdns-export1104_1%3a9.11.5.P4+dfsg-5.1+deb10u1_amd64.deb ...
Progress: [ 49%] [#####################################################..........................................................] Unpacking libdns-export1104 (1:9.11.5.P4+dfsg-5.1+deb10u1) over (1:9.11.5.P4+dfsg-5.1) ...
Progress: [ 50%] [######################################################.........................................................] Preparing to unpack .../09-libfuse2_2.9.9-1+deb10u1_amd64.deb ...
Progress: [ 50%] [########################################################.......................................................] Unpacking libfuse2:amd64 (2.9.9-1+deb10u1) over (2.9.9-1) ...
Progress: [ 51%] [#########################################################......................................................] Preparing to unpack .../10-libicu63_63.1-6+deb10u1_amd64.deb ...
Progress: [ 52%] [##########################################################.....................................................] Unpacking libicu63:amd64 (63.1-6+deb10u1) over (63.1-6) ...
Progress: [ 53%] [###########################################################....................................................] Preparing to unpack .../11-linux-image-4.19.0-8-cloud-amd64_4.19.98-1+deb10u1_amd64.deb ...
Progress: [ 54%] [############################################################...................................................] Unpacking linux-image-4.19.0-8-cloud-amd64 (4.19.98-1+deb10u1) over (4.19.98-1) ...
Progress: [ 55%] [#############################################################..................................................] Selecting previously unselected package linux-image-4.19.0-9-cloud-amd64.
Preparing to unpack .../12-linux-image-4.19.0-9-cloud-amd64_4.19.118-2+deb10u1_amd64.deb ...
Progress: [ 56%] [##############################################################.................................................] Unpacking linux-image-4.19.0-9-cloud-amd64 (4.19.118-2+deb10u1) ...
Progress: [ 57%] [###############################################################................................................] Preparing to unpack .../13-linux-image-cloud-amd64_4.19+105+deb10u4_amd64.deb ...
Progress: [ 58%] [################################################################...............................................] Unpacking linux-image-cloud-amd64 (4.19+105+deb10u4) over (4.19+105+deb10u3) ...
Progress: [ 59%] [#################################################################..............................................] Preparing to unpack .../14-qemu-utils_1%3a3.1+dfsg-8+deb10u5_amd64.deb ...
Progress: [ 60%] [##################################################################.............................................] Unpacking qemu-utils (1:3.1+dfsg-8+deb10u5) over (1:3.1+dfsg-8+deb10u4) ...
Setting up linux-image-4.19.0-8-cloud-amd64 (4.19.98-1+deb10u1) ...
Progress: [ 62%] [####################################################################...........................................] I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.19.0-9-cloud-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.19.0-8-cloud-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.19.0-9-cloud-amd64
Found linux image: /boot/vmlinuz-4.19.0-8-cloud-amd64
Found initrd image: /boot/initrd.img-4.19.0-8-cloud-amd64
done
Progress: [ 63%] [#####################################################################..........................................] Setting up distro-info-data (0.41+deb10u2) ...
Progress: [ 64%] [######################################################################.........................................] Progress: [ 65%] [#######################################################################........................................] Setting up libssl1.1:amd64 (1.1.1d-0+deb10u3) ...
Progress: [ 66%] [########################################################################.......................................] Progress: [ 67%] [#########################################################################......................................] Setting up systemd (241-7~deb10u4) ...
Progress: [ 68%] [###########################################################################....................................] Progress: [ 69%] [############################################################################...................................] Setting up libfuse2:amd64 (2.9.9-1+deb10u1) ...
Progress: [ 70%] [#############################################################################..................................] Progress: [ 70%] [##############################################################################.................................] Setting up libapt-inst2.0:amd64 (1.8.2.1) ...
Progress: [ 71%] [###############################################################################................................] Progress: [ 72%] [################################################################################...............................] Setting up libicu63:amd64 (63.1-6+deb10u1) ...
Progress: [ 73%] [#################################################################################..............................] Progress: [ 74%] [##################################################################################.............................] Setting up tzdata (2020a-0+deb10u1) ...
Progress: [ 75%] [###################################################################################............................]
Current default time zone: 'Etc/UTC'
Local time is now: Thu Jul 2 14:42:58 UTC 2020.
Universal Time is now: Thu Jul 2 14:42:58 UTC 2020.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Progress: [ 76%] [####################################################################################...........................] Setting up udev (241-7~deb10u4) ...
Progress: [ 77%] [#####################################################################################..........................] update-initramfs: deferring update (trigger activated)
Progress: [ 78%] [######################################################################################.........................] Setting up libisc-export1100:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Progress: [ 79%] [#######################################################################################........................] Progress: [ 80%] [########################################################################################.......................] Setting up qemu-utils (1:3.1+dfsg-8+deb10u5) ...
Progress: [ 82%] [##########################################################################################.....................] Setting up openssl (1.1.1d-0+deb10u3) ...
Progress: [ 83%] [###########################################################################################....................] Progress: [ 84%] [#############################################################################################..................] Setting up libdns-export1104 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Progress: [ 85%] [##############################################################################################.................] Progress: [ 86%] [###############################################################################################................] Setting up iputils-ping (3:20180629-2+deb10u1) ...
Progress: [ 87%] [################################################################################################...............] Progress: [ 88%] [#################################################################################################..............] Setting up linux-image-4.19.0-9-cloud-amd64 (4.19.118-2+deb10u1) ...
Progress: [ 89%] [##################################################################################################.............] I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.19.0-8-cloud-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-4.19.0-8-cloud-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-4.19.0-9-cloud-amd64
I: /initrd.img is now a symlink to boot/initrd.img-4.19.0-9-cloud-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.19.0-9-cloud-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.19.0-9-cloud-amd64
Found initrd image: /boot/initrd.img-4.19.0-9-cloud-amd64
Found linux image: /boot/vmlinuz-4.19.0-8-cloud-amd64
Found initrd image: /boot/initrd.img-4.19.0-8-cloud-amd64
done
Progress: [ 90%] [###################################################################################################............] Setting up systemd-sysv (241-7~deb10u4) ...
Progress: [ 90%] [####################################################################################################...........] Progress: [ 91%] [#####################################################################################################..........] Setting up apt-utils (1.8.2.1) ...
Progress: [ 92%] [######################################################################################################.........] Progress: [ 93%] [#######################################################################################################........] Setting up ca-certificates (20200601~deb10u1) ...
Progress: [ 94%] [########################################################################################################.......] Updating certificates in /etc/ssl/certs...
13 added, 15 removed; done.
Progress: [ 95%] [#########################################################################################################......] Setting up linux-image-cloud-amd64 (4.19+105+deb10u4) ...
Setting up libpam-systemd:amd64 (241-7~deb10u4) ...
Progress: [ 96%] [##########################################################################################################.....] Progress: [ 97%] [###########################################################################################################....] Processing triggers for ntp (1:4.2.8p12+dfsg-4) ...
Processing triggers for dbus (1.12.16-1) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-4.19.0-9-cloud-amd64
Processing triggers for ca-certificates (20200601~deb10u1) ...
Progress: [ 98%] [############################################################################################################...] Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Progress: [ 99%] [#############################################################################################################..]

 

Шаг 1. Установка веб-сервера Apache и пакетов PHP

1. Чтобы установить Zabbix, сначала вам нужно установить Apache и PHP вместе с некоторыми модулями PHP. Выполнить это можно следующим образом:

# apt install apache2 php php-mysql php-mysqlnd php-ldap php-bcmath php-mbstring php-gd php-pdo php-xml libapache2-mod-php

 

Пример вывода:

Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done

 

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree

 

Reading state information... 0%

Reading state information... 8%

Reading state information... Done

Note, selecting 'php7.3-mysql' instead of 'php-mysqlnd'
Note, selecting 'php7.3-common' instead of 'php-pdo'
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils fontconfig-config fonts-dejavu-core libapache2-mod-php7.3 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1 libcurl4 libfontconfig1 libgd3 libgdbm-compat4 libgdbm6 libjansson4 libjbig0
libjpeg62-turbo libldap-2.4-2 libldap-common liblua5.2-0 libnghttp2-14 libperl5.28 librtmp1 libsasl2-2 libsasl2-modules
libsasl2-modules-db libsodium23 libssh2-1 libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 perl
perl-modules-5.28 php-common php7.3 php7.3-bcmath php7.3-cli php7.3-gd php7.3-json php7.3-ldap php7.3-mbstring php7.3-opcache
php7.3-readline php7.3-xml psmisc ssl-cert
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser php-pear libgd-tools libsasl2-modules-gssapi-mit
| libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql perl-doc
libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl openssl-blacklist
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils fontconfig-config fonts-dejavu-core libapache2-mod-php libapache2-mod-php7.3
libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1 libcurl4 libfontconfig1 libgd3 libgdbm-compat4 libgdbm6
libjansson4 libjbig0 libjpeg62-turbo libldap-2.4-2 libldap-common liblua5.2-0 libnghttp2-14 libperl5.28 librtmp1 libsasl2-2
libsasl2-modules libsasl2-modules-db libsodium23 libssh2-1 libtiff5 libwebp6 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6
libxpm4 perl perl-modules-5.28 php php-bcmath php-common php-gd php-ldap php-mbstring php-mysql php-xml php7.3 php7.3-bcmath
php7.3-cli php7.3-common php7.3-gd php7.3-json php7.3-ldap php7.3-mbstring php7.3-mysql php7.3-opcache php7.3-readline php7.3-xml
psmisc ssl-cert
0 upgraded, 64 newly installed, 0 to remove and 0 not upgraded.
Need to get 19.9 MB of archives.
After this operation, 90.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

0% [Working]

Get:1 http://security.debian.org buster/updates/main amd64 php7.3-common amd64 7.3.14-1~deb10u1 [949 kB]

0% [Connecting to mirrors.digitalocean.com (172.67.168.253)] [1 php7.3-common 0 B/949 kB 0%]

4% [Waiting for headers]

Get:2 http://security.debian.org buster/updates/main amd64 php7.3-json amd64 7.3.14-1~deb10u1 [18.6 kB]

4% [Waiting for headers] [2 php7.3-json 18.6 kB/18.6 kB 100%]

5% [Waiting for headers]

Get:3 http://security.debian.org buster/updates/main amd64 php7.3-opcache amd64 7.3.14-1~deb10u1 [184 kB]

5% [Waiting for headers] [3 php7.3-opcache 0 B/184 kB 0%]

6% [Waiting for headers]

Get:4 http://security.debian.org buster/updates/main amd64 php7.3-readline amd64 7.3.14-1~deb10u1 [12.0 kB]

6% [Waiting for headers] [4 php7.3-readline 12.0 kB/12.0 kB 100%]

6% [Waiting for headers]

Get:5 http://security.debian.org buster/updates/main amd64 php7.3-cli amd64 7.3.14-1~deb10u1 [1,414 kB]

6% [Waiting for headers] [5 php7.3-cli 0 B/1,414 kB 0%]

Get:6 http://mirrors.digitalocean.com/debian buster/main amd64 perl-modules-5.28 all 5.28.1-6 [2,873 kB]

10% [6 perl-modules-5.28 0 B/2,873 kB 0%] [5 php7.3-cli 974 kB/1,414 kB 69%]

12% [6 perl-modules-5.28 40.5 kB/2,873 kB 1%]

Get:7 http://security.debian.org buster/updates/main amd64 libapache2-mod-php7.3 amd64 7.3.14-1~deb10u1 [1,362 kB]

12% [6 perl-modules-5.28 40.5 kB/2,873 kB 1%] [7 libapache2-mod-php7.3 35.6 kB/1,362 kB 3%]

19% [6 perl-modules-5.28 257 kB/2,873 kB 9%]

Get:8 http://security.debian.org buster/updates/main amd64 php7.3 all 7.3.14-1~deb10u1 [40.7 kB]

19% [6 perl-modules-5.28 289 kB/2,873 kB 10%] [8 php7.3 0 B/40.7 kB 0%]

20% [6 perl-modules-5.28 325 kB/2,873 kB 11%]

Get:9 http://security.debian.org buster/updates/main amd64 php7.3-bcmath amd64 7.3.14-1~deb10u1 [15.0 kB]

20% [6 perl-modules-5.28 360 kB/2,873 kB 13%] [9 php7.3-bcmath 8,948 B/15.0 kB 60%]

20% [6 perl-modules-5.28 377 kB/2,873 kB 13%]

Get:10 http://security.debian.org buster/updates/main amd64 php7.3-gd amd64 7.3.14-1~deb10u1 [27.4 kB]

20% [6 perl-modules-5.28 426 kB/2,873 kB 15%] [10 php7.3-gd 0 B/27.4 kB 0%]

21% [6 perl-modules-5.28 426 kB/2,873 kB 15%]

Get:11 http://security.debian.org buster/updates/main amd64 php7.3-ldap amd64 7.3.14-1~deb10u1 [29.0 kB]

21% [6 perl-modules-5.28 490 kB/2,873 kB 17%] [11 php7.3-ldap 14.3 kB/29.0 kB 49%]

22% [6 perl-modules-5.28 522 kB/2,873 kB 18%]

Get:12 http://security.debian.org buster/updates/main amd64 php7.3-mbstring amd64 7.3.14-1~deb10u1 [521 kB]

22% [6 perl-modules-5.28 587 kB/2,873 kB 20%] [12 php7.3-mbstring 0 B/521 kB 0%]

26% [6 perl-modules-5.28 979 kB/2,873 kB 34%]

Get:13 http://security.debian.org buster/updates/main amd64 php7.3-mysql amd64 7.3.14-1~deb10u1 [119 kB]

26% [6 perl-modules-5.28 1,045 kB/2,873 kB 36%] [13 php7.3-mysql 0 B/119 kB 0%]

28% [6 perl-modules-5.28 1,241 kB/2,873 kB 43%]

Get:14 http://security.debian.org buster/updates/main amd64 php7.3-xml amd64 7.3.14-1~deb10u1 [109 kB]

28% [6 perl-modules-5.28 1,307 kB/2,873 kB 45%] [14 php7.3-xml 0 B/109 kB 0%]

29% [6 perl-modules-5.28 1,373 kB/2,873 kB 48%]

35% [Working]

Get:15 http://mirrors.digitalocean.com/debian buster/main amd64 libgdbm6 amd64 1.18.1-4 [64.7 kB]

35% [15 libgdbm6 0 B/64.7 kB 0%]

36% [Working]

Get:16 http://mirrors.digitalocean.com/debian buster/main amd64 libgdbm-compat4 amd64 1.18.1-4 [44.1 kB]

36% [16 libgdbm-compat4 0 B/44.1 kB 0%]

36% [Working]

Get:17 http://mirrors.digitalocean.com/debian buster/main amd64 libperl5.28 amd64 5.28.1-6 [3,883 kB]

36% [17 libperl5.28 0 B/3,883 kB 0%]

52% [Working]

Get:18 http://mirrors.digitalocean.com/debian buster/main amd64 perl amd64 5.28.1-6 [204 kB]

52% [18 perl 0 B/204 kB 0%]

53% [Working]

Get:19 http://mirrors.digitalocean.com/debian buster/main amd64 libapr1 amd64 1.6.5-1+b1 [102 kB]

53% [19 libapr1 0 B/102 kB 0%]

54% [Working]

Get:20 http://mirrors.digitalocean.com/debian buster/main amd64 libaprutil1 amd64 1.6.1-4 [91.8 kB]

54% [20 libaprutil1 0 B/91.8 kB 0%]

55% [Working]

Get:21 http://mirrors.digitalocean.com/debian buster/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-4 [18.7 kB]

55% [21 libaprutil1-dbd-sqlite3 0 B/18.7 kB 0%]

55% [Working]

Get:22 http://mirrors.digitalocean.com/debian buster/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-1+deb10u1 [69.1 kB]

55% [22 libsasl2-modules-db 0 B/69.1 kB 0%]

56% [Working]

Get:23 http://mirrors.digitalocean.com/debian buster/main amd64 libsasl2-2 amd64 2.1.27+dfsg-1+deb10u1 [106 kB]

56% [23 libsasl2-2 0 B/106 kB 0%]

57% [Working]

Get:24 http://mirrors.digitalocean.com/debian buster/main amd64 libldap-common all 2.4.47+dfsg-3+deb10u2 [89.7 kB]

57% [24 libldap-common 0 B/89.7 kB 0%]

57% [Working]

Get:25 http://mirrors.digitalocean.com/debian buster/main amd64 libldap-2.4-2 amd64 2.4.47+dfsg-3+deb10u2 [224 kB]

57% [25 libldap-2.4-2 0 B/224 kB 0%]

58% [Working]

Get:26 http://mirrors.digitalocean.com/debian buster/main amd64 libaprutil1-ldap amd64 1.6.1-4 [16.8 kB]

58% [26 libaprutil1-ldap 0 B/16.8 kB 0%]

59% [Working]

Get:27 http://mirrors.digitalocean.com/debian buster/main amd64 libbrotli1 amd64 1.0.7-2 [270 kB]

59% [27 libbrotli1 0 B/270 kB 0%]

60% [Working]

Get:28 http://mirrors.digitalocean.com/debian buster/main amd64 libnghttp2-14 amd64 1.36.0-2+deb10u1 [85.0 kB]

60% [28 libnghttp2-14 0 B/85.0 kB 0%]

61% [Working]

Get:29 http://mirrors.digitalocean.com/debian buster/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2 [60.5 kB]

61% [29 librtmp1 0 B/60.5 kB 0%]

61% [Working]

Get:30 http://mirrors.digitalocean.com/debian buster/main amd64 libssh2-1 amd64 1.8.0-2.1 [140 kB]

61% [30 libssh2-1 0 B/140 kB 0%]

62% [Working]

Get:31 http://mirrors.digitalocean.com/debian buster/main amd64 libcurl4 amd64 7.64.0-4+deb10u1 [331 kB]

62% [31 libcurl4 0 B/331 kB 0%]

64% [Working]

Get:32 http://mirrors.digitalocean.com/debian buster/main amd64 libjansson4 amd64 2.12-1 [38.0 kB]

64% [32 libjansson4 0 B/38.0 kB 0%]

64% [Working]

Get:33 http://mirrors.digitalocean.com/debian buster/main amd64 liblua5.2-0 amd64 5.2.4-1.1+b2 [110 kB]

64% [33 liblua5.2-0 0 B/110 kB 0%]

65% [Working]

Get:34 http://mirrors.digitalocean.com/debian buster/main amd64 apache2-bin amd64 2.4.38-3+deb10u3 [1,307 kB]

65% [34 apache2-bin 0 B/1,307 kB 0%]

71% [Working]

Get:35 http://mirrors.digitalocean.com/debian buster/main amd64 apache2-data all 2.4.38-3+deb10u3 [165 kB]

71% [35 apache2-data 0 B/165 kB 0%]

72% [Working]

Get:36 http://mirrors.digitalocean.com/debian buster/main amd64 apache2-utils amd64 2.4.38-3+deb10u3 [236 kB]

72% [36 apache2-utils 0 B/236 kB 0%]

73% [Working]

Get:37 http://mirrors.digitalocean.com/debian buster/main amd64 apache2 amd64 2.4.38-3+deb10u3 [251 kB]

73% [37 apache2 0 B/251 kB 0%]

74% [Working]

Get:38 http://mirrors.digitalocean.com/debian buster/main amd64 fonts-dejavu-core all 2.37-1 [1,068 kB]

74% [38 fonts-dejavu-core 0 B/1,068 kB 0%]

79% [Working]

Get:39 http://mirrors.digitalocean.com/debian buster/main amd64 fontconfig-config all 2.13.1-2 [280 kB]

79% [39 fontconfig-config 0 B/280 kB 0%]

80% [Working]

Get:40 http://mirrors.digitalocean.com/debian buster/main amd64 psmisc amd64 23.2-1 [126 kB]

80% [40 psmisc 0 B/126 kB 0%]

81% [Working]

Get:41 http://mirrors.digitalocean.com/debian buster/main amd64 php-common all 2:69 [15.0 kB]

81% [41 php-common 0 B/15.0 kB 0%]

82% [Working]

Get:42 http://mirrors.digitalocean.com/debian buster/main amd64 libsodium23 amd64 1.0.17-1 [158 kB]

82% [42 libsodium23 0 B/158 kB 0%]

83% [Working]

Get:43 http://mirrors.digitalocean.com/debian buster/main amd64 libapache2-mod-php all 2:7.3+69 [6,120 B]

83% [43 libapache2-mod-php 0 B/6,120 B 0%]

83% [Working]

Get:44 http://mirrors.digitalocean.com/debian buster/main amd64 libfontconfig1 amd64 2.13.1-2 [346 kB]

83% [44 libfontconfig1 0 B/346 kB 0%]

85% [Working]

Get:45 http://mirrors.digitalocean.com/debian buster/main amd64 libjpeg62-turbo amd64 1:1.5.2-2+b1 [134 kB]

85% [45 libjpeg62-turbo 0 B/134 kB 0%]

85% [Working]

Get:46 http://mirrors.digitalocean.com/debian buster/main amd64 libjbig0 amd64 2.1-3.1+b2 [31.0 kB]

85% [46 libjbig0 0 B/31.0 kB 0%]

86% [Working]

Get:47 http://mirrors.digitalocean.com/debian buster/main amd64 libwebp6 amd64 0.6.1-2 [263 kB]

86% [47 libwebp6 0 B/263 kB 0%]

87% [Working]

Get:48 http://mirrors.digitalocean.com/debian buster/main amd64 libtiff5 amd64 4.1.0+git191117-2~deb10u1 [271 kB]

87% [48 libtiff5 0 B/271 kB 0%]

89% [Working]

Get:49 http://mirrors.digitalocean.com/debian buster/main amd64 libxau6 amd64 1:1.0.8-1+b2 [19.9 kB]

89% [49 libxau6 0 B/19.9 kB 0%]

89% [Working]

Get:50 http://mirrors.digitalocean.com/debian buster/main amd64 libxdmcp6 amd64 1:1.1.2-3 [26.3 kB]

89% [50 libxdmcp6 0 B/26.3 kB 0%]

89% [Working]

Get:51 http://mirrors.digitalocean.com/debian buster/main amd64 libxcb1 amd64 1.13.1-2 [137 kB]

89% [51 libxcb1 0 B/137 kB 0%]

90% [Working]

Get:52 http://mirrors.digitalocean.com/debian buster/main amd64 libx11-data all 2:1.6.7-1 [298 kB]

90% [52 libx11-data 0 B/298 kB 0%]

92% [Working]

Get:53 http://mirrors.digitalocean.com/debian buster/main amd64 libx11-6 amd64 2:1.6.7-1 [754 kB]

92% [53 libx11-6 0 B/754 kB 0%]

95% [Working]

Get:54 http://mirrors.digitalocean.com/debian buster/main amd64 libxpm4 amd64 1:3.5.12-1 [49.1 kB]

95% [54 libxpm4 0 B/49.1 kB 0%]

96% [Working]

Get:55 http://mirrors.digitalocean.com/debian buster/main amd64 libgd3 amd64 2.2.5-5.2 [136 kB]

96% [55 libgd3 0 B/136 kB 0%]

97% [Working]

Get:56 http://mirrors.digitalocean.com/debian buster/main amd64 libsasl2-modules amd64 2.1.27+dfsg-1+deb10u1 [104 kB]

97% [56 libsasl2-modules 0 B/104 kB 0%]

97% [Working]

Get:57 http://mirrors.digitalocean.com/debian buster/main amd64 php all 2:7.3+69 [5,964 B]

97% [57 php 0 B/5,964 B 0%]

98% [Working]

Get:58 http://mirrors.digitalocean.com/debian buster/main amd64 php-bcmath all 2:7.3+69 [5,996 B]

98% [58 php-bcmath 0 B/5,996 B 0%]

98% [Working]

Get:59 http://mirrors.digitalocean.com/debian buster/main amd64 php-gd all 2:7.3+69 [5,984 B]

98% [59 php-gd 0 B/5,984 B 0%]

98% [Working]

Get:60 http://mirrors.digitalocean.com/debian buster/main amd64 php-ldap all 2:7.3+69 [5,988 B]

98% [60 php-ldap 0 B/5,988 B 0%]

99% [Working]

Get:61 http://mirrors.digitalocean.com/debian buster/main amd64 php-mbstring all 2:7.3+69 [5,996 B]

99% [61 php-mbstring 0 B/5,996 B 0%]

99% [Working]

Get:62 http://mirrors.digitalocean.com/debian buster/main amd64 php-mysql all 2:7.3+69 [5,992 B]

99% [62 php-mysql 0 B/5,992 B 0%]

99% [Working]

Get:63 http://mirrors.digitalocean.com/debian buster/main amd64 php-xml all 2:7.3+69 [6,012 B]

99% [63 php-xml 0 B/6,012 B 0%]

100% [Working]

Get:64 http://mirrors.digitalocean.com/debian buster/main amd64 ssl-cert all 1.0.39 [20.8 kB]

100% [64 ssl-cert 0 B/20.8 kB 0%]

100% [Working]

Fetched 19.9 MB in 2s (12.7 MB/s)

Extracting templates from packages: 46%
Extracting templates from packages: 93%
Extracting templates from packages: 100%
Preconfiguring packages ...

Selecting previously unselected package perl-modules-5.28.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 28060 files and directories currently installed.)
Preparing to unpack .../00-perl-modules-5.28_5.28.1-6_all.deb ...
Progress: [ 0%] [...............................................................................................................] Unpacking perl-modules-5.28 (5.28.1-6) ...
Selecting previously unselected package libgdbm6:amd64.
Preparing to unpack .../01-libgdbm6_1.18.1-4_amd64.deb ...
Progress: [ 1%] [#..............................................................................................................] Unpacking libgdbm6:amd64 (1.18.1-4) ...
Selecting previously unselected package libgdbm-compat4:amd64.
Preparing to unpack .../02-libgdbm-compat4_1.18.1-4_amd64.deb ...
Unpacking libgdbm-compat4:amd64 (1.18.1-4) ...
Progress: [ 2%] [##.............................................................................................................] Selecting previously unselected package libperl5.28:amd64.
Preparing to unpack .../03-libperl5.28_5.28.1-6_amd64.deb ...
Unpacking libperl5.28:amd64 (5.28.1-6) ...
Progress: [ 3%] [###............................................................................................................] Selecting previously unselected package perl.
Preparing to unpack .../04-perl_5.28.1-6_amd64.deb ...
Unpacking perl (5.28.1-6) ...
Selecting previously unselected package libapr1:amd64.
Preparing to unpack .../05-libapr1_1.6.5-1+b1_amd64.deb ...
Progress: [ 4%] [####...........................................................................................................] Unpacking libapr1:amd64 (1.6.5-1+b1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../06-libaprutil1_1.6.1-4_amd64.deb ...
Progress: [ 5%] [#####..........................................................................................................] Unpacking libaprutil1:amd64 (1.6.1-4) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../07-libaprutil1-dbd-sqlite3_1.6.1-4_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-4) ...
Progress: [ 6%] [######.........................................................................................................] Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../08-libsasl2-modules-db_2.1.27+dfsg-1+deb10u1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-1+deb10u1) ...
Progress: [ 7%] [#######........................................................................................................] Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../09-libsasl2-2_2.1.27+dfsg-1+deb10u1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.27+dfsg-1+deb10u1) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../10-libldap-common_2.4.47+dfsg-3+deb10u2_all.deb ...
Progress: [ 8%] [#########......................................................................................................] Unpacking libldap-common (2.4.47+dfsg-3+deb10u2) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../11-libldap-2.4-2_2.4.47+dfsg-3+deb10u2_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u2) ...
Progress: [ 9%] [##########.....................................................................................................] Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../12-libaprutil1-ldap_1.6.1-4_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.6.1-4) ...
Progress: [ 10%] [###########....................................................................................................] Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../13-libbrotli1_1.0.7-2_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.7-2) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../14-libnghttp2-14_1.36.0-2+deb10u1_amd64.deb ...
Progress: [ 11%] [############...................................................................................................] Unpacking libnghttp2-14:amd64 (1.36.0-2+deb10u1) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../15-librtmp1_2.4+20151223.gitfa8646d.1-2_amd64.deb ...
Progress: [ 12%] [#############..................................................................................................] Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ...
Selecting previously unselected package libssh2-1:amd64.
Preparing to unpack .../16-libssh2-1_1.8.0-2.1_amd64.deb ...
Unpacking libssh2-1:amd64 (1.8.0-2.1) ...
Progress: [ 13%] [##############.................................................................................................] Selecting previously unselected package libcurl4:amd64.
Preparing to unpack .../17-libcurl4_7.64.0-4+deb10u1_amd64.deb ...
Unpacking libcurl4:amd64 (7.64.0-4+deb10u1) ...
Progress: [ 14%] [###############................................................................................................] Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../18-libjansson4_2.12-1_amd64.deb ...
Unpacking libjansson4:amd64 (2.12-1) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../19-liblua5.2-0_5.2.4-1.1+b2_amd64.deb ...
Progress: [ 15%] [################...............................................................................................] Unpacking liblua5.2-0:amd64 (5.2.4-1.1+b2) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../20-apache2-bin_2.4.38-3+deb10u3_amd64.deb ...
Unpacking apache2-bin (2.4.38-3+deb10u3) ...
Progress: [ 16%] [##################.............................................................................................] Selecting previously unselected package apache2-data.
Preparing to unpack .../21-apache2-data_2.4.38-3+deb10u3_all.deb ...
Unpacking apache2-data (2.4.38-3+deb10u3) ...
Progress: [ 17%] [###################............................................................................................] Selecting previously unselected package apache2-utils.
Preparing to unpack .../22-apache2-utils_2.4.38-3+deb10u3_amd64.deb ...
Unpacking apache2-utils (2.4.38-3+deb10u3) ...
Selecting previously unselected package apache2.
Preparing to unpack .../23-apache2_2.4.38-3+deb10u3_amd64.deb ...
Progress: [ 18%] [####################...........................................................................................] Unpacking apache2 (2.4.38-3+deb10u3) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../24-fonts-dejavu-core_2.37-1_all.deb ...
Progress: [ 19%] [#####################..........................................................................................] Unpacking fonts-dejavu-core (2.37-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../25-fontconfig-config_2.13.1-2_all.deb ...
Unpacking fontconfig-config (2.13.1-2) ...
Progress: [ 20%] [######################.........................................................................................] Selecting previously unselected package psmisc.
Preparing to unpack .../26-psmisc_23.2-1_amd64.deb ...
Unpacking psmisc (23.2-1) ...
Progress: [ 21%] [#######################........................................................................................] Selecting previously unselected package php-common.
Preparing to unpack .../27-php-common_2%3a69_all.deb ...
Unpacking php-common (2:69) ...
Selecting previously unselected package php7.3-common.
Preparing to unpack .../28-php7.3-common_7.3.14-1~deb10u1_amd64.deb ...
Progress: [ 22%] [########################.......................................................................................] Unpacking php7.3-common (7.3.14-1~deb10u1) ...
Selecting previously unselected package php7.3-json.
Preparing to unpack .../29-php7.3-json_7.3.14-1~deb10u1_amd64.deb ...
Unpacking php7.3-json (7.3.14-1~deb10u1) ...
Progress: [ 23%] [#########################......................................................................................] Selecting previously unselected package php7.3-opcache.
Preparing to unpack .../30-php7.3-opcache_7.3.14-1~deb10u1_amd64.deb ...
Unpacking php7.3-opcache (7.3.14-1~deb10u1) ...
Progress: [ 24%] [##########################.....................................................................................] Selecting previously unselected package php7.3-readline.
Preparing to unpack .../31-php7.3-readline_7.3.14-1~deb10u1_amd64.deb ...
Unpacking php7.3-readline (7.3.14-1~deb10u1) ...
Selecting previously unselected package libsodium23:amd64.
Preparing to unpack .../32-libsodium23_1.0.17-1_amd64.deb ...
Progress: [ 25%] [############################...................................................................................] Unpacking libsodium23:amd64 (1.0.17-1) ...
Selecting previously unselected package php7.3-cli.
Preparing to unpack .../33-php7.3-cli_7.3.14-1~deb10u1_amd64.deb ...
Progress: [ 26%] [############################...................................................................................] Unpacking php7.3-cli (7.3.14-1~deb10u1) ...
Selecting previously unselected package libapache2-mod-php7.3.
Preparing to unpack .../34-libapache2-mod-php7.3_7.3.14-1~deb10u1_amd64.deb ...
Unpacking libapache2-mod-php7.3 (7.3.14-1~deb10u1) ...
Progress: [ 27%] [##############################.................................................................................] Selecting previously unselected package libapache2-mod-php.
Preparing to unpack .../35-libapache2-mod-php_2%3a7.3+69_all.deb ...
Unpacking libapache2-mod-php (2:7.3+69) ...
Progress: [ 28%] [###############################................................................................................] Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../36-libfontconfig1_2.13.1-2_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.13.1-2) ...
Selecting previously unselected package libjpeg62-turbo:amd64.
Preparing to unpack .../37-libjpeg62-turbo_1%3a1.5.2-2+b1_amd64.deb ...
Progress: [ 29%] [################################...............................................................................] Unpacking libjpeg62-turbo:amd64 (1:1.5.2-2+b1) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../38-libjbig0_2.1-3.1+b2_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-3.1+b2) ...
Progress: [ 30%] [#################################..............................................................................] Selecting previously unselected package libwebp6:amd64.
Preparing to unpack .../39-libwebp6_0.6.1-2_amd64.deb ...
Unpacking libwebp6:amd64 (0.6.1-2) ...
Progress: [ 31%] [##################################.............................................................................] Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../40-libtiff5_4.1.0+git191117-2~deb10u1_amd64.deb ...
Unpacking libtiff5:amd64 (4.1.0+git191117-2~deb10u1) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../41-libxau6_1%3a1.0.8-1+b2_amd64.deb ...
Progress: [ 32%] [###################################............................................................................] Unpacking libxau6:amd64 (1:1.0.8-1+b2) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../42-libxdmcp6_1%3a1.1.2-3_amd64.deb ...
Progress: [ 33%] [####################################...........................................................................] Unpacking libxdmcp6:amd64 (1:1.1.2-3) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../43-libxcb1_1.13.1-2_amd64.deb ...
Unpacking libxcb1:amd64 (1.13.1-2) ...
Progress: [ 34%] [######################################.........................................................................] Selecting previously unselected package libx11-data.
Preparing to unpack .../44-libx11-data_2%3a1.6.7-1_all.deb ...
Unpacking libx11-data (2:1.6.7-1) ...
Progress: [ 35%] [######################################.........................................................................] Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../45-libx11-6_2%3a1.6.7-1_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.7-1) ...
Selecting previously unselected package libxpm4:amd64.
Preparing to unpack .../46-libxpm4_1%3a3.5.12-1_amd64.deb ...
Progress: [ 36%] [########################################.......................................................................] Unpacking libxpm4:amd64 (1:3.5.12-1) ...
Selecting previously unselected package libgd3:amd64.
Preparing to unpack .../47-libgd3_2.2.5-5.2_amd64.deb ...
Unpacking libgd3:amd64 (2.2.5-5.2) ...
Progress: [ 37%] [#########################################......................................................................] Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../48-libsasl2-modules_2.1.27+dfsg-1+deb10u1_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-1+deb10u1) ...
Progress: [ 38%] [##########################################.....................................................................] Selecting previously unselected package php7.3.
Preparing to unpack .../49-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 .../50-php_2%3a7.3+69_all.deb ...
Progress: [ 39%] [###########################################....................................................................] Unpacking php (2:7.3+69) ...
Selecting previously unselected package php7.3-bcmath.
Preparing to unpack .../51-php7.3-bcmath_7.3.14-1~deb10u1_amd64.deb ...
Progress: [ 40%] [############################################...................................................................] Unpacking php7.3-bcmath (7.3.14-1~deb10u1) ...
Selecting previously unselected package php-bcmath.
Preparing to unpack .../52-php-bcmath_2%3a7.3+69_all.deb ...
Unpacking php-bcmath (2:7.3+69) ...
Progress: [ 41%] [#############################################..................................................................] Selecting previously unselected package php7.3-gd.
Preparing to unpack .../53-php7.3-gd_7.3.14-1~deb10u1_amd64.deb ...
Unpacking php7.3-gd (7.3.14-1~deb10u1) ...
Progress: [ 42%] [##############################################.................................................................] Selecting previously unselected package php-gd.
Preparing to unpack .../54-php-gd_2%3a7.3+69_all.deb ...
Unpacking php-gd (2:7.3+69) ...
Selecting previously unselected package php7.3-ldap.
Preparing to unpack .../55-php7.3-ldap_7.3.14-1~deb10u1_amd64.deb ...
Progress: [ 43%] [###############################################................................................................] Unpacking php7.3-ldap (7.3.14-1~deb10u1) ...
Selecting previously unselected package php-ldap.
Preparing to unpack .../56-php-ldap_2%3a7.3+69_all.deb ...
Unpacking php-ldap (2:7.3+69) ...
Progress: [ 44%] [#################################################..............................................................] Selecting previously unselected package php7.3-mbstring.
Preparing to unpack .../57-php7.3-mbstring_7.3.14-1~deb10u1_amd64.deb ...
Unpacking php7.3-mbstring (7.3.14-1~deb10u1) ...
Progress: [ 45%] [##################################################.............................................................] Selecting previously unselected package php-mbstring.
Preparing to unpack .../58-php-mbstring_2%3a7.3+69_all.deb ...
Unpacking php-mbstring (2:7.3+69) ...
Selecting previously unselected package php7.3-mysql.
Preparing to unpack .../59-php7.3-mysql_7.3.14-1~deb10u1_amd64.deb ...
Progress: [ 46%] [###################################################............................................................] Unpacking php7.3-mysql (7.3.14-1~deb10u1) ...
Selecting previously unselected package php-mysql.
Preparing to unpack .../60-php-mysql_2%3a7.3+69_all.deb ...
Progress: [ 47%] [####################################################...........................................................] Unpacking php-mysql (2:7.3+69) ...
Selecting previously unselected package php7.3-xml.
Preparing to unpack .../61-php7.3-xml_7.3.14-1~deb10u1_amd64.deb ...
Unpacking php7.3-xml (7.3.14-1~deb10u1) ...
Progress: [ 48%] [#####################################################..........................................................] Selecting previously unselected package php-xml.
Preparing to unpack .../62-php-xml_2%3a7.3+69_all.deb ...
Unpacking php-xml (2:7.3+69) ...
Progress: [ 49%] [######################################################.........................................................] Selecting previously unselected package ssl-cert.
Preparing to unpack .../63-ssl-cert_1.0.39_all.deb ...
Unpacking ssl-cert (1.0.39) ...
Setting up perl-modules-5.28 (5.28.1-6) ...
Progress: [ 50%] [#######################################################........................................................] Setting up libxau6:amd64 (1:1.0.8-1+b2) ...
Progress: [ 51%] [#########################################################......................................................] Setting up libxdmcp6:amd64 (1:1.1.2-3) ...
Progress: [ 52%] [#########################################################......................................................] Setting up libxcb1:amd64 (1.13.1-2) ...
Setting up libsodium23:amd64 (1.0.17-1) ...
Progress: [ 53%] [###########################################################....................................................] Setting up psmisc (23.2-1) ...
Progress: [ 54%] [############################################################...................................................] Setting up libbrotli1:amd64 (1.0.7-2) ...
Progress: [ 55%] [#############################################################..................................................] Setting up libsasl2-modules:amd64 (2.1.27+dfsg-1+deb10u1) ...
Progress: [ 56%] [##############################################################.................................................] Setting up libnghttp2-14:amd64 (1.36.0-2+deb10u1) ...
Setting up libapr1:amd64 (1.6.5-1+b1) ...
Progress: [ 57%] [###############################################################................................................] Setting up libldap-common (2.4.47+dfsg-3+deb10u2) ...
Progress: [ 58%] [################################################################...............................................] Setting up libjbig0:amd64 (2.1-3.1+b2) ...
Progress: [ 59%] [#################################################################..............................................] Setting up libjansson4:amd64 (2.12-1) ...
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-1+deb10u1) ...
Progress: [ 60%] [##################################################################.............................................] Setting up libjpeg62-turbo:amd64 (1:1.5.2-2+b1) ...
Progress: [ 61%] [###################################################################............................................] Setting up libx11-data (2:1.6.7-1) ...
Progress: [ 62%] [#####################################################################..........................................] Setting up ssl-cert (1.0.39) ...
Progress: [ 63%] [#####################################################################..........................................] Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ...
Setting up libwebp6:amd64 (0.6.1-2) ...
Progress: [ 64%] [#######################################################################........................................] Setting up fonts-dejavu-core (2.37-1) ...
Progress: [ 65%] [########################################################################.......................................] Setting up libsasl2-2:amd64 (2.1.27+dfsg-1+deb10u1) ...
Progress: [ 66%] [#########################################################################......................................] Setting up liblua5.2-0:amd64 (5.2.4-1.1+b2) ...
Setting up libx11-6:amd64 (2:1.6.7-1) ...
Progress: [ 67%] [##########################################################################.....................................] Setting up libssh2-1:amd64 (1.8.0-2.1) ...
Progress: [ 68%] [###########################################################################....................................] Setting up libtiff5:amd64 (4.1.0+git191117-2~deb10u1) ...
Progress: [ 69%] [############################################################################...................................] Setting up apache2-data (2.4.38-3+deb10u3) ...
Progress: [ 70%] [#############################################################################..................................] Setting up libgdbm6:amd64 (1.18.1-4) ...
Setting up libaprutil1:amd64 (1.6.1-4) ...
Progress: [ 71%] [###############################################################################................................] Setting up php-common (2:69) ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer /lib/systemd/system/phpsessionclean.timer.
Progress: [ 72%] [################################################################################...............................] Setting up libxpm4:amd64 (1:3.5.12-1) ...
Progress: [ 73%] [#################################################################################..............................] Setting up fontconfig-config (2.13.1-2) ...
Setting up libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u2) ...
Progress: [ 74%] [##################################################################################.............................] Setting up libaprutil1-ldap:amd64 (1.6.1-4) ...
Progress: [ 75%] [###################################################################################............................] Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-4) ...
Progress: [ 76%] [####################################################################################...........................] Setting up 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
Progress: [ 77%] [#####################################################################################..........................] Setting up libgdbm-compat4:amd64 (1.18.1-4) ...
Setting up php7.3-mysql (7.3.14-1~deb10u1) ...
Progress: [ 78%] [######################################################################################.........................]
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
Setting up libperl5.28:amd64 (5.28.1-6) ...
Progress: [ 79%] [########################################################################################.......................] Setting up 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
Progress: [ 80%] [########################################################################################.......................] Setting up php7.3-opcache (7.3.14-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/opcache.ini with new version
Setting up libcurl4:amd64 (7.64.0-4+deb10u1) ...
Progress: [ 81%] [##########################################################################################.....................] Setting up libfontconfig1:amd64 (2.13.1-2) ...
Progress: [ 82%] [###########################################################################################....................] Setting up php7.3-ldap (7.3.14-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/ldap.ini with new version
Progress: [ 83%] [############################################################################################...................] Setting up apache2-utils (2.4.38-3+deb10u3) ...
Progress: [ 84%] [#############################################################################################..................] Setting up php7.3-bcmath (7.3.14-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/bcmath.ini with new version
Setting up php-xml (2:7.3+69) ...
Progress: [ 85%] [##############################################################################################.................] Setting up php-mysql (2:7.3+69) ...
Progress: [ 86%] [###############################################################################################................] Setting up php-bcmath (2:7.3+69) ...
Progress: [ 87%] [################################################################################################...............] Setting up php7.3-mbstring (7.3.14-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/mbstring.ini with new version
Setting up php7.3-json (7.3.14-1~deb10u1) ...
Progress: [ 88%] [##################################################################################################.............]
Creating config file /etc/php/7.3/mods-available/json.ini with new version
Setting up php7.3-readline (7.3.14-1~deb10u1) ...
Progress: [ 89%] [##################################################################################################.............]
Creating config file /etc/php/7.3/mods-available/readline.ini with new version
Setting up php-mbstring (2:7.3+69) ...
Progress: [ 90%] [####################################################################################################...........] Setting up php-ldap (2:7.3+69) ...
Progress: [ 91%] [#####################################################################################################..........] Setting up perl (5.28.1-6) ...
Setting up libgd3:amd64 (2.2.5-5.2) ...
Progress: [ 92%] [######################################################################################################.........] Setting up 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
Progress: [ 93%] [#######################################################################################################........] Setting up php7.3-gd (7.3.14-1~deb10u1) ...

Creating config file /etc/php/7.3/mods-available/gd.ini with new version
Progress: [ 94%] [########################################################################################################.......] Setting up apache2-bin (2.4.38-3+deb10u3) ...
Setting up php-gd (2:7.3+69) ...
Progress: [ 95%] [#########################################################################################################......] Setting up apache2 (2.4.38-3+deb10u3) ...
Progress: [ 96%] [##########################################################################################################.....] 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 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
Progress: [ 97%] [###########################################################################################################....] Setting up libapache2-mod-php (2:7.3+69) ...
Progress: [ 98%] [############################################################################################################...] Setting up php7.3 (7.3.14-1~deb10u1) ...
Setting up php (2:7.3+69) ...
Progress: [ 99%] [##############################################################################################################.] Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for libc-bin (2.28-10) ...

 

2. В процессе установки установщик запускает systemd для автоматического запуска службы Apache, а также включает автоматический запуск при загрузке системы. Вы можете проверить, работает ли он, используя команду systemctl:

# systemctl status apache2

 

 

Check-Apache-Status-in-Debian

 

 

Ниже приведены некоторые полезные команды systemctl для управления службами Apache в systemd:

# systemctl stop apache2
# systemctl start apache2
# systemctl restart apache2

 

 

Шаг 2: Установка сервера MariaDB и клиента баз данных

3. Для хранения данных Zabbix требуется система управления базами данных. Он поддерживает MySQL по умолчанию, но для этой статьи мы установим MariaDB в качестве замены MySQL.

# apt install mariadb-server mariadb-client

 

Пример вывода:

Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done

 

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree

 

Reading state information... 0%

Reading state information... 1%

Reading state information... Done

The following additional packages will be installed:
galera-3 gawk 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 libmpfr6 libreadline5 libsigsegv2 libsnappy1v5
libterm-readkey-perl libtimedate-perl liburi-perl lsof mariadb-client-10.3
mariadb-client-core-10.3 mariadb-common mariadb-server-10.3 mariadb-server-core-10.3
mysql-common rsync socat
Suggested packages:
gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl
libdata-dump-perl libipc-sharedcache-perl libwww-perl mailx mariadb-test netcat-openbsd
tinyca
The following NEW packages will be installed:
galera-3 gawk 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 libmpfr6 libreadline5 libsigsegv2 libsnappy1v5
libterm-readkey-perl libtimedate-perl liburi-perl lsof mariadb-client mariadb-client-10.3
mariadb-client-core-10.3 mariadb-common mariadb-server mariadb-server-10.3
mariadb-server-core-10.3 mysql-common rsync socat
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 22.6 MB of archives.
After this operation, 170 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

0% [Working]

Get:1 http://mirrors.digitalocean.com/debian buster/main amd64 libmpfr6 amd64 4.0.2-1 [775 kB]

0% [1 libmpfr6 14.2 kB/775 kB 2%]

3% [Working]

Get:2 http://mirrors.digitalocean.com/debian buster/main amd64 libsigsegv2 amd64 2.12-2 [32.8 kB]

3% [2 libsigsegv2 0 B/32.8 kB 0%]

4% [Working]

Get:3 http://mirrors.digitalocean.com/debian buster/main amd64 gawk amd64 1:4.2.1+dfsg-1 [660 kB]

4% [3 gawk 0 B/660 kB 0%]

7% [Working]

Get:4 http://mirrors.digitalocean.com/debian buster/main amd64 mysql-common all 5.8+1.0.5 [7,324 B]

7% [4 mysql-common 0 B/7,324 B 0%]

8% [Working]

Get:5 http://mirrors.digitalocean.com/debian buster/main amd64 mariadb-common all 1:10.3.22-0+deb10u1 [31.9 kB]

8% [5 mariadb-common 0 B/31.9 kB 0%]

8% [Working]

Get:6 http://mirrors.digitalocean.com/debian buster/main amd64 galera-3 amd64 25.3.25-2 [920 kB]

8% [6 galera-3 0 B/920 kB 0%]

12% [Working]

Get:7 http://mirrors.digitalocean.com/debian buster/main amd64 libdbi-perl amd64 1.642-1+b1 [775 kB]

12% [7 libdbi-perl 0 B/775 kB 0%]

15% [Working]

Get:8 http://mirrors.digitalocean.com/debian buster/main amd64 lsof amd64 4.91+dfsg-1 [319 kB]

15% [8 lsof 0 B/319 kB 0%]

17% [Working]

Get:9 http://mirrors.digitalocean.com/debian buster/main amd64 libconfig-inifiles-perl all 3.000001-1 [51.9 kB]

17% [9 libconfig-inifiles-perl 0 B/51.9 kB 0%]

18% [Working]

Get:10 http://mirrors.digitalocean.com/debian buster/main amd64 libreadline5 amd64 5.2+dfsg-3+b13 [120 kB]

18% [10 libreadline5 0 B/120 kB 0%]

19% [Working]

Get:11 http://mirrors.digitalocean.com/debian buster/main amd64 libsnappy1v5 amd64 1.1.7-1 [17.0 kB]

19% [11 libsnappy1v5 0 B/17.0 kB 0%]

19% [Working]

Get:12 http://mirrors.digitalocean.com/debian buster/main amd64 mariadb-client-core-10.3 amd64 1:10.3.22-0+deb10u1 [5,728 kB]

19% [12 mariadb-client-core-10.3 0 B/5,728 kB 0%]

40% [Working]

Get:13 http://mirrors.digitalocean.com/debian buster/main amd64 mariadb-client-10.3 amd64 1:10.3.22-0+deb10u1 [1,136 kB]

40% [13 mariadb-client-10.3 0 B/1,136 kB 0%]

45% [Working]

Get:14 http://mirrors.digitalocean.com/debian buster/main amd64 mariadb-server-core-10.3 amd64 1:10.3.22-0+deb10u1 [5,941 kB]

45% [14 mariadb-server-core-10.3 0 B/5,941 kB 0%]

67% [Working]

Get:15 http://mirrors.digitalocean.com/debian buster/main amd64 rsync amd64 3.1.3-6 [397 kB]

67% [15 rsync 0 B/397 kB 0%]

68% [Working]

Get:16 http://mirrors.digitalocean.com/debian buster/main amd64 socat amd64 1.7.3.2-2 [358 kB]

68% [16 socat 0 B/358 kB 0%]

70% [Working]

Get:17 http://mirrors.digitalocean.com/debian buster/main amd64 mariadb-server-10.3 amd64 1:10.3.22-0+deb10u1 [4,202 kB]

70% [17 mariadb-server-10.3 0 B/4,202 kB 0%]

86% [Working]

Get:18 http://mirrors.digitalocean.com/debian buster/main amd64 libhtml-tagset-perl all 3.20-3 [12.7 kB]

86% [18 libhtml-tagset-perl 0 B/12.7 kB 0%]

86% [Working]

Get:19 http://mirrors.digitalocean.com/debian buster/main amd64 liburi-perl all 1.76-1 [89.9 kB]

86% [19 liburi-perl 0 B/89.9 kB 0%]

87% [Working]

Get:20 http://mirrors.digitalocean.com/debian buster/main amd64 libhtml-parser-perl amd64 3.72-3+b3 [105 kB]

87% [20 libhtml-parser-perl 0 B/105 kB 0%]

88% [Working]

Get:21 http://mirrors.digitalocean.com/debian buster/main amd64 libcgi-pm-perl all 4.40-1 [222 kB]

88% [21 libcgi-pm-perl 0 B/222 kB 0%]

90% [Working]

Get:22 http://mirrors.digitalocean.com/debian buster/main amd64 libfcgi-perl amd64 0.78-2+b3 [39.0 kB]

90% [22 libfcgi-perl 0 B/39.0 kB 0%]

90% [Working]

Get:23 http://mirrors.digitalocean.com/debian buster/main amd64 libcgi-fast-perl all 1:2.13-1 [11.4 kB]

90% [23 libcgi-fast-perl 0 B/11.4 kB 0%]

91% [Working]

Get:24 http://mirrors.digitalocean.com/debian buster/main amd64 libmariadb3 amd64 1:10.3.22-0+deb10u1 [170 kB]

91% [24 libmariadb3 0 B/170 kB 0%]

92% [Working]

Get:25 http://mirrors.digitalocean.com/debian buster/main amd64 libdbd-mysql-perl amd64 4.050-2 [121 kB]

92% [25 libdbd-mysql-perl 0 B/121 kB 0%]

93% [Working]

Get:26 http://mirrors.digitalocean.com/debian buster/main amd64 libencode-locale-perl all 1.05-1 [13.7 kB]

93% [26 libencode-locale-perl 0 B/13.7 kB 0%]

94% [Working]

Get:27 http://mirrors.digitalocean.com/debian buster/main amd64 libhtml-template-perl all 2.97-1 [66.0 kB]

94% [27 libhtml-template-perl 0 B/66.0 kB 0%]

95% [Working]

Get:28 http://mirrors.digitalocean.com/debian buster/main amd64 libtimedate-perl all 2.3000-2+deb10u1 [38.1 kB]

95% [28 libtimedate-perl 0 B/38.1 kB 0%]

95% [Working]

Get:29 http://mirrors.digitalocean.com/debian buster/main amd64 libhttp-date-perl all 6.02-1 [10.7 kB]

95% [29 libhttp-date-perl 0 B/10.7 kB 0%]

96% [Working]

Get:30 http://mirrors.digitalocean.com/debian buster/main amd64 libio-html-perl all 1.001-1 [17.6 kB]

96% [30 libio-html-perl 0 B/17.6 kB 0%]

96% [Working]

Get:31 http://mirrors.digitalocean.com/debian buster/main amd64 liblwp-mediatypes-perl all 6.02-1 [22.1 kB]

96% [31 liblwp-mediatypes-perl 0 B/22.1 kB 0%]

97% [Working]

Get:32 http://mirrors.digitalocean.com/debian buster/main amd64 libhttp-message-perl all 6.18-1 [77.8 kB]

97% [32 libhttp-message-perl 0 B/77.8 kB 0%]

98% [Working]

Get:33 http://mirrors.digitalocean.com/debian buster/main amd64 libterm-readkey-perl amd64 2.38-1 [27.4 kB]

98% [33 libterm-readkey-perl 0 B/27.4 kB 0%]

99% [Working]

Get:34 http://mirrors.digitalocean.com/debian buster/main amd64 mariadb-client all 1:10.3.22-0+deb10u1 [30.7 kB]

99% [34 mariadb-client 0 B/30.7 kB 0%]

99% [Working]

Get:35 http://mirrors.digitalocean.com/debian buster/main amd64 mariadb-server all 1:10.3.22-0+deb10u1 [30.8 kB]

99% [35 mariadb-server 0 B/30.8 kB 0%]

100% [Working]

Fetched 22.6 MB in 2s (14.4 MB/s)

Extracting templates from packages: 85%
Extracting templates from packages: 100%
Preconfiguring packages ...

Selecting previously unselected package libmpfr6:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 31576 files and directories currently installed.)
Preparing to unpack .../libmpfr6_4.0.2-1_amd64.deb ...
Progress: [ 0%] [..........................................................................] Unpacking libmpfr6:amd64 (4.0.2-1) ...
Progress: [ 1%] [#.........................................................................] Selecting previously unselected package libsigsegv2:amd64.
Preparing to unpack .../libsigsegv2_2.12-2_amd64.deb ...
Progress: [ 2%] [#.........................................................................] Unpacking libsigsegv2:amd64 (2.12-2) ...
Setting up libmpfr6:amd64 (4.0.2-1) ...
Progress: [ 4%] [##........................................................................] Progress: [ 4%] [###.......................................................................] Setting up libsigsegv2:amd64 (2.12-2) ...
Progress: [ 6%] [####......................................................................] Selecting previously unselected package gawk.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 31596 files and directories currently installed.)
Preparing to unpack .../00-gawk_1%3a4.2.1+dfsg-1_amd64.deb ...
Progress: [ 6%] [####......................................................................] Unpacking gawk (1:4.2.1+dfsg-1) ...
Progress: [ 7%] [#####.....................................................................] 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) ...
Progress: [ 9%] [######....................................................................] Selecting previously unselected package mariadb-common.
Preparing to unpack .../02-mariadb-common_1%3a10.3.22-0+deb10u1_all.deb ...
Progress: [ 9%] [######....................................................................] 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_amd64.deb ...
Progress: [ 11%] [#######...................................................................] Unpacking galera-3 (25.3.25-2) ...
Progress: [ 11%] [########..................................................................] Selecting previously unselected package libdbi-perl:amd64.
Preparing to unpack .../04-libdbi-perl_1.642-1+b1_amd64.deb ...
Progress: [ 12%] [########..................................................................] Unpacking libdbi-perl:amd64 (1.642-1+b1) ...
Selecting previously unselected package lsof.
Preparing to unpack .../05-lsof_4.91+dfsg-1_amd64.deb ...
Progress: [ 13%] [#########.................................................................] Unpacking lsof (4.91+dfsg-1) ...
Progress: [ 14%] [##########................................................................] Selecting previously unselected package libconfig-inifiles-perl.
Preparing to unpack .../06-libconfig-inifiles-perl_3.000001-1_all.deb ...
Unpacking libconfig-inifiles-perl (3.000001-1) ...
Progress: [ 16%] [###########...............................................................] Selecting previously unselected package libreadline5:amd64.
Preparing to unpack .../07-libreadline5_5.2+dfsg-3+b13_amd64.deb ...
Progress: [ 16%] [############..............................................................] Unpacking libreadline5:amd64 (5.2+dfsg-3+b13) ...
Progress: [ 17%] [############..............................................................] Selecting previously unselected package libsnappy1v5:amd64.
Preparing to unpack .../08-libsnappy1v5_1.1.7-1_amd64.deb ...
Unpacking libsnappy1v5:amd64 (1.1.7-1) ...
Progress: [ 18%] [#############.............................................................] Selecting previously unselected package mariadb-client-core-10.3.
Preparing to unpack .../09-mariadb-client-core-10.3_1%3a10.3.22-0+deb10u1_amd64.deb ...
Progress: [ 19%] [##############............................................................] Unpacking mariadb-client-core-10.3 (1:10.3.22-0+deb10u1) ...
Selecting previously unselected package mariadb-client-10.3.
Preparing to unpack .../10-mariadb-client-10.3_1%3a10.3.22-0+deb10u1_amd64.deb ...
Progress: [ 21%] [###############...........................................................] Unpacking mariadb-client-10.3 (1:10.3.22-0+deb10u1) ...
Progress: [ 21%] [###############...........................................................] Selecting previously unselected package mariadb-server-core-10.3.
Preparing to unpack .../11-mariadb-server-core-10.3_1%3a10.3.22-0+deb10u1_amd64.deb ...
Unpacking mariadb-server-core-10.3 (1:10.3.22-0+deb10u1) ...
Progress: [ 23%] [################..........................................................] Selecting previously unselected package rsync.
Preparing to unpack .../12-rsync_3.1.3-6_amd64.deb ...
Progress: [ 23%] [#################.........................................................] Unpacking rsync (3.1.3-6) ...
Progress: [ 24%] [#################.........................................................] Selecting previously unselected package socat.
Preparing to unpack .../13-socat_1.7.3.2-2_amd64.deb ...
Unpacking socat (1.7.3.2-2) ...
Progress: [ 26%] [##################........................................................] Setting up mysql-common (5.8+1.0.5) ...
Progress: [ 26%] [###################.......................................................] update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up mariadb-common (1:10.3.22-0+deb10u1) ...
Progress: [ 28%] [####################......................................................] update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Progress: [ 28%] [####################......................................................] Selecting previously unselected package mariadb-server-10.3.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 32225 files and directories currently installed.)
Preparing to unpack .../00-mariadb-server-10.3_1%3a10.3.22-0+deb10u1_amd64.deb ...
Progress: [ 29%] [#####################.....................................................] 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 ...
Progress: [ 30%] [######################....................................................] Unpacking libhtml-tagset-perl (3.20-3) ...
Progress: [ 31%] [#######################...................................................] Selecting previously unselected package liburi-perl.
Preparing to unpack .../02-liburi-perl_1.76-1_all.deb ...
Unpacking liburi-perl (1.76-1) ...
Progress: [ 33%] [########################..................................................] Selecting previously unselected package libhtml-parser-perl.
Preparing to unpack .../03-libhtml-parser-perl_3.72-3+b3_amd64.deb ...
Progress: [ 33%] [########################..................................................] Unpacking libhtml-parser-perl (3.72-3+b3) ...
Progress: [ 34%] [#########################.................................................] 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) ...
Progress: [ 35%] [##########################................................................] Selecting previously unselected package libfcgi-perl.
Preparing to unpack .../05-libfcgi-perl_0.78-2+b3_amd64.deb ...
Progress: [ 36%] [##########################................................................] Unpacking libfcgi-perl (0.78-2+b3) ...
Selecting previously unselected package libcgi-fast-perl.
Preparing to unpack .../06-libcgi-fast-perl_1%3a2.13-1_all.deb ...
Progress: [ 38%] [###########################...............................................] Unpacking libcgi-fast-perl (1:2.13-1) ...
Progress: [ 38%] [############################..............................................] Selecting previously unselected package libmariadb3:amd64.
Preparing to unpack .../07-libmariadb3_1%3a10.3.22-0+deb10u1_amd64.deb ...
Progress: [ 39%] [############################..............................................] Unpacking libmariadb3:amd64 (1:10.3.22-0+deb10u1) ...
Selecting previously unselected package libdbd-mysql-perl:amd64.
Preparing to unpack .../08-libdbd-mysql-perl_4.050-2_amd64.deb ...
Progress: [ 40%] [#############################.............................................] Unpacking libdbd-mysql-perl:amd64 (4.050-2) ...
Progress: [ 41%] [##############################............................................] 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) ...
Progress: [ 43%] [###############################...........................................] Selecting previously unselected package libhtml-template-perl.
Preparing to unpack .../10-libhtml-template-perl_2.97-1_all.deb ...
Progress: [ 43%] [################################..........................................] 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 ...
Progress: [ 45%] [#################################.........................................] Unpacking libtimedate-perl (2.3000-2+deb10u1) ...
Progress: [ 45%] [#################################.........................................] Selecting previously unselected package libhttp-date-perl.
Preparing to unpack .../12-libhttp-date-perl_6.02-1_all.deb ...
Progress: [ 46%] [##################################........................................] 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 ...
Progress: [ 48%] [###################################.......................................] Unpacking libio-html-perl (1.001-1) ...
Progress: [ 48%] [###################################.......................................] 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) ...
Progress: [ 50%] [####################################......................................] Selecting previously unselected package libhttp-message-perl.
Preparing to unpack .../15-libhttp-message-perl_6.18-1_all.deb ...
Progress: [ 50%] [#####################################.....................................] Unpacking libhttp-message-perl (6.18-1) ...
Progress: [ 51%] [#####################################.....................................] Selecting previously unselected package libterm-readkey-perl.
Preparing to unpack .../16-libterm-readkey-perl_2.38-1_amd64.deb ...
Unpacking libterm-readkey-perl (2.38-1) ...
Progress: [ 52%] [######################################....................................] Selecting previously unselected package mariadb-client.
Preparing to unpack .../17-mariadb-client_1%3a10.3.22-0+deb10u1_all.deb ...
Progress: [ 53%] [#######################################...................................] Unpacking mariadb-client (1:10.3.22-0+deb10u1) ...
Selecting previously unselected package mariadb-server.
Preparing to unpack .../18-mariadb-server_1%3a10.3.22-0+deb10u1_all.deb ...
Progress: [ 55%] [########################################..................................] Unpacking mariadb-server (1:10.3.22-0+deb10u1) ...
Progress: [ 55%] [########################################..................................] Setting up libconfig-inifiles-perl (3.000001-1) ...
Progress: [ 56%] [#########################################.................................] Setting up libreadline5:amd64 (5.2+dfsg-3+b13) ...
Progress: [ 57%] [##########################################................................] Progress: [ 58%] [###########################################...............................] Setting up gawk (1:4.2.1+dfsg-1) ...
Progress: [ 60%] [############################################..............................] Setting up libhtml-tagset-perl (3.20-3) ...
Progress: [ 60%] [############################################..............................] Setting up liblwp-mediatypes-perl (6.02-1) ...
Progress: [ 62%] [#############################################.............................] Progress: [ 62%] [##############################################............................] Setting up libencode-locale-perl (1.05-1) ...
Progress: [ 63%] [##############################################............................] Setting up libsnappy1v5:amd64 (1.1.7-1) ...
Progress: [ 65%] [###############################################...........................] Progress: [ 65%] [################################################..........................] Setting up socat (1.7.3.2-2) ...
Progress: [ 67%] [#################################################.........................] Setting up mariadb-server-core-10.3 (1:10.3.22-0+deb10u1) ...
Progress: [ 67%] [#################################################.........................] Progress: [ 68%] [##################################################........................] Setting up libio-html-perl (1.001-1) ...
Progress: [ 70%] [###################################################.......................] Setting up libmariadb3:amd64 (1:10.3.22-0+deb10u1) ...
Progress: [ 70%] [###################################################.......................] Setting up lsof (4.91+dfsg-1) ...
Progress: [ 72%] [#####################################################.....................] Progress: [ 72%] [#####################################################.....................] Setting up galera-3 (25.3.25-2) ...
Progress: [ 73%] [######################################################....................] Setting up libtimedate-perl (2.3000-2+deb10u1) ...
Progress: [ 74%] [#######################################################...................] Progress: [ 75%] [#######################################################...................] Setting up mariadb-client-core-10.3 (1:10.3.22-0+deb10u1) ...
Progress: [ 77%] [########################################################..................] Setting up libfcgi-perl (0.78-2+b3) ...
Progress: [ 77%] [#########################################################.................] Progress: [ 78%] [#########################################################.................] Setting up libterm-readkey-perl (2.38-1) ...
Progress: [ 79%] [##########################################################................] Setting up liburi-perl (1.76-1) ...
Progress: [ 80%] [###########################################################...............] Setting up libdbi-perl:amd64 (1.642-1+b1) ...
Progress: [ 82%] [############################################################..............] Progress: [ 82%] [############################################################..............] Setting up rsync (3.1.3-6) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rsync.service /lib/systemd/system/rsync.service.
Progress: [ 84%] [#############################################################.............] Setting up libhttp-date-perl (6.02-1) ...
Progress: [ 84%] [##############################################################............] Progress: [ 85%] [##############################################################............] Setting up mariadb-client-10.3 (1:10.3.22-0+deb10u1) ...
Progress: [ 87%] [################################################################..........] Setting up libdbd-mysql-perl:amd64 (4.050-2) ...
Progress: [ 87%] [################################################################..........] Setting up libhtml-parser-perl (3.72-3+b3) ...
Progress: [ 89%] [#################################################################.........] Progress: [ 89%] [##################################################################........] Setting up mariadb-server-10.3 (1:10.3.22-0+deb10u1) ...
Progress: [ 90%] [##################################################################........] 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.
Setting up libhttp-message-perl (6.18-1) ...
Progress: [ 91%] [###################################################################.......] Progress: [ 92%] [####################################################################......] Setting up mariadb-client (1:10.3.22-0+deb10u1) ...
Progress: [ 94%] [#####################################################################.....] Setting up libcgi-pm-perl (4.40-1) ...
Progress: [ 94%] [#####################################################################.....] Progress: [ 95%] [######################################################################....] Setting up libhtml-template-perl (2.97-1) ...
Progress: [ 96%] [#######################################################################...] Setting up mariadb-server (1:10.3.22-0+deb10u1) ...
Progress: [ 97%] [#######################################################################...] Setting up libcgi-fast-perl (1:2.13-1) ...
Progress: [ 99%] [########################################################################..] Progress: [ 99%] [#########################################################################.] Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for libc-bin (2.28-10) ...

 

 

4. После завершения установки служба MariaDB запускается автоматически и будет доступна для автоматического запуска при загрузке системы. Чтобы проверить её работоспособность, используйте следующую команду:

# systemctl status mariadb

 

 

Checkk MariaDB Status in Debian

 

 

5. Далее вам необходимо защитить сервер MariaDB. Установленный пакет поставляется со скриптом, который необходимо запустить и следовать рекомендациям безопасности:

# mysql_secure_installation

 

 

Вас попросят определить действия по удалению анонимных пользователей, удаленному отключению root-входа, удалению тестовой базы данных и доступа к ней, а также применению всех изменений:

 

 

Secure-MariaDB-in-Debian-10

 

Пример вывода:

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!

 

By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] Y y
... Success!

Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
... Success!

Cleaning up...

All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

 

 

 

6. Как только сервер базы данных защищен, вам нужно создать базу данных для Zabbix. Сначала войдите в базу данных, чтобы получить доступ к оболочке MariaDB. Выполнить это можно следующим образом:

# mysql -u root -p

 

 

7. Затем выполните следующие команды SQL для создания необходимой базы данных (не забудьте установить безопасный пароль):

MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all privileges on zabbix.* to [email protected] identified by '[email protected]';
MariaDB [(none)]> quit;

 

 

Шаг 3: Установка и настройка Zabbix сервера

8. Чтобы установить Zabbix, вам необходимо включить официальный репозиторий Zabbix, содержащий пакеты Zabbix. Выполнить это можно следующим образом:

# wget https://repo.zabbix.com/zabbix/5.0/debian/pool/main/z/zabbix-release/zabbix-release_5.0-1+buster_all.deb
# dpkg -i zabbix-release_5.0-1+buster_all.deb
# apt update 

 

 

Пример вывода:

--2020-07-02 15:11:08-- https://repo.zabbix.com/zabbix/5.0/debian/pool/main/z/zabbix-release/zabbix-release_5.0-1+buster_all.deb
Resolving repo.zabbix.com (repo.zabbix.com)... 162.243.159.138, 2604:a880:1:20::b82:1001
Connecting to repo.zabbix.com (repo.zabbix.com)|162.243.159.138|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4236 (4.1K) [application/octet-stream]
Saving to: zabbix-release_5.0-1+buster_all.deb

 

zabbix-rele 0%[ ] 0 --.-KB/s
zabbix-release_5.0-1+bu 100%[===============================>] 4.14K --.-KB/s in 0s

2020-07-02 15:11:08 (135 MB/s) - zabbix-release_5.0-1+buster_all.deb saved [4236/4236]

[email protected]:~# dpkg -i zabbix-release_5.0-1+buster_all.deb
Selecting previously unselected package zabbix-release.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 32676 files and directories currently installed.)
Preparing to unpack zabbix-release_5.0-1+buster_all.deb ...
Unpacking zabbix-release (1:5.0-1+buster) ...
Setting up zabbix-release (1:5.0-1+buster) ...
[email protected]:~# apt update

0% [Working]

Hit:1 http://security.debian.org buster/updates InRelease

0% [Connecting to mirrors.digitalocean.com] [Connecting to repo.zabbix.com (162.243.159.138)]

Hit:2 http://mirrors.digitalocean.com/debian buster InRelease

0% [Connecting to repo.zabbix.com (162.243.159.138)]

Hit:3 http://mirrors.digitalocean.com/debian buster-updates InRelease

0% [Connecting to repo.zabbix.com (162.243.159.138)]

Hit:4 http://mirrors.digitalocean.com/debian buster-backports InRelease

0% [Connecting to repo.zabbix.com (162.243.159.138)]
0% [Connecting to repo.zabbix.com (162.243.159.138)]

0% [Waiting for headers]

Get:5 http://repo.zabbix.com/zabbix/5.0/debian buster InRelease [7,096 B]

0% [5 InRelease 7,096 B/7,096 B 100%]

0% [Working]
0% [Working]
0% [Working]
62% [Working]

Get:6 http://repo.zabbix.com/zabbix/5.0/debian buster/main Sources [1,216 B]

69% [6 Sources 1,216 B/1,216 B 100%]

69% [Working]
69% [6 Sources store 0 B] [Waiting for headers]

70% [Waiting for headers]

Get:7 http://repo.zabbix.com/zabbix/5.0/debian buster/main amd64 Packages [4,789 B]

99% [7 Packages 4,789 B/4,789 B 100%]

99% [Working]
99% [7 Packages store 0 B]

100% [Working]

Fetched 13.1 kB in 1s (14.6 kB/s)

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 55%

Reading package lists... 55%

Reading package lists... 87%

Reading package lists... 92%

Reading package lists... 92%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 94%

Reading package lists... 94%

Reading package lists... 94%

Reading package lists... 94%

Reading package lists... 94%

Reading package lists... 94%

Reading package lists... 97%

Reading package lists... 97%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... Done

 

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree

 

Reading state information... 0%

Reading state information... 0%

Reading state information... Done

All packages are up to date.

 

 

9. Теперь установите Zabbix-сервер, веб-интерфейс, пакеты агентов, используя следующую команду:

# apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent 

 

Пример вывода:

Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done

 

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree

 

Reading state information... 0%

Reading state information... 0%

Reading state information... Done

The following additional packages will be installed:
fping libevent-2.1-6 libltdl7 libodbc1 libopenipmi0 libpci3 libsensors-config libsensors5
libsnmp-base libsnmp30 snmpd ttf-dejavu-core
Suggested packages:
libmyodbc odbc-postgresql tdsodbc unixodbc-bin lm-sensors snmp-mibs-downloader snmptrapd
zabbix-nginx-conf
The following NEW packages will be installed:
fping libevent-2.1-6 libltdl7 libodbc1 libopenipmi0 libpci3 libsensors-config libsensors5
libsnmp-base libsnmp30 snmpd ttf-dejavu-core zabbix-agent zabbix-apache-conf
zabbix-frontend-php zabbix-server-mysql
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.6 MB of archives.
After this operation, 37.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

0% [Working]

Get:1 http://mirrors.digitalocean.com/debian buster/main amd64 libevent-2.1-6 amd64 2.1.8-stable-4 [177 kB]

0% [1 libevent-2.1-6 0 B/177 kB 0%] [Connecting to repo.zabbix.com (162.243.159.138)]

2% [Connecting to repo.zabbix.com (162.243.159.138)]

Get:2 http://mirrors.digitalocean.com/debian buster/main amd64 libltdl7 amd64 2.4.6-9 [390 kB]

2% [2 libltdl7 0 B/390 kB 0%] [Connecting to repo.zabbix.com (162.243.159.138)]

6% [Connecting to repo.zabbix.com (162.243.159.138)]

Get:3 http://mirrors.digitalocean.com/debian buster/main amd64 libodbc1 amd64 2.3.6-0.1 [223 kB]

6% [3 libodbc1 0 B/223 kB 0%] [Waiting for headers]

9% [Waiting for headers]

Get:4 http://mirrors.digitalocean.com/debian buster/main amd64 libopenipmi0 amd64 2.0.25-2.1 [540 kB]

9% [4 libopenipmi0 0 B/540 kB 0%] [Waiting for headers]

14% [Waiting for headers]

Get:5 http://mirrors.digitalocean.com/debian buster/main amd64 libpci3 amd64 1:3.5.2-1 [56.5 kB]

14% [5 libpci3 0 B/56.5 kB 0%] [Waiting for headers]

16% [Waiting for headers]

Get:6 http://repo.zabbix.com/zabbix/5.0/debian buster/main amd64 zabbix-server-mysql amd64 1:5.0.1-1+buster [2,635 kB]

16% [Waiting for headers] [6 zabbix-server-mysql 14.2 kB/2,635 kB 1%]

Get:7 http://mirrors.digitalocean.com/debian buster/main amd64 libsensors-config all 1:3.5.0-3 [31.6 kB]

16% [7 libsensors-config 0 B/31.6 kB 0%] [6 zabbix-server-mysql 14.2 kB/2,635 kB 1%]

17% [6 zabbix-server-mysql 14.2 kB/2,635 kB 1%]

Get:8 http://mirrors.digitalocean.com/debian buster/main amd64 libsensors5 amd64 1:3.5.0-3 [52.6 kB]

17% [8 libsensors5 0 B/52.6 kB 0%] [6 zabbix-server-mysql 14.2 kB/2,635 kB 1%]

19% [6 zabbix-server-mysql 14.2 kB/2,635 kB 1%]

Get:9 http://mirrors.digitalocean.com/debian buster/main amd64 libsnmp-base all 5.7.3+dfsg-5 [1,595 kB]

19% [9 libsnmp-base 0 B/1,595 kB 0%] [6 zabbix-server-mysql 14.2 kB/2,635 kB 1%]

31% [6 zabbix-server-mysql 14.2 kB/2,635 kB 1%]

Get:10 http://mirrors.digitalocean.com/debian buster/main amd64 libsnmp30 amd64 5.7.3+dfsg-5 [2,324 kB]

31% [10 libsnmp30 0 B/2,324 kB 0%] [6 zabbix-server-mysql 43.2 kB/2,635 kB 2%]

49% [6 zabbix-server-mysql 43.2 kB/2,635 kB 2%]

Get:11 http://mirrors.digitalocean.com/debian buster/main amd64 fping amd64 4.2-1 [37.7 kB]

49% [11 fping 0 B/37.7 kB 0%] [6 zabbix-server-mysql 43.2 kB/2,635 kB 2%]

50% [6 zabbix-server-mysql 43.2 kB/2,635 kB 2%]

Get:12 http://mirrors.digitalocean.com/debian buster/main amd64 snmpd amd64 5.7.3+dfsg-5 [56.2 kB]

50% [12 snmpd 0 B/56.2 kB 0%] [6 zabbix-server-mysql 43.2 kB/2,635 kB 2%]

52% [6 zabbix-server-mysql 43.2 kB/2,635 kB 2%]

Get:13 http://mirrors.digitalocean.com/debian buster/main amd64 ttf-dejavu-core all 2.37-1 [32.1 kB]

52% [13 ttf-dejavu-core 0 B/32.1 kB 0%] [6 zabbix-server-mysql 43.2 kB/2,635 kB 2%]

53% [6 zabbix-server-mysql 43.2 kB/2,635 kB 2%]
59% [6 zabbix-server-mysql 912 kB/2,635 kB 35%]

73% [Waiting for headers]

Get:14 http://repo.zabbix.com/zabbix/5.0/debian buster/main amd64 zabbix-agent amd64 1:5.0.1-1+buster [487 kB]

73% [14 zabbix-agent 51.2 kB/487 kB 11%]

77% [Waiting for headers]

Get:15 http://repo.zabbix.com/zabbix/5.0/debian buster/main amd64 zabbix-frontend-php all 1:5.0.1-1+buster [2,649 kB]

77% [15 zabbix-frontend-php 2,643 B/2,649 kB 0%]

97% [Working]

Get:16 http://repo.zabbix.com/zabbix/5.0/debian buster/main amd64 zabbix-apache-conf all 1:5.0.1-1+buster [300 kB]

97% [16 zabbix-apache-conf 1,197 B/300 kB 0%]

100% [Working]

Fetched 11.6 MB in 2s (5,963 kB/s)
Preconfiguring packages ...

Selecting previously unselected package libevent-2.1-6:amd64.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 32682 files and directories currently installed.)
Preparing to unpack .../00-libevent-2.1-6_2.1.8-stable-4_amd64.deb ...
Progress: [ 0%] [..........................................................................] Progress: [ 2%] [#.........................................................................] Unpacking libevent-2.1-6:amd64 (2.1.8-stable-4) ...
Progress: [ 3%] [##........................................................................] Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../01-libltdl7_2.4.6-9_amd64.deb ...
Progress: [ 5%] [###.......................................................................] Unpacking libltdl7:amd64 (2.4.6-9) ...
Progress: [ 6%] [####......................................................................] Selecting previously unselected package libodbc1:amd64.
Preparing to unpack .../02-libodbc1_2.3.6-0.1_amd64.deb ...
Progress: [ 8%] [#####.....................................................................] Unpacking libodbc1:amd64 (2.3.6-0.1) ...
Progress: [ 9%] [######....................................................................] Selecting previously unselected package libopenipmi0.
Preparing to unpack .../03-libopenipmi0_2.0.25-2.1_amd64.deb ...
Progress: [ 11%] [#######...................................................................] Unpacking libopenipmi0 (2.0.25-2.1) ...
Progress: [ 12%] [#########.................................................................] Selecting previously unselected package libpci3:amd64.
Preparing to unpack .../04-libpci3_1%3a3.5.2-1_amd64.deb ...
Progress: [ 14%] [##########................................................................] Unpacking libpci3:amd64 (1:3.5.2-1) ...
Progress: [ 15%] [###########...............................................................] Selecting previously unselected package libsensors-config.
Preparing to unpack .../05-libsensors-config_1%3a3.5.0-3_all.deb ...
Progress: [ 17%] [############..............................................................] Unpacking libsensors-config (1:3.5.0-3) ...
Progress: [ 18%] [#############.............................................................] Selecting previously unselected package libsensors5:amd64.
Preparing to unpack .../06-libsensors5_1%3a3.5.0-3_amd64.deb ...
Progress: [ 20%] [##############............................................................] Unpacking libsensors5:amd64 (1:3.5.0-3) ...
Progress: [ 22%] [###############...........................................................] Selecting previously unselected package libsnmp-base.
Preparing to unpack .../07-libsnmp-base_5.7.3+dfsg-5_all.deb ...
Progress: [ 23%] [#################.........................................................] Unpacking libsnmp-base (5.7.3+dfsg-5) ...
Progress: [ 25%] [##################........................................................] Selecting previously unselected package libsnmp30:amd64.
Preparing to unpack .../08-libsnmp30_5.7.3+dfsg-5_amd64.deb ...
Progress: [ 26%] [###################.......................................................] Unpacking libsnmp30:amd64 (5.7.3+dfsg-5) ...
Progress: [ 28%] [####################......................................................] Selecting previously unselected package fping.
Preparing to unpack .../09-fping_4.2-1_amd64.deb ...
Progress: [ 29%] [#####################.....................................................] Unpacking fping (4.2-1) ...
Progress: [ 31%] [######################....................................................] Selecting previously unselected package zabbix-server-mysql.
Preparing to unpack .../10-zabbix-server-mysql_1%3a5.0.1-1+buster_amd64.deb ...
Progress: [ 32%] [#######################...................................................] Unpacking zabbix-server-mysql (1:5.0.1-1+buster) ...
Progress: [ 34%] [#########################.................................................] Selecting previously unselected package snmpd.
Preparing to unpack .../11-snmpd_5.7.3+dfsg-5_amd64.deb ...
Progress: [ 35%] [##########################................................................] Unpacking snmpd (5.7.3+dfsg-5) ...
Progress: [ 37%] [###########################...............................................] Selecting previously unselected package ttf-dejavu-core.
Preparing to unpack .../12-ttf-dejavu-core_2.37-1_all.deb ...
Progress: [ 38%] [############################..............................................] Unpacking ttf-dejavu-core (2.37-1) ...
Progress: [ 40%] [#############################.............................................] Selecting previously unselected package zabbix-agent.
Preparing to unpack .../13-zabbix-agent_1%3a5.0.1-1+buster_amd64.deb ...
Progress: [ 42%] [##############################............................................] Unpacking zabbix-agent (1:5.0.1-1+buster) ...
Progress: [ 43%] [###############################...........................................] Selecting previously unselected package zabbix-frontend-php.
Preparing to unpack .../14-zabbix-frontend-php_1%3a5.0.1-1+buster_all.deb ...
Progress: [ 45%] [#################################.........................................] Unpacking zabbix-frontend-php (1:5.0.1-1+buster) ...
Progress: [ 46%] [##################################........................................] Selecting previously unselected package zabbix-apache-conf.
Preparing to unpack .../15-zabbix-apache-conf_1%3a5.0.1-1+buster_all.deb ...
Progress: [ 48%] [###################################.......................................] Unpacking zabbix-apache-conf (1:5.0.1-1+buster) ...
Progress: [ 49%] [####################################......................................] Setting up libsnmp-base (5.7.3+dfsg-5) ...
Progress: [ 51%] [#####################################.....................................] Progress: [ 52%] [######################################....................................] Setting up libsensors-config (1:3.5.0-3) ...
Progress: [ 54%] [#######################################...................................] Progress: [ 55%] [########################################..................................] Setting up libsensors5:amd64 (1:3.5.0-3) ...
Progress: [ 57%] [##########################################................................] Progress: [ 58%] [###########################################...............................] Setting up libltdl7:amd64 (2.4.6-9) ...
Progress: [ 60%] [############################################..............................] Progress: [ 62%] [#############################################.............................] Setting up libevent-2.1-6:amd64 (2.1.8-stable-4) ...
Progress: [ 63%] [##############################################............................] Progress: [ 65%] [###############################################...........................] Setting up libpci3:amd64 (1:3.5.2-1) ...
Progress: [ 66%] [################################################..........................] Progress: [ 68%] [##################################################........................] Setting up zabbix-agent (1:5.0.1-1+buster) ...
Progress: [ 69%] [###################################################.......................] Progress: [ 71%] [####################################################......................] Setting up libopenipmi0 (2.0.25-2.1) ...
Progress: [ 72%] [#####################################################.....................] Progress: [ 74%] [######################################################....................] Setting up fping (4.2-1) ...
Progress: [ 75%] [#######################################################...................] Progress: [ 77%] [########################################################..................] Setting up ttf-dejavu-core (2.37-1) ...
Progress: [ 78%] [##########################################################................] Progress: [ 80%] [###########################################################...............] Setting up libsnmp30:amd64 (5.7.3+dfsg-5) ...
Progress: [ 82%] [############################################################..............] Progress: [ 83%] [#############################################################.............] Setting up libodbc1:amd64 (2.3.6-0.1) ...
Progress: [ 85%] [##############################################################............] Progress: [ 86%] [###############################################################...........] Setting up zabbix-frontend-php (1:5.0.1-1+buster) ...
Progress: [ 88%] [################################################################..........] update-alternatives: using /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf to provide /usr/share/zabbix/assets/fonts/graphfont.ttf (zabbix-frontend-font) in auto mode
Progress: [ 89%] [##################################################################........] Setting up zabbix-apache-conf (1:5.0.1-1+buster) ...
Progress: [ 91%] [###################################################################.......] Enabling conf zabbix.
To activate the new configuration, you need to run:
systemctl reload apache2
Progress: [ 92%] [####################################################################......] Setting up zabbix-server-mysql (1:5.0.1-1+buster) ...
Progress: [ 94%] [#####################################################################.....] Progress: [ 95%] [######################################################################....] Setting up snmpd (5.7.3+dfsg-5) ...
Progress: [ 97%] [#######################################################################...] adduser: Warning: The home directory `/var/lib/snmp' does not belong to the user you are currently creating.
Created symlink /etc/systemd/system/multi-user.target.wants/snmpd.service /lib/systemd/system/snmpd.service.
Progress: [ 98%] [########################################################################..] Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for libc-bin (2.28-10) ...

 

 

10. После успешной установки пакета, импортируйте исходную схему и данные в базу данных Zabbix, которую вы создали на предыдущем шаге:

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix 

 

 

11. Теперь настройте демон Zabbix-сервера на использование созданной для него базы данных, отредактировав файл /etc/zabbix/zabbix_server.conf:

# vim /etc/zabbix/zabbix_server.conf

 

 

Найдите следующие параметры конфигурации и обновите их значения в соответствии с настройками базы данных. Обратите внимание, что вам нужно раскомментировать любые закомментированные опции и установить их правильные значения:

DBHost=localhost
DBName=zabbix
DBUser=zabbix
[email protected]

 

 

 

 

Затем сохраните новые изменения в файле и выйдите из него.

 

 

12. Вам также следует настроить PHP для правильной работы с веб-интерфейсом Zabbix, указав часовой пояс в файле /etc/zabbix/apache.conf:

# vim /etc/zabbix/apache.conf

 

 

Найдите раздел конфигурации для вашей версии PHP, например, PHP 7.x. Затем раскомментируйте следующую строку (удалив символ «#» в начале), чтобы включить часовой пояс для вашего сервера, как показано на скриншоте ниже:

php_value date.timezone Europe/Kiev

 

 

 

 

Сохраните изменения и закройте файл.

 

 

13. Теперь перезапустите сервер Apache, чтобы применить последние изменения:

# systemctl restart apache2

 

 

14. Теперь вы можете запускать процессы Zabbix сервера и агента из своей оболочки, позволяя им автоматически запускаться при загрузке системы:

# systemctl start zabbix-server zabbix-agent
# systemctl enable zabbix-server zabbix-agent

 

 

 

 

15. Обязательно проверьте состояние Zabbix сервера, используя следующую команду:

# systemctl status zabbix-server

 

 

 

 

16. Также убедитесь, что процесс агента zabbix запущен и работает должным образом, проверив его состояние, как показано ниже. Помните, что запущенный вами агент работает и отслеживает локальный хост. Если вы хотите отслеживать удаленные серверы, установите и настройте на них соответствующих агентов:

# systemctl status zabbix-agent

 

 

 

 

17. Прежде чем вы получите доступ к веб-интерфейсу Zabbix, как показано в следующем разделе, вам необходимо проверить запущена ли у вас служба брандмауэра UFW. Если она запущена, то вам нужно открыть порт 80 (HTTP) и 443 (HTTPS), чтобы разрешить трафик на сервер Apache:

# ufw allow 22/tcp
# ufw allow 80/tcp
# ufw allow 443/tcp
# ufw reload

 

 

Шаг 4. Установка и настройка веб-интерфейса Zabbix

18. Прежде чем вы сможете начать использовать веб-интерфейс Zabbix для мониторинга, вам необходимо настроить его с помощью веб-установщика. Чтобы получить доступ к установщику, откройте веб-браузер и укажите его следующий URL:

http://SERVER_FQDM/zabbix

 

 

Или же:

http://SERVER_IP/zabbix

 

 

19. Как только вы нажмете кнопку Enter, вы попадете на страницу приветствия, как на следующем скриншоте. Нажмите «Next step«, чтобы начать процесс установки:

 

 

20. Затем установщик проверит предварительные условия для установки, как показано на скриншоте, если все необходимые модули PHP и параметры конфигурации в порядке (прокрутите вниз, чтобы просмотреть дополнительные требования), нажмите кнопку «Далее», чтобы продолжить:

 

 

21. Теперь введите параметры подключения базы данных к веб-интерфейсу Zabbix для связи с этой базой данных. Выберите тип базы данных (который должен быть «MySQL«), укажите хост базы данных, порт базы данных, имя базы данных, пользователя базы данных и пароль пользователя, как показано на скриншоте:

 

 

22. Затем введите данные Zabbix-сервера (имя хоста или IP-адрес хоста и номер порта хост-сервера). При желании установите имя для установки:

 

 

23. Теперь установщик должен показать вам сводную страницу перед установкой. Если все в порядке, нажмите кнопку «Next step«, чтобы завершить настройку:

 

 

24. Теперь нажмите «Finish«, и вы будете перенаправлены на страницу входа, как показано на следующем скриншоте:

 

 

25. Для входа в систему введите имя пользователя Admin и пароль zabbix:

 

 

26. После входа в систему вы увидите панель мониторинга раздела «Мониторинг». В глобальном представлении будет отображен образец системной информации, проблем по статусу их «серьезности», местное времени и т.д.:

 

 

27. В качестве важного шага необходимо изменить пароль учетной записи администратора по умолчанию. Для этого перейдите в Administration ==> Users.

В списке пользователей в разделе «Alias» нажмите «Admin», чтобы открыть сведения о пользователе. На странице сведений о пользователе найдите поле «Password» и нажмите «Change password». Затем установите безопасный пароль и подтвердите его. И нажмите «Update», чтобы сохранить пароль:

 

 

На этом всё! В этой статье вы узнали, как использовать последнюю версию программного обеспечения для мониторинга Zabbix на вашем сервере Debian 10. Вы можете найти больше информации в документации Zabbix.

 

 

Спасибо за уделенное время на прочтение статьи!

Если возникли вопросы, задавайте их в комментариях.

Подписывайтесь на обновления нашего блога и оставайтесь в курсе новостей мира инфокоммуникаций!

Чтобы знать больше и выделяться знаниями среди толпы IT-шников, записывайтесь на курсы Ciscoкурсы по кибербезопасности,  полный курс по кибербезопасностикурсы DevNet (программируемые сети) от Академии Ciscoкурсы Linux от Linux Professional Institute на платформе SEDICOMM University (Университет СЭДИКОММ).

Курсы Cisco и Linux с трудоустройством!

Спешите подать заявку! Осталось пару мест. Группы стартуют 22 июля, а следующая 19 августа, 23 сентября, 21 октября, 25 ноября, 16 декабря, 20 января, 24 февраля.
Что Вы получите?
  • Поможем стать экспертом в сетевом администрировании и получить международные сертификаты Cisco CCNA Routing & Switching или Linux LPI.
  • Предлагаем проверенную программу и учебник экспертов из Cisco Networking Academy и Linux Professional Institute, сертифицированных инструкторов и личного куратора.
  • Поможем с трудоустройством и сделать карьеру. 100% наших выпускников трудоустраиваются.
Как проходит обучение?
  • Проводим вечерние онлайн-лекции на нашей платформе или обучайтесь очно на базе Киевского офиса.
  • Спросим у вас об удобном времени для практик и подстроимся: понимаем, что времени учиться мало.
  • Если хотите индивидуальный график — обсудим и осуществим.
  • Выставим четкие дедлайны для самоорганизации. Личный куратор будет на связи, чтобы ответить на вопросы, проконсультировать и мотивировать придерживаться сроков сдачи экзаменов.
А еще поможем Вам:
  • отредактировать резюме;
  • подготовиться к техническим интервью;
  • подготовиться к конкурсу на понравившуюся вакансию;
  • устроим на работу в Cisco по программе Cisco Incubator, New Graduate и Experienced. Наши студенты, которые уже работают там: жмите на #НашиВCisco Вконтакте, #НашиВCisco Facebook.
Чтобы учиться на курсах Cisco CCNA Routing & Switching и Linux LPI, подайте заявку или получите бесплатную консультацию.
Мониторинг

Больше похожих постов

1 комментарий. Оставить новый

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Заполните поле
Заполните поле
Пожалуйста, введите корректный адрес email.
Вы должны согласиться с условиями для продолжения

Most Viewed Posts
Меню