SSH is the most secure protocol for accessing remote servers. It provides the highest level of end-to-end data security over communication channels. The SCP (Secure Copy) command uses the SSH protocol for copying files between remote and local servers. The remote server must have a running SSH server. This tutorial will help you to understand download and upload files over SSH protocol. Download file over SSH Protocol Here are some useful examples for downloading files from the remote system over SSH protocol. This will connect to example.com server with user “username” and copy the /backup/file.zip file to local system directory…
Author: Rahul
ConfigServer Security & Firewall (CSS) is an iptables based firewall for Linux systems. In our previous tutorial read installation tutorial of CSF on Linux system. CSF also provides in-built web UI for the managing firewall from the web interface. In this tutorial, you will find how to enable CSF Firewall Web UI on your system. Read this: How to Install CSF Firewall on Linux Step 1 – Install Required Perl Modules: CSF UI required some of Perl modules to be installed on your system. Use the following commands to install required modules as per your operating system. Debian based systems:…
The .htaccess file is a powerful configuration tool that allows you to control and customize various aspects of your website’s behavior on an Apache web server. This guide will cover how to enable .htaccess in Apache, discuss best practices, and provide examples of common use cases to help you make the most of this feature. 1. Understanding .htaccess and its benefits The .htaccess (hypertext access) file is a hidden configuration file used by Apache web servers. It allows you to manage settings for individual directories within your website without having to modify the global Apache configuration. Benefits of using .htaccess…
Apache is a widely used web server, known for its flexibility, performance, and extensive configuration options. One common customization is changing the default page displayed when a visitor navigates to your website. By default, Apache looks for a file named ‘index.html’ or ‘index.php’ in the web server’s document root. However, you may want to use a different file as your default page or change the order in which Apache searches for index files. In this article, we will show you how to change the default page in Apache using the .htaccess configuration file. Contents Understanding .htaccess and Apache Creating an…
Introduction AWS CloudWatch provides most of the monitoring Metrics by default. But it doesn’t have any metrics for memory utilization details and Disk space uses. So if you want to monitor the memory on your system or monitor free disk space using CloudWatch. Then first you need to add these metrics to your account using custom scripts. This article will help you to monitor EC2 Linux instance memory and disk metrics with AWS CloudWatch. Remember this will not work on any Linux machine outside the EC2 network. Prerequsiteis For this tutorial, you will use the Perl scripts provided by AWS…
After writing a simple shell script for MySQL database backup. This is our new advance bash script for MySQL database dump. This script will provide you to backup MySQL database and upload backups to various remote locations like FTP, SFTP and Amazon s3 bucket. This script is available on our Github account with all supporting file. You can simply download the script and run it on your server. Use the following steps to use this script and configure backups within 5 min. Step 1 – Clone this Repository Download this repository put files under /etc/mydumpadmin directory. Alternatively, you may also…
MySQL is a popular open-source database management system used for a wide range of applications, from simple websites to large-scale enterprise applications. As a database administrator or developer, you often need to interact with MySQL using the command-line client. However, entering your password every time you execute a command can be time-consuming and inconvenient. In this article, we will discuss how to use MySQL commands without being prompted for a password, allowing for more efficient database management. Contents Understanding MySQL authentication Storing MySQL credentials in a configuration file Creating a MySQL configuration file Setting the appropriate permissions Running MySQL commands…
IF, ELSE or ELIF (known as else if in some programming) are conditional statements which are used for execution of different code depends on condition. The if statements can be written without else or elif statements, But else and elif can’t be used without else. In this tutorial, you will learn if, else and elif in Python programming language. 1. Python if Statement The single if statement is used to execute the specific block of code if the condition evaluates to true. In the case of false output, nothing will execute. Syntax:
1 2 | if ( condition ): statements |
Example 1:
1 2 3 4 5 | #!/usr/bin/python var = 101 if ( var ): print "true" |
Example 2:
1 2 3 4 5 | #!/usr/bin/python var = 101 if ( var==101 ): print "true" |
2.…
Most of the system administrator is aware of the reverse proxy. It is a type of proxy server which fetches the resources from one or more computers on clients requests and send back to the client. In simple terms, it works as an intermediate server, which listens to clients query. Then requests to server bases of clients query and returns results to client sent by the server. This tutorial will help you to setup reverse proxy using IIS with URL rewrite and application request routing extension. We can configure reverse proxy in IIS using URL Rewrite module. This is similar…
In the realm of web development and server management, the capability to manipulate and manage URLs efficiently can dramatically improve site navigation, user experience, and SEO performance. Microsoft’s Internet Information Services (IIS) provides a robust platform for hosting web applications on Windows servers, and with the URL Rewrite Module, administrators have a powerful tool at their disposal to create highly customizable and dynamic URL structures. This guide offers a step-by-step approach to enabling the URL Rewrite Module in IIS, setting the stage for enhanced website management. Understanding the URL Rewrite Module The URL Rewrite Module in IIS is an extension…



