Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

DNS caching is a technique used by operating systems and applications to temporarily store DNS query results, reducing latency and improving overall internet browsing performance. However, there may be times when you need to clear the DNS cache, especially when cached records are outdated or causing connectivity issues. In this article, we will provide a step-by-step guide on how to flush the DNS cache in Windows. Windows operating systems maintain a local DNS cache to speed up the resolution of domain names to IP addresses. When you visit a website, the operating system first checks the local DNS cache for…

Read More

In the digital age, the ability to download files from the internet directly to your computer without the need for a web browser is a powerful skill. One of the most versatile tools for this task is Curl, a command-line utility that allows you to fetch a given URL. Whether you’re aiming to save a web file locally or pipe it directly into another program, curl is your go-to solution. Introduction to curl curl stands for “Client URL” and is a software project providing a library and command-line tool for transferring data using various protocols. Its simplicity and power make…

Read More

Bash scripts are simple text files that contain a collection of commands. Bash scripts can help with administrative tasks, task automation, and executing multiple commands. They are used to automate recurring tasks/actions. We can put all the commands that run on the terminal into a bash script and vice versa. Bash Scripts include imperative programming concepts like loops, conditionals, and functions. Command-Line Arguments are parameters that are specified with the filename of the bash script at the time of execution. The command-line arguments allow the script to perform dynamic actions based on the input: How to Pass an Argument to…

Read More

Virtual Host (Known as Server Blocks in Nginx) is used for hosting multiple websites on the single server. In this tutorial, you will get details about creating Virtual Host (Server Block) in Nginx web server on Ubuntu servers. Read: Set Up Virtual Hosts in Apache2 on Ubuntu Nginx Installation We are assuming that you already have Nginx installed on your system but in case you don’t have installed it already, Use the following command to install it. sudo apt update sudo apt install nginx Create a Sample Project Now create a sample project to be configured with Virtual Host. Just…

Read More

ConfigServer & Security Firewall (CSF) is getting more popularity for cPanel servers security. It prevents your server from DDOS attacks. This article will help you for installing and configuring CSF firewall on cPanel servers. Read: How to Install Iptables on CentOS/Redhat 7 Step 1 – Install CSF Firewall First download latest source code of CSF firewall and extract on your system using following commands. wget https://download.configserver.com/csf.tgz tar xfz csf.tgz cd csf After extracting latest code from your system. Execute install.sh script to install CSF on your system. The installer will automatically detect for cPanel server and install required modules for…

Read More

The “FATAL: Ident authentication failed for user “postgres”” error typically occurs when you are trying to connect to a PostgreSQL database using the “postgres” user and the authentication method is set to “ident.” This error means that the PostgreSQL server is rejecting the connection because the ident authentication method failed. To resolve this error, there are a few things you can try: Step 1: Check the authentication method Check the authentication method being used by PostgreSQL. The ident authentication method relies on the operating system user name to authenticate. If this method is not suitable for your application, you can…

Read More

We have running approximate 50 systems on our LAN. In which most of the systems are running with Linux operating system’s and few of them are running with Windows and MAC. In this setup, we will configure one of Linux system as NTP server which will be synchronized from public NTP server. Now remaining system’s on LAN will sync their time from local LAN NTP server. Step 1 – Install NTP Server NTP packages are available under default repositories. You just log in to your server as root user and execute the following command. yum install ntp ## CentOS/RHEL systems…

Read More

Memcached is a distributed memory object caching system which stored data in memory on key-value basis. It is very useful for optimizing dynamic websites and enabled speed by caching objects in memory. Read more about memcache. Read Article: Set Up phpMemcachedAdmin on Linux This article will help you to install Memcached and PHP Memcache extension on CentOS/RHEL 7/6/5 systems. Install Memcached Server First we will install Memcached server on our system. Use following command to install memcached using yum package manager. yum install memcached Now start Memcached service using following commands. For CentOS/RHEL 7 systemctl enable memcached systemctl start memcached…

Read More

Error: I have faced following issues during installation of MySQL gem on Linux systems. # gem install mysql2 -v ‘0.3.18’ Building native extensions. This could take a while… ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb checking for ruby/thread.h… yes checking for rb_thread_call_without_gvl() in ruby/thread.h… yes checking for rb_thread_blocking_region()… yes checking for rb_wait_for_single_fd()… yes checking for rb_hash_dup()… yes checking for rb_intern3()… yes checking for mysql_query() in -lmysqlclient… no checking for main() in -lm… yes checking for mysql_query() in -lmysqlclient… no checking for main() in -lz… yes checking for mysql_query() in -lmysqlclient… no checking for main()…

Read More

In the ever-evolving landscape of the web, ensuring your visitors get to the right page is crucial for maintaining SEO rankings, enhancing user experience, and managing site content effectively. One of the most efficient methods to manage your site’s navigation and preserve SEO is through the use of 301 redirects. This guide will walk you through the essentials of creating 301 redirects with Apache, the most popular HTTP server software. Understanding 301 Redirects A 301 redirect is a permanent redirect from one URL to another. It’s used to inform search engines and users that a page has moved permanently, helping…

Read More