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 its persistent storage. The same idea may be applicable to websites built on other technologies. You want to migrate from shared to VPS server hosting when you see a potential growth in number of visitors…
ContinueCategory: Unix
Unix
How to install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 7
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 run this web application on Apache web server in Linux environment. As we are going to install softwares on CentOS 7 environment in VPS server, so our first requirement is already fulfilled by the hosting…
ContinueInitial VPS Server setup 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 with your root user. The hosting company may additionally send you another username which is a regular user. It is advisable to perform activities on your server using regular user and restrict the login for…
ContinueHow to Login to Linux Server with SSH key from Windows
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 client. Prerequisites In order to connect to remote server with SSH key pair using PuTTY you need to generate private/public SSH key pair. You can find the tutorial Manually SSH key generation in Windows to…
ContinueManually SSH key generation in 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 PuTTYgen utility, which is what you will use to generate your SSH key for a Windows enviroment.
ContinueMonitor health of a URL using Unix
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.
ContinueFigure out which cron job chokes up your system in Linux
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.
ContinueUsing arguments to a Unix Shell Script
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 everytime you pass the different value for the shell script.
ContinueCreating Menu in Unix Shell Programming
Introduction This tutorial will show you how to create menu in Unix Shell Programming. We 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.
ContinuePrinting pyramid with stars 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. We will also see how to take input from keyboard.
Continue