group ownership reference to file/dir from other file/dir in linux

group ownership reference to file/dir from other file/dir in linux

In this tutorial we will learn to give group ownership reference to file/dir from other file/dir in linux. Here we will take ownership and group reference from source file or directory and apply same ownership and group to target directory. Syntax: chown –reference source-file-dir target-file-dir example: chown –reference testfile sharad_testfile See the given below screenshot…

Give permission reference to file/dir from other file/dir in linux

Give permission reference to file/dir from other file/dir in linux

In this post we will learn to give permission reference to file/dir from other file/dir in linux. For example you have any file and directory and you want to give permission exactly same to other file and directory. Use the given below syntax: chmod –reference source-file-dir to target-file-dir eg. chmod –reference testfile sharad_testfile for more…

Install nagios 4.0.2 in CentOS 6 using tarball
|

Install nagios 4.0.2 in CentOS 6 using tarball

In this tutorial we will learn about how to install nagios 4.0.2 in Linux using tarball.Nagios is one of the famous and very robust Monitoring Server.The installation has been done in minimal installed CentOS 6.4.Recently Nagios team has released its much awaited 4.x version.The installation steps is applicable to other Nagios version also. Details of…

Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!
|

Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!

While installing the Nagios 4.0.2 from tarball I got this issue Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!. The problem was clearly stating about permission issue.Hence we have to only modify the permission and restart the nagios service. The problem was occurring when I was clicking on Re-schedule the next check of this…

make all command error while installing nagios

make all command error while installing nagios

Today, I was installing Nagios 4.0.2 version through tarball and while installation I got the issue that is make[1]: *** No rule to make target `../include/locations.h’, needed by `nagios.o’. Stop. The error occur after I hit the command make all . I have already installed gcc so the error was coming from some other dependency…

Setup CRAM-MD5 authentication for mailing in owncloud Ubuntu
|

Setup CRAM-MD5 authentication for mailing in owncloud Ubuntu

In this tutorial we will learn about how to setup CRAM-MD5 authentication for mailing in Owncloud version 5.0.12-0 in Ubuntu.Today I found that while sharing the link in Owncloud the recipient was not getting email. It was quite obvious I have to set the Mailer. I read the online documentation from owncloud and tried to…

Setup MySQL master slave replication in CentOS 6
|

Setup MySQL master slave replication in CentOS 6

In this tutorial we will learn about how to setup MySQL Master Slave replication in CentOS 6.4.In Master-Slave replication one database server (Master) can replicate the databases to one or more MySQL database Server(slave). The Slave server is not required to be connected always with Master Server, once slave server is up and when you…

Install latest wordpress in CentOS 6
|

Install latest wordpress in CentOS 6

In this tutorial we will learn how to install latest wordpress in CentOS 6.Installing the WordPress is quite easy but here we will create a database user which only has access to wordpress database.This practical is applied to VPS,Cloud Server,virtual server and dedicated server. Note: VPS,Cloud Server,virtual server are based on Virtualisation techninque We are…

Find mysql commands history without mysql server login
|

Find mysql commands history without mysql server login

This is a small tip to find mysql commands history without login into mysql server.When we login into MySQL server,generally we uses up and down arrow key to find the history of MySQL commands. Actually the MySQL commands history are saved in file called .mysql_history located in user’s home directory by which he/she logged into…

Reindex lucene search in owncloud 5.0.22
|

Reindex lucene search in owncloud 5.0.22

In this post we will learn about how to reindex lucene search in Owncloud 5.0.22. While working in Owncloud 5.0.22 our requirement was to reindex the lucene search. Overview: When a user placed a cursor and type some keyword ,bydefault it creates a directory lucene_index (absolute path is /path/of/owncloud_installed_dir/data/username/lucene_index ) . On writing the keyword…