Home » admin


I have been working with Linux based systems since 2002. I hope the article published on this site will be useful to those new to server administration.

How To Create A RAID-1 Setup On A CentOS/RedHat 6.0 Server

  This tutorial is for turning a single disk CentOS 6 system into a two disk RAID1 system. The GRUB bootloader will be configured in such a way that the system will still be able to boot if one of the hard drives fails (no matter which one).   NOTE: Everything has to be done as root: su - enter …

Read More »

Linux Centos 6 Change Server Hostname

I am a new CentOS Linux server user. How do I change hostname on CentOS Linux? How can I change server hostname on CentOS Linux  6? You need to use the following commands to set or view current hostname, domain name and/or FQDN (Fully Qualified Domain Name): dnsdomainname command : Display the system’s DNS domain name. hostname command : Show or …

Read More »

Installing Plex Media Server on Centos 6

Plex Media Server is a user-friendly way to store all your movies, shows, and other media in one place–and make it accessible from any device, whether you’re at home or on-the-go. If you’re looking for a no-headache way to watch your movies anywhere, this is it. What Is Plex Media Server? Here’s a common situation that all too many people find themselves …

Read More »

ConfigServer Firewall : Binary location for [/usr/bin/host] in csf.conf is either incorrect, is not installed or is not executable

The following error may occur while reloading CSF (csf -r) : *WARNING* Binary location for [HOST] [/usr/bin/host] in /etc/csf/csf.conf is either incorrect, is not installed or is not executable *WARNING* Missing or incorrect binary locations will break csf and lfd functionality In this particular case, CSF was installed on a CentOS 7 server and there wasn’t any “host” executable under /usr/bin. …

Read More »

Linux / UNIX: Create Large 1GB Binary Image File With dd Command

How do I create 1 GB or 10 GB image file instantly with dd command under UNIX / Linux / BSD operating systems using a shell prompt? You can use dd command to create image files for network or file system testing. First, make sure you’ve sufficient disk space to create a image file using dd:   $ df -H …

Read More »

CentOS: yum Command Reinstall Package

How do I re-install a package using the yum command under CentOS Linux server? You can use the yum command with the reinstall option. This will reinstall the identical versioned package as currently installed. The syntax is as follows:   yum reinstall packageName yum reinstall packageName1 packageName2 In this example reinstall a package called keepalived, type: # yum reinstall keepalived Sample outputs: Loaded plugins: product-id, rhnplugin, subscription-manager Updating certificate-based …

Read More »

Nginx Redirect URL With HTTP/1.1 301 Moved Permanently Header

How do I redirect old ugly urls such as http://example.com/store/view.jsp?product=foo with clean url – http://example.com/store/view/product/foo using nginx reverse proxy? You need to use HttpRewriteModule under nginx web server. This module makes it possible to change URI using regular expressions (PCRE), and to redirect and select configuration depending on variables. The syntax is as follows to chage URI in accordance with …

Read More »