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..

cPanel/WHM is a web-based control panel to manage complete Linux operating system. All the cPanel accounts are created using one primary domain. This article will help you to change documentroot for the primary domain of cPanel user. You must have root shell access for changing the main/primary domain document root in cPanel, Use following steps to change document root of your primary domain in cPanel account. Prerequisites You must have SSH access to root user to cPanel server. Step 1 – Update Document Root in cPanel Use SSH to get shell access for your server as root account, using your…

Read More

Introduction The LEMP stack, consisting of Linux, Nginx, MariaDB, and PHP-FPM, is a powerful combination for hosting dynamic websites and applications. CentOS/RHEL, known for its stability and security, is an ideal choice for setting up such an environment. This guide will provide detailed instructions on installing and configuring Nginx, MariaDB, and PHP-FPM, with an emphasis on a specific PHP version to meet the requirements of various applications. 1. Preliminary System Update Update your system packages: sudo dnf update sudo dnf upgrade Enable the EPEL repository: sudo dnf install epel-release 2. Installing Nginx Install Nginx: sudo dnf install nginx Start and…

Read More

Network monitoring is an essential aspect of system administration, especially for large enterprise networks. The ability to monitor network performance helps to ensure that the network is functioning optimally and proactively identify potential problems. One of the most widely used network monitoring tools is Cacti. This open-source tool provides a comprehensive and intuitive web-based interface for monitoring network performance. In this article, we will guide you through the process of installing Cacti on CentOS and RHEL-based systems. We will also explain how to configure and use Cacti to monitor network performance. Prerequisites A system running CentOS or RHEL-based distribution Root…

Read More

This is an copy of Star Wars totally created with ASCII characters. It can be easily watch using any computer supports telnet in command line and having internet connection. For Windows Users: Go to Start >> Run >> Type “cmd” and Press Enter It will open command prompt, now type below command and press enter and watch it. telnet towel.blinkenlights.nl For Linux Users: Open Terminal and type following command and watch it. telnet towel.blinkenlights.nl How to Enable Telnet in Windows 7, 8 Follow below steps to enable telnet client in windows 7.8. Goto Control Panel >> Programs >> Turn Windows…

Read More

Do you ever have a situation where you need to replace a word or sentence in many files? You could copy and paste it, or perhaps there’s an existing script that can do the job. But how about if you just need to replace it with another word or sentence somewhere else? You could use find, but that would be too generic and require writing a script for this task. And what if you don’t even know what word or sentence you must find and replace? How about using sed then? If you are not familiar with the Unix command…

Read More

phpPgAdmin is web-based client written in php for accessing and managing PostgreSQL databases. It provides very efficient way to work with databases on PostgreSQL like, create database, table, alter database, export/import database etc. This article will help you to install phpPgAdmin on CentOS and RedHat Systems. Before installing it make sure you have Apache and PostgreSQL installed on server. If you do not have them read our tutorials to how to install them. Installing PostgreSQL on CentOS, RHEL and Fedora Installing Apache MySQL PHP on CentOS and RHEL Step 1: Add PostgreSQL Repository First step is to install postgres repository…

Read More

The Red Hat Package Manager (RPM) is an essential tool for managing software on RPM-based Linux distributions such as Red Hat Enterprise Linux (RHEL), CentOS, Fedora, and SUSE. It simplifies the process of installing, upgrading, verifying, querying, and removing software packages. In this comprehensive guide, we will delve into the RPM command, exploring its capabilities through practical examples to help you master package management on your Linux system. Introduction to RPM RPM packages are digital containers for software, comprising the software itself along with metadata about the package like its version, dependencies, and a description. The RPM command facilitates interaction…

Read More

I had created this rpm few months back. Now it is available for all users. This rpm have a simple shell script for mysql database backup. Features: Takes database backup locally. Upload backups to ftp server. Send email alerts on backup completed. Installation: Download this rpm directly using command line or using given below download link and install it. [wpdm_file id=4] # wget https://tecadmin.net/wp-content/downloads/rpms/mydumpadmin-1-0.noarch.rpm # rpm -ivh mydumpadmin-1-0.noarch.rpm Preparing… ########################################### [100%] 1:mydumpadmin ########################################### [100%] Thank you for installing this RPM. Configure backup settings in /etc/mydumpadmin/settings.conf file Setup /etc/mydumpadmin/mysql-dump.sh script in your cron to take backup automatically 0 2 * *…

Read More

GPG basic file encryption doesn’t required public/private key. But to make a encrypted file more secure you can use RSA/DSA algorithms. These algorithms generates public and private keys to encrypt file. This article will help you to do following three tasks for File Encryption using GPG Key Pair in Linux. Create key pair Encrypt/Decrypt file locally for same user account. Encrypt file for other user. Decrypt other users file. Step 1: Create GPG Key Pair The very first step is to generate key pair. Use the following command to generate gpg key pair. # gpg –gen-key Output: gpg (GnuPG) 1.4.5;…

Read More

The tar command is an essential tool for Linux users, especially for those who work with a large number of files. The tar command allows you to combine multiple files into a single archive file and also to extract files from an archive. In this article, we will provide a comprehensive guide for beginners on the basics of tar command in Linux. What is tar Command? The tar command is short for “Tape ARchive”, which is a popular file archiving utility in Linux. Tar is used to create archive files by combining multiple files and directories into a single file.…

Read More