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 Rsync 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

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 Inspecting email queue

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…

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

How to install Softaculous on server with WHM

Installation Requirements Before installing Softaculous make sure that ionCube Loaders are enabled. In order to install Softaculous on a VPS or a dedicated server with cPanel, you will need to perform the steps listed below: 1. Log into your WHM (as a root user). 2. Go to Server Configuration (1), click Tweak Settings (2) and navigate to the PHP tab (3). Select ioncube(4) for cPanel PHP Loader: 3. Click on the Save button below 4. If you have a firewall, access to download packages from *.softaculous.com should be allowed. The following domains should be whitelisted in your firewall as these are the mirrors used…

GET more here

How To Upgrade to PHP 7 on CentOS 7

Upgrade to PHP 7 Since PHP 7.x is not yet packaged in official repositories for the major distributions, we’ll have to rely on a third-party source. Several repositories offer PHP 7 RPM files. We’ll use the IUS repository. IUS offers an installation script for subscribing to their repository and importing associated GPG keys. Make sure you’re in your home directory, and retrieve the script using curl: # cd ~ # curl ‘https://setup.ius.io/’ -o setup-ius.sh Run the script: # bash setup-ius.sh Upgrading mod_php with Apache This section describes the upgrade process…

GET more here

How To Import and Export Databases in MySQL or MariaDB

Import and Export Databases in MySQL or MariaDB Being able to import and export your database is an important skill to have. You can use data dumps for backup and restoration purposes, so you can recover older copies of your database in case of an emergency, or you can use them to migrate data to a new server or development environment. To import and/or export a MySQL or MariaDB database, you will need: Access to the Linux server running MySQL or MariaDB The database name and user credentials for it…

GET more here

How to Install and Configure Nagios on CentOS 7

Install and Configure Nagios Nagios Core is free & open source monitoring tool or software which can monitor the resources like servers, network equipment like firewall, network switches and printers etc. Nagios core also provides alerting services, using which nagios informs administrators about issue that has occurred & then trigger alerts again when the issue has been resolved. Nagios provides information like CPU utilization, Disk utilization, Memory utilization & also has support for a number of networking protocols like SMTP, HTTP, POP3, SNMP, ICMP, FTP, SSH etc. Nagios shows all the information regarding all the servers on a…

GET more here