Hi Friends,
I have been trying to install Zabbix server (full installation) on Ubuntu 22.04 desktop edition. The Ubuntu has been fully updated and i have been following the procedure provided at the official download page of Zabbix. When I install the zabbix with all components using MySQL database server and Apache web server, the system completes the installation without any error. Installation log is shown below;
When I issue the command to start mysql using command given in the procedure at the official download page, following error occurs.
I have tried to reinstall all packages and zabbix-mysql-server separately as well, but same error occurs every time. I have searched the socket file mentioned at given path, but could not be found. I have tried to search the my.cnf file that may contain the socket file path, the default conf file doesn't contain the path information for said socket file. And I can't any other my.cnf file where MySQL server config may have been saved for Zabbix MySQL Server. Can't proceed to next step until this process is successfully completed. Please help me to troubleshoot this problem.
Regards
I have been trying to install Zabbix server (full installation) on Ubuntu 22.04 desktop edition. The Ubuntu has been fully updated and i have been following the procedure provided at the official download page of Zabbix. When I install the zabbix with all components using MySQL database server and Apache web server, the system completes the installation without any error. Installation log is shown below;
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libapr1:amd64.
(Reading database ... 195648 files and directories currently installed.)
Preparing to unpack .../00-libapr1_1.7.0-8build1_amd64.deb ...
Unpacking libapr1:amd64 (1.7.0-8build1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../01-libaprutil1_1.6.1-5ubuntu4_amd64.deb ...
Unpacking libaprutil1:amd64 (1.6.1-5ubuntu4) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.6.1-5ubuntu4_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-5ubuntu4) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../03-libaprutil1-ldap_1.6.1-5ubuntu4_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.6.1-5ubuntu4) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../04-apache2-bin_2.4.52-1ubuntu4.1_amd64.deb ...
Unpacking apache2-bin (2.4.52-1ubuntu4.1) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../05-apache2-data_2.4.52-1ubuntu4.1_all.deb ...
Unpacking apache2-data (2.4.52-1ubuntu4.1) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../06-apache2-utils_2.4.52-1ubuntu4.1_amd64.deb ...
Unpacking apache2-utils (2.4.52-1ubuntu4.1) ...
Selecting previously unselected package apache2.
Preparing to unpack .../07-apache2_2.4.52-1ubuntu4.1_amd64.deb ...
Unpacking apache2 (2.4.52-1ubuntu4.1) ...
Selecting previously unselected package snmpd.
Preparing to unpack .../08-snmpd_5.9.1+dfsg-1ubuntu2.2_amd64.deb ...
Unpacking snmpd (5.9.1+dfsg-1ubuntu2.2) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../09-mysql-common_5.8+1.0.8_all.deb ...
Unpacking mysql-common (5.8+1.0.8) ...
Selecting previously unselected package libmysqlclient21:amd64.
Preparing to unpack .../10-libmysqlclient21_8.0.31-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libmysqlclient21:amd64 (8.0.31-0ubuntu0.22.04.1) ...
Selecting previously unselected package libodbc2:amd64.
Preparing to unpack .../11-libodbc2_2.3.9-5_amd64.deb ...
Unpacking libodbc2:amd64 (2.3.9-5) ...
Selecting previously unselected package libopenipmi0.
Preparing to unpack .../12-libopenipmi0_2.0.29-0.1ubuntu6_amd64.deb ...
Unpacking libopenipmi0 (2.0.29-0.1ubuntu6) ...
Selecting previously unselected package mysql-client-core-8.0.
Preparing to unpack .../13-mysql-client-core-8.0_8.0.31-0ubuntu0.22.04.1_amd64.deb ...
Unpacking mysql-client-core-8.0 (8.0.31-0ubuntu0.22.04.1) ...
Selecting previously unselected package mysql-client-8.0.
Preparing to unpack .../14-mysql-client-8.0_8.0.31-0ubuntu0.22.04.1_amd64.deb ...
Unpacking mysql-client-8.0 (8.0.31-0ubuntu0.22.04.1) ...
Selecting previously unselected package mysql-client.
Preparing to unpack .../15-mysql-client_8.0.31-0ubuntu0.22.04.1_all.deb ...
Unpacking mysql-client (8.0.31-0ubuntu0.22.04.1) ...
Selecting previously unselected package fping.
Preparing to unpack .../16-fping_5.1-1_amd64.deb ...
Unpacking fping (5.1-1) ...
Selecting previously unselected package zabbix-server-mysql.
Preparing to unpack .../17-zabbix-server-mysql_1%3a6.0.10-1+ubuntu22.04_amd64.deb ...
Unpacking zabbix-server-mysql (1:6.0.10-1+ubuntu22.04) ...
Selecting previously unselected package fonts-dejavu-extra.
Preparing to unpack .../18-fonts-dejavu-extra_2.37-2build1_all.deb ...
Unpacking fonts-dejavu-extra (2.37-2build1) ...
Selecting previously unselected package fonts-dejavu.
Preparing to unpack .../19-fonts-dejavu_2.37-2build1_all.deb ...
Unpacking fonts-dejavu (2.37-2build1) ...
Selecting previously unselected package php-common.
Preparing to unpack .../20-php-common_2%3a92ubuntu1_all.deb ...
Unpacking php-common (2:92ubuntu1) ...
Selecting previously unselected package php8.1-common.
Preparing to unpack .../21-php8.1-common_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-common (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php8.1-opcache.
Preparing to unpack .../22-php8.1-opcache_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-opcache (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php8.1-readline.
Preparing to unpack .../23-php8.1-readline_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-readline (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php8.1-cli.
Preparing to unpack .../24-php8.1-cli_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-cli (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package libapache2-mod-php8.1.
Preparing to unpack .../25-libapache2-mod-php8.1_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking libapache2-mod-php8.1 (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package libonig5:amd64.
Preparing to unpack .../26-libonig5_6.9.7.1-2build1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.7.1-2build1) ...
Selecting previously unselected package php8.1.
Preparing to unpack .../27-php8.1_8.1.2-1ubuntu2.6_all.deb ...
Unpacking php8.1 (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php.
Preparing to unpack .../28-php_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-bcmath.
Preparing to unpack .../29-php8.1-bcmath_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-bcmath (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-bcmath.
Preparing to unpack .../30-php-bcmath_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-bcmath (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-gd.
Preparing to unpack .../31-php8.1-gd_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-gd (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-gd.
Preparing to unpack .../32-php-gd_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-gd (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-ldap.
Preparing to unpack .../33-php8.1-ldap_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-ldap (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-ldap.
Preparing to unpack .../34-php-ldap_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-ldap (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-mbstring.
Preparing to unpack .../35-php8.1-mbstring_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-mbstring (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-mbstring.
Preparing to unpack .../36-php-mbstring_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-mbstring (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-mysql.
Preparing to unpack .../37-php8.1-mysql_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-mysql (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-mysql.
Preparing to unpack .../38-php-mysql_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-mysql (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-xml.
Preparing to unpack .../39-php8.1-xml_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-xml (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-xml.
Preparing to unpack .../40-php-xml_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-xml (2:8.1+92ubuntu1) ...
Selecting previously unselected package libmodbus5:amd64.
Preparing to unpack .../41-libmodbus5_3.1.6-2_amd64.deb ...
Unpacking libmodbus5:amd64 (3.1.6-2) ...
Selecting previously unselected package zabbix-agent.
Preparing to unpack .../42-zabbix-agent_1%3a6.0.10-1+ubuntu22.04_amd64.deb ...
Unpacking zabbix-agent (1:6.0.10-1+ubuntu22.04) ...
Selecting previously unselected package zabbix-frontend-php.
Preparing to unpack .../43-zabbix-frontend-php_1%3a6.0.10-1+ubuntu22.04_all.deb ...
Unpacking zabbix-frontend-php (1:6.0.10-1+ubuntu22.04) ...
Selecting previously unselected package zabbix-apache-conf.
Preparing to unpack .../44-zabbix-apache-conf_1%3a6.0.10-1+ubuntu22.04_all.deb ...
Unpacking zabbix-apache-conf (1:6.0.10-1+ubuntu22.04) ...
Selecting previously unselected package zabbix-sql-scripts.
Preparing to unpack .../45-zabbix-sql-scripts_1%3a6.0.10-1+ubuntu22.04_all.deb ...
Unpacking zabbix-sql-scripts (1:6.0.10-1+ubuntu22.04) ...
Setting up php-common (2:92ubuntu1) ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.
Setting up mysql-common (5.8+1.0.8) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up mysql-client-core-8.0 (8.0.31-0ubuntu0.22.04.1) ...
Setting up libmysqlclient21:amd64 (8.0.31-0ubuntu0.22.04.1) ...
Setting up libmodbus5:amd64 (3.1.6-2) ...
Setting up zabbix-sql-scripts (1:6.0.10-1+ubuntu22.04) ...
Setting up php8.1-common (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/calendar.ini with new version
Creating config file /etc/php/8.1/mods-available/ctype.ini with new version
Creating config file /etc/php/8.1/mods-available/exif.ini with new version
Creating config file /etc/php/8.1/mods-available/fileinfo.ini with new version
Creating config file /etc/php/8.1/mods-available/ffi.ini with new version
Creating config file /etc/php/8.1/mods-available/ftp.ini with new version
Creating config file /etc/php/8.1/mods-available/gettext.ini with new version
Creating config file /etc/php/8.1/mods-available/iconv.ini with new version
Creating config file /etc/php/8.1/mods-available/pdo.ini with new version
Creating config file /etc/php/8.1/mods-available/phar.ini with new version
Creating config file /etc/php/8.1/mods-available/posix.ini with new version
Creating config file /etc/php/8.1/mods-available/shmop.ini with new version
Creating config file /etc/php/8.1/mods-available/sockets.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvmsg.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvsem.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvshm.ini with new version
Creating config file /etc/php/8.1/mods-available/tokenizer.ini with new version
Setting up php8.1-gd (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/gd.ini with new version
Setting up libapr1:amd64 (1.7.0-8build1) ...
Setting up snmpd (5.9.1+dfsg-1ubuntu2.2) ...
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.
Setting up php8.1-xml (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/dom.ini with new version
Creating config file /etc/php/8.1/mods-available/simplexml.ini with new version
Creating config file /etc/php/8.1/mods-available/xml.ini with new version
Creating config file /etc/php/8.1/mods-available/xmlreader.ini with new version
Creating config file /etc/php/8.1/mods-available/xmlwriter.ini with new version
Creating config file /etc/php/8.1/mods-available/xsl.ini with new version
Setting up php8.1-mysql (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/mysqlnd.ini with new version
Creating config file /etc/php/8.1/mods-available/mysqli.ini with new version
Creating config file /etc/php/8.1/mods-available/pdo_mysql.ini with new version
Setting up libodbc2:amd64 (2.3.9-5) ...
Setting up fonts-dejavu-extra (2.37-2build1) ...
Setting up mysql-client-8.0 (8.0.31-0ubuntu0.22.04.1) ...
Setting up php-gd (2:8.1+92ubuntu1) ...
Setting up php8.1-readline (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/readline.ini with new version
Setting up apache2-data (2.4.52-1ubuntu4.1) ...
Setting up zabbix-agent (1:6.0.10-1+ubuntu22.04) ...
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent.service → /lib/systemd/system/zabbix-agent.service.
Setting up libopenipmi0 (2.0.29-0.1ubuntu6) ...
Setting up fping (5.1-1) ...
Setting up php8.1-opcache (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/opcache.ini with new version
Setting up libonig5:amd64 (6.9.7.1-2build1) ...
Setting up php8.1-ldap (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/ldap.ini with new version
Setting up libaprutil1:amd64 (1.6.1-5ubuntu4) ...
Setting up php-xml (2:8.1+92ubuntu1) ...
Setting up fonts-dejavu (2.37-2build1) ...
Setting up mysql-client (8.0.31-0ubuntu0.22.04.1) ...
Setting up php-mysql (2:8.1+92ubuntu1) ...
Setting up zabbix-server-mysql (1:6.0.10-1+ubuntu22.04) ...
Setting up php8.1-bcmath (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/bcmath.ini with new version
Setting up php-bcmath (2:8.1+92ubuntu1) ...
Setting up php8.1-mbstring (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/mbstring.ini with new version
Setting up libaprutil1-ldap:amd64 (1.6.1-5ubuntu4) ...
Setting up php-mbstring (2:8.1+92ubuntu1) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-5ubuntu4) ...
Setting up php-ldap (2:8.1+92ubuntu1) ...
Setting up php8.1-cli (8.1.2-1ubuntu2.6) ...
update-alternatives: using /usr/bin/php8.1 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar8.1 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar8.1 to provide /usr/bin/phar.phar (phar.phar) in auto mode
Creating config file /etc/php/8.1/cli/php.ini with new version
Setting up apache2-utils (2.4.52-1ubuntu4.1) ...
Setting up apache2-bin (2.4.52-1ubuntu4.1) ...
Setting up libapache2-mod-php8.1 (8.1.2-1ubuntu2.6) ...
Package apache2 is not configured yet. Will defer actions by package libapache2-mod-php8.1.
Creating config file /etc/php/8.1/apache2/php.ini with new version
No module matches
Setting up apache2 (2.4.52-1ubuntu4.1) ...
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.
info: Switch to mpm prefork for package libapache2-mod-php8.1
Module mpm_event disabled.
Enabling module mpm_prefork.
info: Executing deferred 'a2enmod php8.1' for package libapache2-mod-php8.1
Enabling module php8.1.
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 php8.1 (8.1.2-1ubuntu2.6) ...
Setting up zabbix-frontend-php (1:6.0.10-1+ubuntu22.04) ...
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
Setting up zabbix-apache-conf (1:6.0.10-1+ubuntu22.04) ...
Enabling conf zabbix.
To activate the new configuration, you need to run:
systemctl reload apache2
Setting up php (2:8.1+92ubuntu1) ...
Processing triggers for ufw (0.36.1-4build1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for fontconfig (2.13.1-4.2ubuntu5) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for php8.1-cli (8.1.2-1ubuntu2.6) ...
Processing triggers for libapache2-mod-php8.1 (8.1.2-1ubuntu2.6) ...
Preconfiguring packages ...
Selecting previously unselected package libapr1:amd64.
(Reading database ... 195648 files and directories currently installed.)
Preparing to unpack .../00-libapr1_1.7.0-8build1_amd64.deb ...
Unpacking libapr1:amd64 (1.7.0-8build1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../01-libaprutil1_1.6.1-5ubuntu4_amd64.deb ...
Unpacking libaprutil1:amd64 (1.6.1-5ubuntu4) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.6.1-5ubuntu4_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-5ubuntu4) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../03-libaprutil1-ldap_1.6.1-5ubuntu4_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.6.1-5ubuntu4) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../04-apache2-bin_2.4.52-1ubuntu4.1_amd64.deb ...
Unpacking apache2-bin (2.4.52-1ubuntu4.1) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../05-apache2-data_2.4.52-1ubuntu4.1_all.deb ...
Unpacking apache2-data (2.4.52-1ubuntu4.1) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../06-apache2-utils_2.4.52-1ubuntu4.1_amd64.deb ...
Unpacking apache2-utils (2.4.52-1ubuntu4.1) ...
Selecting previously unselected package apache2.
Preparing to unpack .../07-apache2_2.4.52-1ubuntu4.1_amd64.deb ...
Unpacking apache2 (2.4.52-1ubuntu4.1) ...
Selecting previously unselected package snmpd.
Preparing to unpack .../08-snmpd_5.9.1+dfsg-1ubuntu2.2_amd64.deb ...
Unpacking snmpd (5.9.1+dfsg-1ubuntu2.2) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../09-mysql-common_5.8+1.0.8_all.deb ...
Unpacking mysql-common (5.8+1.0.8) ...
Selecting previously unselected package libmysqlclient21:amd64.
Preparing to unpack .../10-libmysqlclient21_8.0.31-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libmysqlclient21:amd64 (8.0.31-0ubuntu0.22.04.1) ...
Selecting previously unselected package libodbc2:amd64.
Preparing to unpack .../11-libodbc2_2.3.9-5_amd64.deb ...
Unpacking libodbc2:amd64 (2.3.9-5) ...
Selecting previously unselected package libopenipmi0.
Preparing to unpack .../12-libopenipmi0_2.0.29-0.1ubuntu6_amd64.deb ...
Unpacking libopenipmi0 (2.0.29-0.1ubuntu6) ...
Selecting previously unselected package mysql-client-core-8.0.
Preparing to unpack .../13-mysql-client-core-8.0_8.0.31-0ubuntu0.22.04.1_amd64.deb ...
Unpacking mysql-client-core-8.0 (8.0.31-0ubuntu0.22.04.1) ...
Selecting previously unselected package mysql-client-8.0.
Preparing to unpack .../14-mysql-client-8.0_8.0.31-0ubuntu0.22.04.1_amd64.deb ...
Unpacking mysql-client-8.0 (8.0.31-0ubuntu0.22.04.1) ...
Selecting previously unselected package mysql-client.
Preparing to unpack .../15-mysql-client_8.0.31-0ubuntu0.22.04.1_all.deb ...
Unpacking mysql-client (8.0.31-0ubuntu0.22.04.1) ...
Selecting previously unselected package fping.
Preparing to unpack .../16-fping_5.1-1_amd64.deb ...
Unpacking fping (5.1-1) ...
Selecting previously unselected package zabbix-server-mysql.
Preparing to unpack .../17-zabbix-server-mysql_1%3a6.0.10-1+ubuntu22.04_amd64.deb ...
Unpacking zabbix-server-mysql (1:6.0.10-1+ubuntu22.04) ...
Selecting previously unselected package fonts-dejavu-extra.
Preparing to unpack .../18-fonts-dejavu-extra_2.37-2build1_all.deb ...
Unpacking fonts-dejavu-extra (2.37-2build1) ...
Selecting previously unselected package fonts-dejavu.
Preparing to unpack .../19-fonts-dejavu_2.37-2build1_all.deb ...
Unpacking fonts-dejavu (2.37-2build1) ...
Selecting previously unselected package php-common.
Preparing to unpack .../20-php-common_2%3a92ubuntu1_all.deb ...
Unpacking php-common (2:92ubuntu1) ...
Selecting previously unselected package php8.1-common.
Preparing to unpack .../21-php8.1-common_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-common (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php8.1-opcache.
Preparing to unpack .../22-php8.1-opcache_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-opcache (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php8.1-readline.
Preparing to unpack .../23-php8.1-readline_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-readline (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php8.1-cli.
Preparing to unpack .../24-php8.1-cli_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-cli (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package libapache2-mod-php8.1.
Preparing to unpack .../25-libapache2-mod-php8.1_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking libapache2-mod-php8.1 (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package libonig5:amd64.
Preparing to unpack .../26-libonig5_6.9.7.1-2build1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.7.1-2build1) ...
Selecting previously unselected package php8.1.
Preparing to unpack .../27-php8.1_8.1.2-1ubuntu2.6_all.deb ...
Unpacking php8.1 (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php.
Preparing to unpack .../28-php_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-bcmath.
Preparing to unpack .../29-php8.1-bcmath_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-bcmath (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-bcmath.
Preparing to unpack .../30-php-bcmath_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-bcmath (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-gd.
Preparing to unpack .../31-php8.1-gd_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-gd (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-gd.
Preparing to unpack .../32-php-gd_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-gd (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-ldap.
Preparing to unpack .../33-php8.1-ldap_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-ldap (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-ldap.
Preparing to unpack .../34-php-ldap_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-ldap (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-mbstring.
Preparing to unpack .../35-php8.1-mbstring_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-mbstring (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-mbstring.
Preparing to unpack .../36-php-mbstring_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-mbstring (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-mysql.
Preparing to unpack .../37-php8.1-mysql_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-mysql (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-mysql.
Preparing to unpack .../38-php-mysql_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-mysql (2:8.1+92ubuntu1) ...
Selecting previously unselected package php8.1-xml.
Preparing to unpack .../39-php8.1-xml_8.1.2-1ubuntu2.6_amd64.deb ...
Unpacking php8.1-xml (8.1.2-1ubuntu2.6) ...
Selecting previously unselected package php-xml.
Preparing to unpack .../40-php-xml_2%3a8.1+92ubuntu1_all.deb ...
Unpacking php-xml (2:8.1+92ubuntu1) ...
Selecting previously unselected package libmodbus5:amd64.
Preparing to unpack .../41-libmodbus5_3.1.6-2_amd64.deb ...
Unpacking libmodbus5:amd64 (3.1.6-2) ...
Selecting previously unselected package zabbix-agent.
Preparing to unpack .../42-zabbix-agent_1%3a6.0.10-1+ubuntu22.04_amd64.deb ...
Unpacking zabbix-agent (1:6.0.10-1+ubuntu22.04) ...
Selecting previously unselected package zabbix-frontend-php.
Preparing to unpack .../43-zabbix-frontend-php_1%3a6.0.10-1+ubuntu22.04_all.deb ...
Unpacking zabbix-frontend-php (1:6.0.10-1+ubuntu22.04) ...
Selecting previously unselected package zabbix-apache-conf.
Preparing to unpack .../44-zabbix-apache-conf_1%3a6.0.10-1+ubuntu22.04_all.deb ...
Unpacking zabbix-apache-conf (1:6.0.10-1+ubuntu22.04) ...
Selecting previously unselected package zabbix-sql-scripts.
Preparing to unpack .../45-zabbix-sql-scripts_1%3a6.0.10-1+ubuntu22.04_all.deb ...
Unpacking zabbix-sql-scripts (1:6.0.10-1+ubuntu22.04) ...
Setting up php-common (2:92ubuntu1) ...
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.
Setting up mysql-common (5.8+1.0.8) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up mysql-client-core-8.0 (8.0.31-0ubuntu0.22.04.1) ...
Setting up libmysqlclient21:amd64 (8.0.31-0ubuntu0.22.04.1) ...
Setting up libmodbus5:amd64 (3.1.6-2) ...
Setting up zabbix-sql-scripts (1:6.0.10-1+ubuntu22.04) ...
Setting up php8.1-common (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/calendar.ini with new version
Creating config file /etc/php/8.1/mods-available/ctype.ini with new version
Creating config file /etc/php/8.1/mods-available/exif.ini with new version
Creating config file /etc/php/8.1/mods-available/fileinfo.ini with new version
Creating config file /etc/php/8.1/mods-available/ffi.ini with new version
Creating config file /etc/php/8.1/mods-available/ftp.ini with new version
Creating config file /etc/php/8.1/mods-available/gettext.ini with new version
Creating config file /etc/php/8.1/mods-available/iconv.ini with new version
Creating config file /etc/php/8.1/mods-available/pdo.ini with new version
Creating config file /etc/php/8.1/mods-available/phar.ini with new version
Creating config file /etc/php/8.1/mods-available/posix.ini with new version
Creating config file /etc/php/8.1/mods-available/shmop.ini with new version
Creating config file /etc/php/8.1/mods-available/sockets.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvmsg.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvsem.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvshm.ini with new version
Creating config file /etc/php/8.1/mods-available/tokenizer.ini with new version
Setting up php8.1-gd (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/gd.ini with new version
Setting up libapr1:amd64 (1.7.0-8build1) ...
Setting up snmpd (5.9.1+dfsg-1ubuntu2.2) ...
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.
Setting up php8.1-xml (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/dom.ini with new version
Creating config file /etc/php/8.1/mods-available/simplexml.ini with new version
Creating config file /etc/php/8.1/mods-available/xml.ini with new version
Creating config file /etc/php/8.1/mods-available/xmlreader.ini with new version
Creating config file /etc/php/8.1/mods-available/xmlwriter.ini with new version
Creating config file /etc/php/8.1/mods-available/xsl.ini with new version
Setting up php8.1-mysql (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/mysqlnd.ini with new version
Creating config file /etc/php/8.1/mods-available/mysqli.ini with new version
Creating config file /etc/php/8.1/mods-available/pdo_mysql.ini with new version
Setting up libodbc2:amd64 (2.3.9-5) ...
Setting up fonts-dejavu-extra (2.37-2build1) ...
Setting up mysql-client-8.0 (8.0.31-0ubuntu0.22.04.1) ...
Setting up php-gd (2:8.1+92ubuntu1) ...
Setting up php8.1-readline (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/readline.ini with new version
Setting up apache2-data (2.4.52-1ubuntu4.1) ...
Setting up zabbix-agent (1:6.0.10-1+ubuntu22.04) ...
Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent.service → /lib/systemd/system/zabbix-agent.service.
Setting up libopenipmi0 (2.0.29-0.1ubuntu6) ...
Setting up fping (5.1-1) ...
Setting up php8.1-opcache (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/opcache.ini with new version
Setting up libonig5:amd64 (6.9.7.1-2build1) ...
Setting up php8.1-ldap (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/ldap.ini with new version
Setting up libaprutil1:amd64 (1.6.1-5ubuntu4) ...
Setting up php-xml (2:8.1+92ubuntu1) ...
Setting up fonts-dejavu (2.37-2build1) ...
Setting up mysql-client (8.0.31-0ubuntu0.22.04.1) ...
Setting up php-mysql (2:8.1+92ubuntu1) ...
Setting up zabbix-server-mysql (1:6.0.10-1+ubuntu22.04) ...
Setting up php8.1-bcmath (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/bcmath.ini with new version
Setting up php-bcmath (2:8.1+92ubuntu1) ...
Setting up php8.1-mbstring (8.1.2-1ubuntu2.6) ...
Creating config file /etc/php/8.1/mods-available/mbstring.ini with new version
Setting up libaprutil1-ldap:amd64 (1.6.1-5ubuntu4) ...
Setting up php-mbstring (2:8.1+92ubuntu1) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-5ubuntu4) ...
Setting up php-ldap (2:8.1+92ubuntu1) ...
Setting up php8.1-cli (8.1.2-1ubuntu2.6) ...
update-alternatives: using /usr/bin/php8.1 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar8.1 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar8.1 to provide /usr/bin/phar.phar (phar.phar) in auto mode
Creating config file /etc/php/8.1/cli/php.ini with new version
Setting up apache2-utils (2.4.52-1ubuntu4.1) ...
Setting up apache2-bin (2.4.52-1ubuntu4.1) ...
Setting up libapache2-mod-php8.1 (8.1.2-1ubuntu2.6) ...
Package apache2 is not configured yet. Will defer actions by package libapache2-mod-php8.1.
Creating config file /etc/php/8.1/apache2/php.ini with new version
No module matches
Setting up apache2 (2.4.52-1ubuntu4.1) ...
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.
info: Switch to mpm prefork for package libapache2-mod-php8.1
Module mpm_event disabled.
Enabling module mpm_prefork.
info: Executing deferred 'a2enmod php8.1' for package libapache2-mod-php8.1
Enabling module php8.1.
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 php8.1 (8.1.2-1ubuntu2.6) ...
Setting up zabbix-frontend-php (1:6.0.10-1+ubuntu22.04) ...
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
Setting up zabbix-apache-conf (1:6.0.10-1+ubuntu22.04) ...
Enabling conf zabbix.
To activate the new configuration, you need to run:
systemctl reload apache2
Setting up php (2:8.1+92ubuntu1) ...
Processing triggers for ufw (0.36.1-4build1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for fontconfig (2.13.1-4.2ubuntu5) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for php8.1-cli (8.1.2-1ubuntu2.6) ...
Processing triggers for libapache2-mod-php8.1 (8.1.2-1ubuntu2.6) ...
When I issue the command to start mysql using command given in the procedure at the official download page, following error occurs.
imserver@imserver:~$ mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I have tried to reinstall all packages and zabbix-mysql-server separately as well, but same error occurs every time. I have searched the socket file mentioned at given path, but could not be found. I have tried to search the my.cnf file that may contain the socket file path, the default conf file doesn't contain the path information for said socket file. And I can't any other my.cnf file where MySQL server config may have been saved for Zabbix MySQL Server. Can't proceed to next step until this process is successfully completed. Please help me to troubleshoot this problem.
Regards
Comment