Installing Latest Version of MySQL on Linux (CentOS 6) Production Server

Checking if MySQL is Already Installed [ahmed@amayem ~]$ rpm -q mysql-server package mysql-server is not installed Or you can do it this way: [ahmed@amayem ~]$ yum list installed | grep mysql [ahmed@amayem ~]$ Downloading the MySQL Yum Repository Release Package: Choose your operating system from http://dev.mysql.com/downloads/repo/yum/ In my case it was CentOS 6, which means…

Finding the kernel version in OpenVZ CentOS 6

When running a Linux server it is sometimes necessary to check which kernel version you are using to be able to choose certain software to install etc. There are a few ways to do this. We will be trying out the methods in this linfo.org article. Since I am running an OpenVZ CentOS 6 Linux…

Checking if your CentOS system is original or a virtualization version (OpenVZ)

As I was finding the kenel version of my Linux server I hit some issues as I ran this command. [ahmed@amayem kernel]$ uname -r 2.6.32-042stab078.28 I noticed that that version string is a bit unusal. It has stab in it. Kernel version 2.6.32 was released by kernel.org and I don’t see a stab in the…

Using sudo cd problem and workarounds

Pre-requisites Root access to your server or have access to an account that has sudo powers on your servers – Instructions here to see how to give a linux user sudo powers. Setup Login as a non-priveleged user (non-root). Let’s make a directory that only root can enter: [ahmed@amayem ~]$ sudo mkdir test [ahmed@amayem ~]$…

Running a Node.js app (ghost) in the background continuously with Supervisor (Supervisord)

Pre-requisites Root access to your server or have access to an account that has sudo powers on your servers – Instructions here. nodejs and npm installed – Instructions here. ghost installed and a ghost user made to run ghost – Instructions here. What is supervisor From the official supervisor page, Supervisor is a client/server system…