Community Blogs

CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP) Stack

I am new Red Hat Enterprise Linux version 7 user/sysadmin/developer. This version made the big number change for RHEL 7/CentOS 7. How can I install LAMP (Linux, Apache, MariaDB, PHP) stack on a RHEL version 7 or CentOS Linux version 7 using CLI or over ssh based session?

CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP) Stack


How to set up KVM Virtualization in RHEL/CentOS 6

Hi Linux fans, I have been using KVM virtualization a lot recently for learning and as a lab set up to try out all my new stuff. I originally started writing articles for KVM in Ubuntu in my Jungle Geek blog. One of my readers wanted to try that out on a CentOS operating system. So I decided to write an article for KVM on CentOS to help him out.

If you are interested in learning about how to setup KVM virtualization on RHEL/CentOS, please visit my blog and the article link is below.



Venkat Nagappan


KVM Virtualization in Ubuntu

Hi Linux Beginners, I have been writing about KVM virtualization in my blog recently. If you are interested in learning more about KVM stuff please visit my blog Jungle Geek.

My recent articles about KVM are at

All articles in KVM category in my blog can be found at

Hope you enjoy reading my articles. Thanks for reading it.


Setup Hadoop 2.4 Single Node Cluster on CentOS/Redhat

Apache Hadoop 2.4.0 significant improvements over the previous stable releases. This version has many improvements in HDFS and MapReduce. This how to guide will help you to install Hadoop 2.4.0 on CentOS 6.5 System. This article doesn’t includes overall configuration of hadoop, we have only basicconfiguration required to start working with hadoop. 

Read complete article at Setup Hadoop 2.4 Single Node Cluster -


Open Source Cloud Banking based on ERP5 released

A version of ERP5 open source ERP dedicated to Banking and hosted on Linux based SlapOS open source cloud has been publicly released. It has been already operated for 6 years in various banks. A minimal banking core setup service costs 10 KEUR with price based on number of transactions.


Tips for Cloud Computing Security

    Shared software, shared resources are integral elements of Cloud Computing, which has become a rage today. It’s being used by companies looking for flexibility and scalability. But there are risks involved that you have to keep in mind while using public, private or hybrid cloud computing options. Security of your vital data is of great importance to you and it should be protected while you get the best benefits of cloud computing services. To make effective use of cloud computing and to ensure that data is transferred online securely, there are certain tips you must follow.

Know how your data is protected

    Data encryption and firewall security is crucial and you have to know more about these aspects when you sign up with a service provider. Public cloud SaaS solutions make secure encryption practically mandatory. Cloud computing resources should also have an inbound firewall for security reasons. You might be on a cloud but you still have to have strategies in place in case there is an external attack or hostile activity on the system. Service providers that talk about their security measures openly should be given precedence because it enables you to have your own strategies in order. 
Read more at YourOwnLinux
Author: Ramya Raju

How To Build a Cloud (cluster) Hosting Without Investing a Lot of Money

Three years ago, I had an interesting problem. It was necessary to assemble a platform to combine multiple racks of servers into a single entity for the dynamic allocation of resources between sites, written for the LAMP platform.

However, the budgets were very less so expensive solutions such as Cisco Content Switch or disk shelves with fiber optics were not affordable.

And, besides, of course, in case if one server is down – this should not affect the operation of the platform was my main concern.

In my school time, I read somewhere that “Necessity is the mother of invention”, which is fairly true.

First of all you need to share a platform into subtasks. You have to do something for the synchronization of data as a shared drive is available. In addition, it is necessary to balance the traffic and have at it some statistics. Finally, the automation of providing the necessary resources – is also quite a serious problem.

Let’s start from the beginning…

I had a choice on what to organize a platform. OpenVZ or XEN ? Each has its pluses and minuses. OpenVZ has a lower overhead, work with files and does not block devices, but cannot run anything other than Linux’ovh distributions. XEN allows you to run on Windows, but more difficult work. I’ve been using OpenVZ, as this is more suited for the task, but you can choose the one you like, there is no restriction on choice.

Then I shared the server space for the VDS, one for each core. Servers were different, and therefore I had a set from 2 to 16 and virtual ok on each server. In the “average house” turned out about 150 virtual ok on the counter.

How to synchronize the data?

The next item – this is the early establishment of VDS on demand + protection against breakage of any server. The solution was simple and beautiful.

Each VDS creates the initial image as a file on the LVM partition. This image “spreads” on all servers in the platform. As a result, we have a backup of all the projects on each server (paranoid cry of emotion), and the creation of a new VDS «on demand” has been simplified to a snapshot image and it start the VDS literally in few seconds.

Database and API

If the integrity of the files were all simple, here’s a sync base things were worse. From the beginning I tried a classic example – master-slave, and collided with a classic problem: slave lag behind master.

The next step was to Mysql-Proxy. As a sysadmin, this was very easy to set and forget, but the configuration should be updated while adding / removing new VDS. But developers have had their own opinion. In particular, the fact is that, it is easier to write a PHP class for synchronization of INSERT / UPDATE / DELETE queries than to learn Lua, without which the Mysql-Proxy is useless.

Their work produced a so-called API, which was able to find neighbors of a broadcast sync up to date and to inform the neighbors of any changes to the database.

But still worth exploring Lua and make native mode, where all requests are synchronized with their neighbors.


Balancer – it can be said that it is a key aspect of the platform. If they fall to balance server, all work will have no meaning.

That is why I used the CARP to create fault-tolerant balancer, choosing FreeBSD as the OS and Nginx as a balancer.

