How to Set Up a Hostname via Command Line on Linux

Below are the steps for both temporary and permanent changes, suitable for various Linux distributions. 1. Temporary Hostname Change (Resets on Reboot) To temporarily change the hostname, use the hostname command. Note that this change will not persist after a…

How to run smartctl test on disk

How to Run smartctl Test to Check Disk Status on a Linux Server Follow these steps to check the status of a disk using smartctl: 1. Install smartmontools Ensure the smartmontools package is installed. This tool includes smartctl. On Debian/Ubuntu:…

Prevent contact form spamming on wordpress

To avoid spam contacts on your WordPress site, especially through contact forms, there are several effective methods you can implement: 1. Use CAPTCHA (Google reCAPTCHA) Adding CAPTCHA or reCAPTCHA to your contact forms can block automated spam submissions. 2. Honeypot…

How to Increase PHP Memory Limit via wp-config.php

How to Increase PHP Memory Limit for Your WordPress Website via wp-config.php Have you ever encountered the dreaded “fatal error: allowed memory size exhausted” message on your WordPress website? It’s a common issue, especially for sites with a lot of…

Activating Debugging Mode in WordPress

Understanding Debug Mode WordPress Debug Mode is a potent tool crafted to aid developers in identifying and rectifying errors within their WordPress websites. Once activated, Debug Mode showcases error messages, warnings, and notices, offering invaluable insights into the inner workings…

How to whitelist IP address on Linux

To whitelist an IP address in iptables, you need to add a rule to allow incoming traffic from that IP address. Here’s how you can do it: First, if you don’t have an existing rule to allow the specific traffic…

Script to restart web service

Here is the simple bash script that checks if a website is running on a Linux or Bitnami server and restarts the web service if it’s not. Here’s what the script does: Make sure to replace “http://example.com” with the actual…

How to add MX and TXT Records for Zoho Mail

Are you eager to enhance your email experience with Zoho Mail? Zoho Mail stands out with its impressive features and reliability, making it a top pick for both businesses and individuals. If you’re ready to integrate Zoho Mail with your…

Secure SSH access using hosts.allow

Securing SSH access using is a useful method to control which hosts are allowed to connect to your SSH server. Here’s how you can set it up: Open : Use a text editor like nano or vi to open…