Introduction Here I will guide you how to migrate existing website from shared hosting to VPS hosting. I will talk about mainly PHP based website, for example, WordPress that has MySQL database for storing the information and runs on Apache web server. But this website may be based on any technology with any database as…

Posted in Unix

How to migrate website from shared hosting to VPS hosting

Introduction This guide will walk you through the installation process of LAMP stack on CentsOS 7 in VPS server. LAMP is an acronym that represents Linux operating system, Apache web server, MySQL database server and PHP scripting language, which is used to build a dynamic web application whose data are stored into MySQL server and…

Posted in Unix

How to install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 7

Introduction This guide will walk through initial VPS server setup on CentOS 7. When you bought a new VPS hosting then you need to perform some initial configurations such as new user creation, restrict permissions, restrict login etc. for your VPS server. The hosting company send an email with password which is required to login…

Posted in Unix

Initial VPS Server setup on CentOS 7

Introduction In this post I will show you how to login to your Linux Server with SSH key from Windows using PuTTY. PuTTY is an open source software and SSH and telnet client developed for the Windows platform. I will connect to CentOS 7 (Linux) VPS server with SSH key from Windows operating system using PuTTY…

Posted in Unix

How to Login to Linux Server with SSH key from Windows

Introduction This guide will show you how to manually generate SSH key in Windows environment. We will use here Putty to generate private and public SSH keys in Windows. PuTTY is an open source software and SSH and telnet client developed for the Windows platform. When you install the PuTTY client, you also install the…

Posted in Unix

Manually SSH key generation in Windows

This blog will tell you how to write a script to check whether a given web service or URL is up or not by accessing a given URL. Occasinally, your Apache (or other) web server might become unresponsive. So here we will get an idea how to write a script to detect this issue.

Posted in Unix

Monitor health of a URL using Unix

We will first execute the command ps -o pid,sess,cmd afx to figure out which cron job chokes up the system in Linux. The above command will print out the process tree of all the processes running the system.

Posted in Unix

Figure out which cron job chokes up your system in Linux

Introduction This tutorial will show you an example on using arguments to a unix shell script or programming. Here we will create a shell script file for showing the example. The advantage of using urguments is you can pass the value dynamically as per the requirements. You don’t need to edit the shell script file…

Posted in Unix

Using arguments to a Unix Shell Script

Introduction This tutorial will show you how to create menu in Unix Shell Programming. You know that menu gives user options to perform tasks smoothly because without menu user may not be able to understand what to do when a user has to choose an operation from multiple options.

Posted in Unix

Creating Menu in Unix Shell Programming

The below unix shell programming will show you an example on printing pyramid with stars in unix shell programming. This tutorial will also show how to use if else condition, how to use for loop in shell programming. You will also see how to take input from keyboard.

Posted in Unix

Printing pyramid with stars in Unix Shell Programming