Redirect all http page to https with www

Loading

Hello, it is very simple to redirect all HTTP requests to HTTPS with www. I am doing it here from the apache end however, you can do it from your DNS panel also. First, you have to enable the mod_rewrite module in apache. By typing below command you can see which modules are enabled to…

Basic commands of Docker

Loading

If you are a beginners in docker, then you have to Below are the basic commands for docker For pull the docker image # docker pull image:tag Note: If you not mentioned the tag, then it will automatically pick the “latest” tag. so the command looks like below # docker pull ubuntu:latest Show docker images…

Increase SSH session timeout

Loading

If you facing SSH session disconnecting problem then please follow the below steps: This tutorial increase your ssh session. In my case I will increase it to 1 day. Open the sshd configuration file with any preferable Linux text editor Add the following lines to the end of this file TCPKeepAlive yesClientAliveInterval 60ClientAliveCountMax 1440 This…

Bandwidth monitor via Zabbix server

Loading

Zabbix server gives you bandwidth calculation via “net.if.in[eth0,bytes]” and “net.if.out[eth0,bytes]” functions. But sometime you might face some issue with this functions, e.g. sometime might be your actual bandwidth data mismatch with the Zabbix server shown data. So, for the mitigate this problem you can use this solution. If you face any issue regarding this please comment…

Disable password less authentication and set a root pass on MySQL 5.7

Loading

Login to the MySQL using below command use the mysql database Change the password policy to LOW Now again show the password policy Your MySQL password policy has been changed. Now you have to set a root password. To show MySQL current password structure:  Change the root password authentication method to native_password Again show the MySQL current…