Install InterPlanetary File System (IPFS)

InterPlanetary File System (IPFS) is a peer-peer Distributed file system allow nodes to join and share files.

To install IPFS, download latest version of IPFS for your Operating System from

For Ubuntu/Linux

Once installed, initialize IPFS server with command

Start ipfs server with

You can see all peers connected to your server with command

Preview Website Before Name Server Change

When migrating web site to new server, it is good to test the site from new server before you actually change the name servers. Doing this will avoid unexpected errors after you make site live from new server.

To do this, you need to edit file with name hosts on your computer. Add following content to it.


At this point, if you take command promt on you computer and type folloing command, you will see the new server IP.

Now you may need to restart the browser for browser DNS cache to clear. Now you will be able to see the site from new server.

Location of hosts file

Location of hosts file depends on Operating System you use.


You need to edit the file c:\Windows\System32\Drivers\etc\hosts

To open, you need Administrator privilage, so run notepad as user “Administrator”, then open above file to edit it.

Linux and Mac

The file is located in /etc/hosts, to edit use

Install MagicSpam on Plesk

MagicSpam is an anti spam filter for Plesk and DirectAdmin servers. You can purchase MagicSpam from

To install MagicSpam, upload the zip file you get to /root/ folder of your server and run


Plesk MagicSpam


Virtualizor is a VPS management control panel.


To install Virtualizor with KVM Virtualization, run

Virtualizor also support other vitualization technologies like Xen, OpenVZ and LXC.

Once installed, you will be able to login at

Yum disable a repository

To disable a repository, run

To list all enabled repository, run

MySQL Got error 24 Too many open files

On taking MySQL backup with mysqldump, i get following error

This is because open_files_limit limit in MySQL. To verify login to MySQL server and run

This will give you current value of open_files_limit.

To increase, edit /etc/my.cnf file, add

Add under [mysqld] section

Now restart MySQL server

Apache Benchmark

To benchmark a web site, use ab command provided by Apache.

This will start 15000 requests to the server specifified. 200 requests at a time.

GoLang Hello World

Create a file 1.go with following content

To run the program, use command