Skip to main content

Create your own ThePirateBay on your server

Avid downloader of torrents, ThePirateBay is down as you should know.

But don’t fear, there is a lot of alternatives (Kickasstorrent, 1137x, etc…) and another alternative will be host a copy of ThePirateBay on your own server.

ThePirateBay copy - OpenBay

Indeed, Isohunt team have create an open source version of TPB called OpenBay where you can also import a consolidated database of 8m torrents from TPB, Kickasstorrent and Isohunt trackers.

Let’s see how to install it.



You will first need to have a LAMP server, if you don’t know what it is, or don’t have it, please see this tutorial.

1) Clone the project’s Git repository
2) Change the owner of the folder to avoid permission issue

We will use the Apache user (www-data).

In root, run:

3) Create a dedicated virtualhost to run OpenBay

As I prefer to access all my services using sub-domains, I need to create a virtualhost for each of them.

Simply create a new virtualhost

Still in root, run:

and paste:

Adapt the value based on your configuration (ServerName, DocumentRoot, ServerAdmin, etc..)

4) Run the installation script

Simply go to http://yoursubdomain.domain.tld

ThePirateBay copy - OpenBay Installation

We will be able to set up the name of your tracker, select if you want to use their database or not, etc…

Well…and that’s all!

You are now the administrator of a copy of the TPB.