Set Up Your Own Linux VPS Website


If you are a webmaster who has outgrown shared hosting and is thinking of upgrading to a VPS, these are exciting times. VPS are available at rock-bottom prices, costing as much and sometimes even less than shared costing. Of course, one must remember that the low cost is for a reason and you get what you paid for.

Still, there is nothing better than a cheap budget VPS to get a feel of what is a VPS is all about.
Continue reading

My RamNode VPS Got Hacked

I have a 128MB VPS with RamNode which I use only for storage of backup files.

Yesterday, I got a surprising message from RamNode:

“Your VPS has been using a high CPU load for an extended period of time. Please reduce your usage to comply with our AUP and notify us once you’ve done so. We may have to reboot/ shutdown your VPS to keep the node stable.

It looks like your VPS has been compromised. Your VPS had several .fuck and other strange processes running. Please investigate.”

I immediately rushed to the VPS. Peering through FileZilla, I saw that there were at least two strange files called .Rape and .Fuck (the (.) indicates that they are hidden files) in the root folder. There was also a file called fake.config.

Continue reading

create database and new user in mysql with ssh

I keep forgetting how to do this. So, I will log it here once and for all:

Log into mysql:

mysql -u root -p

Create a database:

create database name_of_database;

Create a new user:

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';

Give new user all the priviliges:

GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';

If you want to give the new user permission only for one database then the command is:

GRANT ALL PRIVILEGES ON name_of_database.*  TO 'newuser'@'localhost';

Reload Mysql:


To change the password of the user:

mysqladmin -u root -p'oldpassword' password newpassword

easyengine auto-installer script for Nginx, MySql, PHP and WordPress and Wp-Super Cache

I am a fan of the CentminMod auto installer. This script auto-installs Nginx, PHP, MariaDB, NSD (DNS server) and several other necessities. Also, the author (eva2000) is a very helpful person and answers most questions promptly at WHT.

The Centmin Mod script works well and uses very less RAM. This comes very handy at times of traffic surges. On one of my sites with 1 GB RAM, I had 900+ concurrent visitors downloading a 2MB+ pdf files. However, my RAM usage did not cross 300MB and the VPS remained cool as a cucumber.

Continue reading

Unable to create directory wp-content/uploads/2013/10. Is its parent directory writable by the server?

If you are, like me, fond of frequently shifting your websites from VPS to VPS, using Centos and Ubuntu, alternatively, you will face this problem.

Suddenly, when I tried to upload an image to my WordPress site, I got the error:

Unable to create directory wp-content/uploads/2013/10. Is its parent directory writable by the server?

Well, I did all the usual things – check that the ownership of the files is with www-data:www-data (if Ubuntu) or apache:apache (if Centos) or name_of_user:name_of_user (if using VirtualMin). I also chmoded the files to an extreme 777.

Continue reading

WP-PostViews Not Working/ Not Showing Post Count

WP-PostViews, one of the many plugins by the highly talented Lester Chan, is one of my favourite plugins. As the name suggests, it tells you how many times a post has been viewed. You can choose to display that information in the public or you can keep it to yourself.

Either way, it is an invaluable tool because you know how popular your posts are.

Continue reading

Complete Guide To Setting Up A VPS With WordPress (Centos) (Without Control Panel)

There are few things more satisfying than starting with an empty VPS and filling it with a fully functional WordPress website in just a few moments.

The best thing is that we will not be using any Control Panel. This means that we don’t squander away precious RAM that would otherwise be consumed by the Control Panel.

In this Guide, we will start with a VPS pre-loaded with Centos 6 (32 bit) and load it with apache, php, MySql, Phpmyadmin and WordPress.

Continue reading

RamNode 128MB RAM VPS Review

I suddenly developed an urge for a backup VPS where I could store data.

I have a number of websites which are scattered across a number of VPSs.

I prefer to do a manual backup of the website files and database using the simple technique detailed here. I transfer the backup files to one of the other VPS using wget. (This way you can transfer vast amounts of data in a few minutes to a remote location and keep it safe and secure).

Continue reading