If you run many services on our server, comprehensive and systematic scanning of our log files becomes difficult. A useful solution is the logrotate command, which automatically rotates log files generated by different programs, compresses older ones, deletes older ones than specified, and provides the ability to send email notifications. With the program, you no longer have to worry about logging in after a few days or weeks of absence, as they are waiting in an orderly state to look through them. In this tutorial you will learn about the common use of Logrotate.
Linux tutorials, system administration, web hosting, programming
Debian 2019. March 20 moved all Debian 7 (Wheezy) libraries and Debian 8 (Jessie) non-LTS libraries to archive.debian.org. Archiving for Debian 8 (Jesssie) affects the jessie-updates and jessie-backports libraries, so they are no longer available in the Debian main repository but only in the archive, and they no longer have security updates. In this tutorial we will look at how to configure the APT package manager repositories to keep your Debian 8 (Jessie) system running smoothly.
Mod_php, the default way to run PHP, is outdated and has more modern and secure solutions. In this tutorial, we will install and configure the PHP-FPM (PHP FastCGI Process Manager) server API on an existing Debian 8 (Jessie) + Apache-based LAMP server. On this page, after installing PHP-FPM, we make the PHP process manager live with a simple global configuration.
Programming often requires the use of arrays to store multiple values at once, which can then be processed automatically in cycles. The same is not the case with Shell scripts. In this four-page tutorial we look at several examples of how to use array variables in different situations in our Shell scripts. This page describes how to create indexed arrays, load and read data into arrays, and learn how to use indexed arrays in cycles.
In this tutorial, you will learn about KeePass, which provides a high level of security for our passwords and other access information on Windows, Linux, and Android systems. After installing the program on a Linux computer and an Android mobile device, we will review the key features of the password management system: We will create a new database and create basic structures by creating groups and entries.
Debian's 9 (Stretch) distribution includes the 7.0 version of PHP by default. The major versions of PHP are not fully compatible with each other, so it is often the case that web pages running on the server require a newer or older version of PHP. In this tutorial, we will install the latest version of PHP's 5.6 branch, 5.6.40 as a PHP version of a perfect server based on Debian 9 (Stretch), which can then be run in FastCGI and PHP-FPM modes. This will allow it to be used for web pages with the default PHP version of the distribution. On this page, we prepare the requirements for translating the PHP 5.6 source code, then translate and install PHP.
Unfortunately, the more common compression programs work on only one thread, so they can't take advantage of today's modern multi-core processors. In this tutorial, you will learn about the pigz program, which runs the compression process on multiple threads to take advantage of all processor cores.