[email protected]
1 855 796 6269


If you are an existing customer and in need of support, please reach us through our Ticket System available from your Client Area.



Forked from MySQL, created with love by original MySQL developers, MariaDB is one of the most popular open source database platforms to this date. MariaDB is guaranteed to stay open source. In this guide, we are going to see how to install MariaDB 10.x on CentOS 7.

Step 1: Add Repository

Add MariaDB repository using any text editor. 

$ nano /etc/yum.repos.d/MariaDB.repo

Step 2: Add Repository

Add the following content into the repo file:

name = MariaDB
baseurl =
gpgkey =

Step 3: Install MariaDB

The following command will install the MariaDB server and the client. 

$ yum -y install MariaDB-server MariaDB-client MariaDB-common

Step 4: Enable and Start MariaDB service

We are going to enable MariaDB Server to auto start during boot then start the service.

$ systemctl enable mariadb
$ systemctl start mariadb

Step 5: Securing MariaDB

MariaDB comes with a built-in script to help secure a MariaDB server. The requires several user inputs. The following command will start the securing script:

$ mysql_secure_installation

Step 5a: Set root Password

Type in y when asked to set root password and type in the new password twice.

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 authorization.

Set root password? [Y/n] y

New password:
Re-enter new password:
Password updated successfully!

Reloading privilege tables..
... Success!

Step 5b: Remove Anonymous User

Type in y to remove the built-in anonymous user.

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
... Success!

Step 5c: Prevent root Access outside localhost

Type in y to disallow root access into the database outside the server itself. 

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!

Step 5d: Remove Built-in Database

Type in y to remove the built-in database named test.

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!

Step 5e: Apply Privileges

Type in y to apply all the changes thus far. 

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!

Step 6: Test Database Access

At this point, the MariaDB server is fully configured and ready to serve. Connect to the database to ensure root credential is working. 

$ mysql -u root -p
MariaDB [(none)]>

Congratulations! Your MariaDB Server 10.x is now fully configured and secured on CentOS 7. 

Published in Databases
Wednesday, 24 October 2018 02:56

How To Install Zabbix 4.0 LTS on CentOS 7


Zabbix is an Enterprise-class network monitoring solution developed and maintained by Zabbix SIA. Zabbix is an extremely platform capable of monitoring hundreds of thousands of devices at absolutely FREE of cost. Whether you have a small network environment with a handful of servers or a large corporation with a multitude of server nodes, Zabbix is a perfect choice, adaptable to any needs. 

In this guide, we are going to see how to install Zabbix 4.0 LTS on a CentOS 7 server. 

Best Practice

Although Zabbix can be deployed inside a network environment, it is a best practice to deploy it outside the monitored environment. This way Zabbix can keep monitoring even during any local issue. This is true especially for an environment where there are no on-site monitoring team or IT staff available. Zabbix can be easily deployed using a Virtual Private Server or VPS as offered by Symmcom at an extremely competitive price. 

Step 1: Install Zabbix

Add the Zabbix Repository using the following command:

$ rpm -i

Install Zabbix server, web frontend and agent:

$ yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent

Step 2: Prepare Database

Zabbix heavily depends on storing collected data into a database. In this guide, we are going to use MariaDB to store Zabbix data. If you do not have MariaDB server configured yet, follow our guide How To Install MariaDB 10.1 on CentOS 7 to quickly configure one. 

Once you have MariaDB database server configured, we will now create a database for Zabbix and grant permission to a user. 

$ mysql -u root -p
mysql> create database zabbix_db character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix_db.* to [email protected] identified by 'password';
mysql> quit;

Zabbix installer comes with initial database schema and data in a compressed file. We are now going to populate the Zabbix database we created earlier using this file. 

$ zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix_usr -p zabbix_db

Step 3: Configure PHP for Zabbix

Uncomment the following line in /etc/httpd/conf.d/zabbix.conf and change according to your preferred TimeZone:

$ php_value date.timezone Europe/Riga

Step 4: Start Zabbix processes

Enable Zabbix processes so they auto starts during a reboot and start all the processes:

$ systemctl restart zabbix-server zabbix-agent httpd
$ systemctl enable zabbix-server zabbix-agent httpd

Step 5: Enable SSL for Web Frontend

Since SSL is not enabled by default on a cleanly installed web server, we are now going to configure and enable it so we can access the Zabbix web frontend securely. You can create a self-signed SSL certificate or use already purchased one. If you do not have SSL installed and configured, follow this guide on How To Install and Configure SSL on CentOS 7.

Step 6: Setup Zabbix Web Frontend

At this stage, we are now ready to configure Zabbix Graphical User Interface. This step can be fully completed through a web browser. 

Step 6a: Access Zabbix Web

Zabbix Web Frontend can be access from https://<ip_or_domain>/zabbix. If Zabbix installation went successfully, we will see the welcome page as following. Click Next to proceed.

Step 6b: Check Prerequisites

Check that all requirements are met. This page shows the configurations required by Zabbix and currently configured values. Click Next Step only if everything looks good. If not go back to the console and install any missing components. 

Step 6c: Connect Database

In this page, we need to enter information to access the database where Zabbix will store collected data. Zabbix can work with both locally installed database or use a database cluster where the database is stored elsewhere outside the Zabbix server. If that is the case, enter the host IP or hostname as Database Host. If using the local database then enter the user credentials we created in Step 2 otherwise use the credentials provided by the database cluster administrator. Click Next step when done. 

Step 6d: Zabbix Server Details

In this page enter the port number and name for the Zabbix server. By default, Zabbix uses port 10051 to listen. Typing in the name is optional. But anything entered here will show up in the Zabbix menu and Frontend page titles. So giving the Zabbix server a name is recommended. Click Next step.

Step 6e: Summary

This page shows all information collected thus far to finish installing the Zabbix frontend. If all looks good, click Next step

Step 6f: Finish Installation

If all went ok, this page should show the Finish button which will conclude the entire Zabbix installation process. 

Step 6g: Access Zabbix Frontend

After successful installation, Zabbix will come back to the login page automatically. If it does not, simply go to the frontend using URL https://<ip_or_hostname>/zabbix. The default username for Zabbix is Admin with capital A and password is zabbix



Published in Networking

Latest How-To