Set Up Your Own Linux VPS Website

Featured

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

ServerMania’s New SSD Cached Linux VPS Offers

ServerMania is developing a reputation for offering VPS deals that look very attractive.

Their earlier offer that attracted me was the “SSD Cached Linux VPS – 4 GB RAM”. This was available for an annual fee of $88.

I have already reviewed this VPS in this article. It works well and I have no complaints barring the fact that there is sometimes a connectivity issue with the server in New York. However, this is an ISP problem and not a VPS problem. Continue reading

My VPS Got Hacked And Was Used For A “100 Mbit Outbound DDOS Connection”

I have a VPS which is used only to send emails to about 30,000 subscribers. I have been doing so for several years. All the subscribers are double opt-in confirmed. The I. P. address is white-listed and everything works well. The VPS is used sparingly.

All of a sudden, I received an email today from the hosting company stating: 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:

FLUSH PRIVILEGES;

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