Linux tutorials, system administration, web hosting, programming

Rotate and compress log files with Logrotate

botond published Jan. 2019, 04, 17:23 p.m. time
If we run many services on our server, comprehensive and regular scanning of our log files becomes difficult. A useful solution is the logrotate command, which automatically rotates log files generated by various programs, compresses older ones and deletes older ones than the specified time, as well as the ability to send email notifications. With the use of the program, we no longer have to worry about the log files being buried after a few days or weeks of absence, because they are waiting in an orderly state for us to review them. In this description we will get acquainted with the general use of the Logrotate program.

What to do if the Debian 8 (Jessie) APT package manager throws 404 (not found) errors when upgrading

botond published 2019/03/29, p - 13:17 time
On March 2019, 20, Debian moved the entire Debian 7 (Wheezy) repositories and the non-LTS repositories of Debian 8 (Jessie) to archive.debian.org. For Debian 8 (Jesssie), archiving affects the jessie-updates and jessie-backports repositories, so they are no longer available in the Debian main repository, but only in the archive, and no security updates are available for them. In this tutorial we will look at how to configure the APT package manager repositories so that we can continue to upgrade our Debian 8 (Jessie) system smoothly.

How to install PHP-FPM on a Debian 8 (Jessie) LAMP server

botond published 2019/03/24, v - 12:50 time
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.

Manage and use arrays in Shell scripts

botond published 2019. 03. 11., h - 17:08 time
During programming, it is often necessary to use arrays, which can be used to store several values ​​at once, which can then be processed automatically in cycles. This is no different for Shell scripts. In this four-page description, we’ll look at several examples of how we can use array variables in different situations in our Shell scripts. On this page, we’ll learn how to create indexed arrays, load and read data into arrays, and see how to use indexed arrays in loops.

How to securely store and keep your passwords in sync on your computers and mobile devices with KeePass Password Manager

botond published 2019/02/23, Sat - 16:42 time
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.

How to install PHP 5.6.40 as an optional version on Debian 9 (Stretch) perfect server

botond published 2019/02/19, k - 01:08 time
The Debian 9 (Stretch) distribution includes PHP version 7.0 by default. The main 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 even older version of PHP. In this description, we install the current latest version of PHP 5.6, 5.6.40, as an optional PHP version for a Debian 9 (Stretch) -based perfect server, which can then be run in FastCGI and PHP-FPM modes. This will allow it to be used for websites in addition to the default version of PHP in the distribution. On this page, we prepare the requirements for compiling the source code for PHP 5.6, and then compile and install PHP.

How to compress files much faster with pigz

botond published March 2019, 02, Thu - 14:08 time
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 description, we will learn about the pigz program, which can be used to run the compression process on multiple threads, thereby taking advantage of all the processor cores.

How to enable external access to user web directories in Apache2

botond published 2019/02/12, k - 21:30 time
User web directories allow us to provide temporary access to our customers to access their websites until the domain name they have purchased is directed to them. During this time, we can also make the websites available so that the development work can go smoothly before the website is opened.