Error lfd will not run with TESTING enabled in /etc/csf/csf.conf, at line 83 Date: 24-08-2021 Step 1: Log in to the server via SSH as root. Step 2: Edit csf firewall configuration file /etc/csf/csf.conf by using vi editor. You need to change the line TESTING = “1” to TESTING =… Continue Reading Error lfd will not run with TESTING enabled in /etc/csf/csf.conf, at line 83

How to enable mod_rewrite for Apache in CentOS Date: 10-07-2021 CentOS 7 and later versions have mod_rewrite installed and enabled by default. Open terminal and run the below command to check if mod_rewrite is already enabled in your system.# httpd -M | grep rewriteIf you see the output like below,… Continue Reading How to enable mod_rewrite for Apache in CentOS

In this script you will get information like AZ, instance ID, IP, keyname, etc… Please find the script below. Create a file with name getawsinstance.sh. Copy and paste the below content.nano getawsinstances.sh !/bin/bash echo “Grabbing instances in all regions, please wait..”for region in aws ec2 describe-regions –output text | cut… Continue Reading Bash Script to get the information related to instances of all regions in AWS.

How to Install Remote Desktop (Xrdp) on Ubuntu 18.04 Date: 04-06-2021 Step 1: Login to your ubuntu server via ssh. Step 2: Install XRDP Packages by using below commands.# sudo apt-get update# apt-get install xrdp Step 3: Allow RDP port 3389 in your server firewall if firewall enabled. Step 4:… Continue Reading How to Install Remote Desktop (Xrdp) on Ubuntu 18.04

How to make File Undeletable even by root user in Linux Date: 30-01-2021 You can set attribute of a file by using below command.# chattr +i directory/fileUse the below command to view attributes of a file.# lsattr directory/file You can remove the attribute of a file.# chattr -i directory/file

How to solve the Website internal server error from the following apache error log”Invalid command ‘Header’ perhaps misspelled or defined by a module not included in the server configuration” Date: 16-12-2020 Step 1: You are getting above error due to header module is not enabled in Apache on Ubuntu. You… Continue Reading How to solve the Website internal server error from the following apache error log”Invalid command ‘Header’ perhaps misspelled or defined by a module not included in the server configuration”

How to solve boot partition full issue in CentOS Date: 12-12-2020 Introduction: Once you updated the kernel versions on the server the old and current kernel files will store in the boot partition only. So you will get the boot partition full issue. You directly don’t remove the files from… Continue Reading How to solve boot partition full issue in CentOS

How to block ips via .htaccess file ? DATE – 09-05-2020 You can quickly block IP addresses from accessing your sites or specific folders using a .htaccess file. Note that the ‘.’ in front of htaccess makes this a hidden file. Please make sure your have the  ‘View Hidden Files’… Continue Reading How to block ips via .htaccess file ?