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

NGINX (Engine X) is a web server, Its getting popular very fast due to its fast speed. NGINX is also used as reverse proxy server. To use php script with nginx it required to install php-fpm. This article will help you To setup web hosting environment using Nginx, MySQL, PHP (LEMP) Stack with PHP-FPM on CentOS and RHEL 6 Server Step 1: Install Required RPM Repositories Fristly you would required to install EPEL and Remi repositories on your system. Use following commands to install repositories. # rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm # rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm If you are using another system version/architecture,…

Read More

Definition from Cacti official site: Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven. Along with being able to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering. There is also SNMP support for those used to creating traffic graphs with MRTG. Step 1: Set Up Apache, MySQL and PHP In order to install cacti you required a webserver, database and PHP to work. If you have already installed it…

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

Sudo is used for providing access to root (Super admin) commands to non-root users. For example, As an administrator, you want to provide access to restart the webserver to user nick, but he cannot make any changes to its configuration. You can provide sudo access to user nick to do it. To edit sudo configuration file use: visudo The above command will open /etc/sudoers file in an editor. This file is the main configuration file for sudo settings. In the sudoers file, you will get an entry like below. This provides privileges to root user to do anything. root ALL=(ALL)…

Read More

RPM Stands for Redhat Package Manager. RPM command is used for managing rpm software packages in your linux machine. Using rpm command we can install, upgrade, remove, list packages. 1. Installing RPM in System. Use below command to install and vsftpd RPM in system. # rpm -ivh vsftpd-2.3.5-2.el6.i686.rpm Sample output: warning: vsftpd-2.3.5-2.el6.i686.rpm: Header V3 DSA/SHA1 Signature, key ID e9bc4ae1: NOKEY Preparing… ########################################### [100%] 1:vsftpd ########################################### [100%] 2. Update the installed RPM Package. If you already installed an RPM so you can simply upgrade it with new version. # rpm -Uvh vsftpd-2.3.5-2.el6.i686.rpm 3. Check installed RPM Package. After installation of a…

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