Linux tutorials, system administration, web hosting, programming

Rotate and compress log files with Logrotate

botond published 2019. 04. 17, Wed - 23: 32 time
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.

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

botond published 2019. 03. 29., P - 13: 17 time
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.

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

How to securely store and sync your passwords on your PCs 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
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.

How to compress files much faster with pigz

botond published 2019. 02. 14., Cs - 08: 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 tutorial, you will learn about the pigz program, which runs the compression process on multiple threads to take advantage of all 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 clients to access their web pages until the domain name they purchase is directed. During this time, we may make the web pages accessible so that development work can be done smoothly before the web page is opened.