syslog-ng stopped writing logs after upgrading CentOS

An interesting incident happened on the server after a global update CentOS 7.1.1503 to version 7.2.1511. Usually when you upgrade CentOS anything happened with SELinux. Somewhere something changed contexts somewhere else something. But in this case, after you upgrade CentOS, daemon logging syslog-ng stopped writing logs. Not all logs, and most of that was getting through syslog.
As it turned out, the system logging ceased publishing send copies of logs to syslog. But the fix is quite easy, to do this, run the following commands:

$ nano -w /etc/systemd/journald.conf
$ systemctl restart systemd-journald.service
$ systemctl restart syslog-ng.service

How to Install and configure LAMP-server (Linux, Apache, MariaDB/MySQL, PHP) in CentOS/RHEL 7

LAMP is an acronym denoting the set of (complex) server software, widely used in the World Wide Web. LAMP is named after the first letters of its constituent components:

  • Linux is the Linux operating system;
  • Apache is a Web server;
  • Mariadb/MySQL is a database management system;
  • PHP is a programming language used to create Web applications (other than PHP can mean other languages such as Perl and Python).


How to Install and configure VPN-server (OpenVPN) in CentOS/RHEL 7

OpenVPN is a free implementation of the technology of virtual private network (VPN) with open source software to create encrypted channels, point-to-point or server-to-client between computers. It allows you to establish connections between computers behind a NAT firewall, without having to change their settings.

SSL/TLS-certificates for lazy people

In a nutshell, the SSL/TLS certificate (SSL: Secure Sockets Layer, TLS: Transport Layer Security) is a unique digital signature for the secure connection between the client and the server.
Creating SSL certificate can be divided into the following steps:

  • create a personal key (Private Key);
  • create a query to retrieve the certificate (Certificate Signing Request);
  • creating a self-signed (Self-Signed Certificate).


How to Install and configure DNS-server (bind) in CentOS/RHEL 7

Bind (Berkeley Internet Name Daemon) is also known as the default – this is the best known and most used DNS server on the Internet. I will try to describe how to install and configure the service in the chrooted environment (chroot operation changes the root directory in Unix-like operating systems. program started with altered root directory will only have access to the files contained in this directory, so if you want to allow the program to access other directories or file systems (for example, /proc), it is necessary to mount the necessary directories in the target directory or device.).

New Ubiquiti Controllers for Synology

Information for users of repository
I offer you a new version of Ubiquiti Controllers for Synology:

  • UniFi Wireless Controller (former UniFi Controller version 3.xx, for those who use the controller only to access points).
  • UniFi Controller (new UniFi Controller version 4.xx, for those who use the controller to the access points and other equipment from the UniFi Switching & Routing equipment).
  • mFi Controller (controller form mPower and mPort devices).

The main difference of the new packages:


Configuring syslog-ng in CentOS/RHEL 7

For a number of reasons, rsyslog is installed in the default CentOS, I do not like. I love when the logs are sorted by year, month, facility, priorities. So the first thing I change rsyslog in syslog-ng. To do this, do the following: