Enhance the php version 5.4 to 7.0

The default version of PHP available on Server running CentOS 7 is version 5.4. You will need to perform the upgrade by hand, since PHP 7 is not available in the standard CentOS 7 yum repository, because it is not considered stable. This is a significant upgrade, with potential for causing serious conflicts with any web software you may be running. We strongly recommend that you create a snapshot of your server before you proceed. This will allow you to roll back any changes if you encounter a problem with…

GET more here

Examine Inode usage for individual directory

What is Inode? How to find the INODE usage on Linux”. You know, in Unix/Linux everything is considered as a file. An Inode is a data structure that stores various information about a file. This includes File type (executable, block special etc) Ownership Group Owner Permission File Size File access, change and modification timestamp File deletion timestamp Number of links (soft/hard) Access Control List (ACLs) First of all, let me briefly explain about Inode. Index Node (inode) is a basic concept in Linux/Unix. Index node/number (inode) is a data structure…

GET more here

Discover all unsuccessful SSH login Activities in Linux

Each attempt to login to SSH server is tracked and recorded into a log file by the rsyslog daemon in Linux. The most basic mechanism to Discover all unsuccessful SSH login Activities in Linux is a combination of displaying and filtering the log files with the help of cat command or grep command. In order to display a list of the failed SSH logins in Linux, issue some of the commands presented in this guide. Make sure that these commands are executed with root privileges. The most simple command to…

GET more here

Operate grep command for searching in a file

In the first example, I will search for the user “root the Linux passwd file. To search the /etc/passwd file for the user “root”, you need to enter the following command: Given below is the sample Output: root:x:0:0:root:/root:/bin/bash Using grep to search only for words When you are searching for abc, grep will match all sorts of things, viz., kbcabc, abc123, aarfbc35 and lots more combinations without obeying word boundaries. You can compel the grep command to select only those lines that contain matches to form whole words (those that…

GET more here

How to install ModSecurity on Apache for CentOS 7

ModSecurity Introduction ModSecurity is a toolkit for real-time web application monitoring, logging, and access control. you can consider it as an enabler, there are no hard rules telling you what to do, instead, it is up to you to choose your own path through the available features. The freedom to choose what to do is an essential part of ModSecurity’s identity and goes very well with its open source nature. With full access to the source code, your freedom to choose extends to the ability to customize and extend the tool itself…

GET more here

How To Use Remote sync to Sync with a Remote System

Copies the files to the remote server. Do a rsync to make sure it asks for the password for your account on the remote server, and successfully copies the files to the remote server. The following example will synchronize the local folder /home/check/test.txt to the remote folder 100.101.102.11:/root/check  server). This should ask you for the password of your account on the remote server. rsync -avz -e ssh /home/check/test.txt 100.101.102.11:/root/check By using SSH protocol you can transferred the data in a secured connection with encryption. You need to provide the root…

GET more here

Copying a file to another server through SCP in Orissa vps hosting

To copy a file to another server, use the following procedure: Log in to your server with SSH as root. Navigate to the directory where there are the files to be transferred, using cd command: cd /home/albert Type the following command (make sure you replace the IP address and the file name): scp move.txt 100.101.102.11:/root/ In this example, 100.101.102.11 is the IP address of the destination server, and /root/ is the destination folder of move.txt You will be prompted to enter the root password of the remote server. Now the move.txt file…

GET more here

How to Survey my server email queue in VPS

How to view messages in the postfix queue 1- Postfix maintains two queues, the pending mails queue, and the deferred mail queue, the deferred mail queue has the mail that has soft-fail and should be retried (Temporary failure), Postfix retries the deferred queue on set intervals (configurable, and by default 5 minutes). 1- Display a list of queued mail, deferred and pending mailq or postqueue -p To save the output to a text file you can run. mailq > myfile.txt or postqueue -p > myfile.txt The above commands display all queued…

GET more here

How to Install Nagios monitoring tool in centos

Nagios is an awesome Open Source monitoring tool, its provides you more comprehensive monitoring environment to always keep an eye on your all machines / networks whether you are in a your data center or just your small labs. Installing Nagios 4.3.4 and Nagios Plugin 2.2.1 If you follow these instructions correctly, you will end up with following information. Nagios and its plugins will be installed under /usr/local/nagios directory. Nagios will be configured to monitor few services of your local machine (Disk Usage, CPU Load, Current Users, Total Processes, etc.) Nagios web interface will be available at http://orissawebhosting.in/nagios yum install -y httpd httpd-tools…

GET more here

How to Change RDP port on a Windows Server

Change RDP port on a Windows Server Windows servers are remotely accessible with Remote Desktop via the TCP 3389 port (default port). In some situations, when a more secure environment is needed, changing the remote access port can be useful. This article explains how to change the RDP port on a Windows Hosting Server. Note: Make sure you have opened remote access to the new RDP port in Windows Firewall before starting to avoid locking yourself out of the server. WARNING: Be careful when making changes to the Windows Registry…

GET more here