How to Grep Multiples Lines and using Specific Keyword on Linux


grep is a command line text search utility originally written for Unix or linux. In linux you can grep multiple lines before or after matching the keywords. This examples has been tested on linux CentOS 6.2, but it may workings on other linux version such as Redhat Enterprise Linux 5 (RHEL5) or (RHEL6). Get grep […]

How to Open the File in Read Only Mode on Linux


Question : How to open a file on read only mode on linux? Answer : This command has been tested on Redhat Enterprise linux 6 (RHEL6) server. To open the file with vim in read only mode on linux, you need to run “vim -R” as below. Vim is enhanced version of vi editor that […]

How Display Logged in User Information and Terminal number on Linux Server


In this post i will show on how to display logged in user information and terminal number on Linux server. This post provides practical examples for future references. This steps has been tested on Redhat Linux Enterprise server 6 and may working CentOS server as well. 1. “who am i” command is use to display […]

How to Turn Off or Disable Output Buffering for php.ini on PHP 5.3.2

Output buffering is used by PHP to improve performance and to perform a few tricks. PHP will send buffer to browser every get_opt(‘output_buffering’) bytes. Turning on output buffering alone decreases the amount of time it takes to download and render our HTML because it’s not being sent to the browser in pieces as PHP processes […]

How to Fix “cannot restore segment prot after reloc: Permission denied” error While Restarting zmcontrol on Zimbra


Question : I want to start the Zimbra services. But i am getting the following issue while restarting zmcontrol using “zmcontrol start” command as per below error messages : [zimbra@mail ~]$ zmcontrol start Host mail.bloggerbaru.local Starting zmconfigd…Done. Starting logger…Done. Starting mailbox…Done. Starting antispam…Done. Starting antivirus…Done. Starting snmp…Done. Starting spell…Failed. Starting apache…httpd: Syntax error on line […]

How to Add Persistent Static Routes on RHEL 6/CentOS 6


This example will show you on how to configure the Persistent static route in RedHat Enterprise Linux 6 (RHEL 6) server. This configuration may different with other version of RHEL but the basic is almost the same. Persistent static route will permanently stored the setting and will not be deleted after rebooted. The following setting […]

How to Install nmap on RHEL 6 Linux Server


Nmap (“Network Mapper”) is a free and open source tool for network exploration or security auditing. It can help you to find open port on a network. Nmap very useful for system and network administrator to perform system and network administration’s task and sometimes may helps in troubleshooting to narrow down the issue. Nmap uses […]

How to Create Additional LVM on RHEL 6/CentOS 6


Most of the linux administrator facing run out of disk space to store data and sometimes there is another request for them to create additional logical volume manager(LVM) for new system or to store data. It is possible to perform this task if that system administrator has the right skill on linux. Otherwise, they will […]

How to Add a New Hard Disk Without Rebooting VM Guest on RHEL 6/CentOS 6


Assumed that you need additional hard disk for your Linux RHEL 6 server to provide more storage space but this the server cannot be reboot due to production environment. This server also assumed to be running on the VMware ESXi machine. In order to add additional hard disk without reboot, you have to perform the […]

How to Install Webtatic Repository on RHEL 6/CentOS 6


In this post, i will share on how to install Webtatic repository on Red Hat Enterprise Linux 6 (RHEL 6). However the steps may working on CentOS 6.0, CentOS 6.1 and CentOS 6.2. From the, the Webtatic yum repository is a CentOS/RHEL repository containing updated web-related packages. Webtatic goals are to provide CentOS/RHEL administrators […]