Yes, NLB has been replaced by two weak machines with FreeBSD (marketers in a rage).

And most importantly – how it works

When starting up the platform for each site runs on a single copy and monitor to balanesere watched to ensure that the primary copy has always worked.

In addition, the balancer was installed to analyze statistics Awstats, which provided all the logs in a convenient format, and most importantly – there was a script, polling each VDS via SNMP for its load.

As we remember, I devoted each VDS on one core, so Load Average in a 1 – this is a normal load for the VDS. If LA became 2 or above – the script that creates a copy of the VDS on a random server and put this in its upstream nginx’a. And when the load on extra VDS fell less than 1 -, respectively, all removed.


If you take the rack with servers and switches supporting the CARP protocol, to create a ESDS cloud hosting Server, will need to:

  • Explore Lua and adjust transparent synchronization across Mysql-Proxy
  • Screw the billing account for additional copies of the VDS and traffic
  • Write a web interface for managing VDS
  • The filling racks with enough amount of four zeros. Compared with the decisions of the brands, where the price of one stand is the sum of six zeros, counts worth.

An Insight On Dedicated Server Terminology

At times, technical jargon can become overcomplicated and it further complicates simple matters as well. While investigating the web hosting servers, you will often come across titles like ‘The beginner’s guide’ or ‘simple steps’ that comprises of words like hypertext, applet and many other unexplained acronyms.

As compared to the other web hosting platforms, dedicated hosting is comparatively a complicated hosting solution and it takes some time to get accustomed to it. It is important to understand the benefits of a dedicated server and know the reasons why you should opt for this hosting solution. Once you have this basic understanding, you must move forward and gain knowledge of some of the crucial words and phrases that are going to be useful for gaining an insight on the functioning of a dedicated server.

The aim of this article is not to burden the users with explanations but just to educated them on the basic terminology of dedicated servers that they must be aware of. Here is a brief explanation of the important terms:

Initially, let’s have a look at the concept – dedicated server. Basically, this is your personal server where there is no need for you to share the resources as the server is completely dedicated to you. This is a flexible hosting solution that enables you to decide on the factors like operating systems, hardware and the other resources on the server. Dedicated servers usually provide with high security and better performance as compared to the other hosting platforms. Although a dedicated server has a higher price tag, it is a complete value for money for the resource intensive websites.

DNSBL (DNS blacklist); this is something you don’t want to see. You might come across this term when your server is blacklisted. This term is used for the networks that distribute spam or any type of harmful services. Usually, it is a list of blacklisted IP addresses that you wouldn’t like to deal with for some or the other reason.

While the offerings of many web hosting companies comprise of unmanaged dedicated servers, another term that you might come across is – managed servers. As dedicated servers are more personal and private, there is no interference caused by others. This means that you can configure the server as per your preference. By selecting a managed dedicated server, you will be provided with round the clock support by the web hosting company and they will maintain the server and ensure the smooth functioning of the server.

The name server is the server that translates your IP address into a domain name that is human-readable. This is done so that the users can access and view your website through the domain name. This means that there is no need for the users to enter a series of numbers into the browser in order to get to your website.

RAID (Redundancy Array Of Independent Disks) is a phrase you might not frequently come across but it is good to know about it. RAID is the structure that creates the backing of the hard drives through a series of redundant hard disks that store your data. This data can be utilized in case your operating hard drive malfunctions due to any reason.

The method that enables you to condense the data between network protocols is known as tunneling. A common type of the tunneling method is the secure SSH. SSH enables you to tunnel a wide range of protocols in order to provide efficient and secure file transfers and connections.

With proper understanding of the important terminology mentioned above, you will be in a better position to use the dedicated server hosting solution to the best of its capacity.


How to Download and Upload Files using FTP Command Line

FTP (File Transfer Protocol) is the most popular protocol to transfer files (download and upload) from one system to other system. It provides the fastest way transfer files. There are many application available on Linux and windows to FTP services like vsftpd, proftpd for Linux, FileZilla Server for windows.

Read complete artilce at  How to Download and Upload Files using FTP Command Line -


How to Setup MariaDB Galera Cluster 5.5 in CentOS, RHEL & Fedora

MariaDB Galera Cluster is an synchronous Active-Active multi-master cluster of MariaDB databases. Which keeps all nodes synchronized. MariaDB Galera cluster provides synchronus replication which is always highly available (there is no data loss when one of the nodes crashes, and data replicas are always consistent). Currently it only supports XtraDB/InnoDB storage engines and available for Linux platform only.


Read complete article at  How to Setup MariaDB Galera Cluster 5.5 in CentOS, RHEL & Fedora



Install Oracle Java 8 on CentOS/RHEL 6/5 and Fedora

After a long wait, finally Java SE Development Kit 8 is available to download. JDK 8 has been released on Mar,18 2014 for general availability with the many featured enhancements. You can find all the enhancements in JDK 8.


This article will help you to Install JAVA 8 (JDK 8) or update on your system. Read instruction carefully for downloading java from Linux command line.

Read full article on Install Oracle Java 8 on CentOS/RHEL 6/5 and Fedora

Page 4 of 11

Upcoming Linux Foundation Courses

  1. LFS201 Essentials of System Administration
    12 Jan » 30 Mar - Online Self-Paced
  2. LFS220 Linux System Administration
    13 Apr » 16 Apr - Virtual (GUARANTEED TO RUN)
  3. LFS230 Linux Network Management
    13 Apr » 16 Apr - Virtual (GUARANTEED TO RUN)

View All Upcoming Courses

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board