Linux tutorials, system administration, web hosting, programming

Installing Debian 9 (Stretch) LAMP Server v1.0

botond published 2019. 06. 21., P - 14: 10 time
In this tutorial, we build a simple LAMP (Linux, Apache, MySQL / MariaDB, PHP) server based on Debian 9 (Stretch), which can be used to run web pages or even be a great tool for web developers. This page will install the MariaDB database management system and the Apache web server.

Read, write, copy files metadata with ExifTool

botond published 2019. 06. 15, Sat - 16: 38 time
The exiftool command allows you to read or write metadata from various file formats from a command line, which can be particularly useful when you need to process a large amount of files automatically. In this tutorial we will look at some common usage examples and try a complete automation shell script that will copy the IPTC data of JPG files into EPS files.

Enhance SSH protection with additional Fail2Ban filter patterns on Debian 8 (Jessie)

botond published 2019. 05. 09., Cs - 23: 39 time
Our Debian 8 (Jesssie) based server may slip log entries that are not recognized by the Fail2Ban filters on version 0.8.13, even when using Fail2Ban, so our system is less protected against the attacks that cause these entries. In this tutorial, we will work on blocking attempts at random usernames accessing our SSH server using a new filter pattern from Fail2Ban.

How to move files from our databases to another partition or hard drive

botond published 2019. 04. 30., K - 17: 36 time
When operating web pages, the size of the databases may reach our free space on the partition, or we may just migrate our databases to a SSD drive for performance optimization purposes only. Whatever your reason for doing this, this tutorial will tell you how to migrate database binary data files to another partition or another drive.

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.