The default configuration in nginx.conf file is; error_log /path/to/logfile-folder/error.log; change the above line with the following; error_log /path/to/logfile-folder/error.log debug; Restart NGINX.
Recover LV or VG after running lvreduce, lvremove, lvresize
Before applying a change to a logical volume (LV), it automatically creates a backup of the volume group (VG) and even an archive of the logical volume on which the operation is performed. This enables the restoration of the lost logical volume from the archive. To restore the LV, first fund the LV in the …
What is Dynamic Pricing & How It Works
Car drivers are all too aware of this. At the gas station, prices change several times a day, sometimes even while you are filling up gas in your car. This is one typical example of dynamic pricing, a tool that dates back to the dawn of commerce. Dynamic prices, which can be adjusted flexibly to …
How to grow an XFS filesystem with pvcreate, vgextend, lvextend and xfs_growfs commands?
The methods below show how to extend a Volume Group (VG), a Logical Volume (LV), and a filesystem with a Physical Volume designated /dev/sda. (PV). Create a PV from a free disk or partition (e.g., a partition named /dev/sda1): # pvcreate /dev/sda1 Extend the VG name vg. /dev/sda1 is the existing PV path. # vgextend …
How to change the ownership of httpd process?
The owner and group of httpd-related processes is “apache” by default, as set in the apache configuration file (httpd.conf) shown below. User apache Group apache You can confirm the user name and group of httpd process by using the ps command as follows. $ ps -aux | grep httpd root 9773 0.0 0.0 4520 685 …
14th-generation Intel Meteor Lake CPUs have already been spotted in an early photo
Meteor Lake processors, which will be Intel’s 14th-generation chips (following Raptor Lake) and are due in 2023, have already been spotted and photographed, or at least test versions of the chips have. A close-up capture of a wafer of Meteor Lake test chips (see below), quite possibly of the M-Series, in this first sighting of …
Enable HTTP Strict Transport Security (HSTS) on Apache HTTPD
This guide explains how to enable HTTP Strict Transport Security (HSTS) on Apache HTTPD. The first step is to verify that Apache HTTPD headers module is enabled. Check the following text in /etc/httpd/conf.modules.d/00-base.conf or /etc/httpd/conf/httpd.conf. LoadModule headers_module modules/mod_headers.so Add the following text in /etc/httpd/conf.d/ssl.conf to <VirtualHost *:443> virtual host or for each SSL enabled virtual …
YUM Command Cheat Sheet
YUM command is used for installing, querying, deleting, and managing CentOS/AlmaLinux packages in local and remote repositories. Use the following YUM Cheat Sheet as a quick reference for commands and options.
How to restrict find command within current filesystem?
Use the below command to find files above 200M in / or in /opt. You can specify certain file system on the command line replacing / or /opt/ # find / -xdev -size +200M # find /opt -xdev -size +200M
How to find files with specific permissions?
You may need to find files with specific permissions in a Linux server for audit and security reasons. You can use the Linux find command to achieve this task. The following command can be used to find files with (group or other or both) writable permission and SET UID set. # find / -perm /022 …