

Make sure you replace the database name, user, and password to match your own settings. Log in to your LAMP stack database component (MySQL or MariaDB) and create a Zabbix database and the credentials required to manage the database, by issuing the following commands. The next requirement for Zabbix is setting up an RDBMS database. When the installation of Mariadb finishes, start and secure the database by issuing mysql_secure_installation command with system root privileges ( answer with yes for removing anonymous users, disable root login remotely, remove test database and access to it and apply all changes). # yum install mariadb-server mariadb-client mariadb-devel ĥ. $ sudo apt-get install mariadb-server mariadb-client libmysqld-dev Choose a strong password, repeat it and wait for the installation to finish. As MariaDB installs on your system you will be asked to set a password for the database root user during installation (Only on Debian). On the next step install the MariaDB database and MySQL development library from binary packages. Step 2: Install MariaDB Database and LibraryĤ. After updating the PHP configuration file, restart Apache daemon to reflect changes by issuing the following command. A list of PHP-supported Timezones can be found here.

Replace the date.timezone variable according to your server’s geographical location. Now, search with CTRL+C and replace the following PHP values as it follows: post_max_size = 16M So, open Apache php.ini configuration file for editing by issuing the following command: $ sudo nano /etc/php/7.X/apache2/php.ini Next, you need to tune the PHP interpreter and adjust some values in order to run Zabbix Server. # yum install httpd php php-mysqlnd php-ldap php-bcmath php-mbstring php-gd php-xmlĢ. $ sudo apt install apache2 php php-mysql php-mysqlnd php-ldap php-bcmath php-mbstring php-gd php-pdo php-xml libapache2-mod-php First, update the software packages and then install Apache Web Server alongside PHP and its extensions in order to provide the web-backed functionality for Zabbix Server by issuing the following command. Step 1: Install Apache Web Server and PHPġ. Important: The given Zabbix instructions also work on all Debian derivatives and RedHat-based distros like RHEL/ CentOS/ Fedora and Rocky Linux/ AlmaLinux.
