How to Install PrivateBin on Windows 11

PrivateBin is a self-hosted, open-source solution for secure and private data sharing. It encrypts all data that is entered and stored, making it an excellent solution for individuals or organizations that require secure communication.

In this tutorial, we will guide you through installing PrivateBin on Windows 11.

Prerequisites

Before we begin, ensure that you have the following prerequisites:

Step 1: Download PrivateBin

The first step is to download the latest version of PrivateBin from the official website. You can download it from https://privatebin.info.

Step 2: Extract the Zip archive

Once the download is complete, extract the contents of the archive to a directory on your web server. For example, if you are using Apache, you can extract it to C:/xampp/htdocs/.

Step 3: Enable Mcrypt extension

PrivateBin requires the Mcrypt extension to be enabled in PHP. By default, most PHP installations disable it. To enable Mcrypt, follow these steps:

  1. Locate your php.ini file. It is usually in C:/xampp/php/php.ini.
  2. Open the file in a text editor.
  3. Find the line that says extension=php_mcrypt.dll.
  4. Remove the semicolon ; at the beginning of that line to uncomment it.
  5. Save the file and exit.

Step 4: Create a MySQL Database

PrivateBin requires a MySQL database to store its data. Follow these steps to create a MySQL database:

  1. Open your web server's control panel, and locate phpMyAdmin.
  2. Log in to phpMyAdmin.
  3. Create a new database for PrivateBin. You can name it privatebin or any name of your choice.
  4. Create a new user with the following details:
    • Username: privatebinuser
    • Password: your_password_here
  5. Give this user all the necessary permissions to manage the privatebin database.

Step 5: Configure PrivateBin

PrivateBin comes with a configuration file named cfg/conf.sample.php, which you need to rename to conf.php. Once you have renamed it, open the file in a text editor.

  1. Locate the following lines:
    // Database settings
    $config['database'] = array(
    'host' => 'localhost',
    'username' => 'privatebinuser',
    'password' => 'your_password_here',
    'name' => 'privatebin',
    'table' => 'privatebin'
    );
  1. Replace localhost with the hostname of your MySQL server, if it is not located on your local machine.
  2. Replace privatebinuser and your_password_here with the username and password you created for the PrivateBin database in step 4.
  3. Replace privatebin with the name you gave to the PrivateBin database in step 4.

Step 6: Test PrivateBin

Before we can start using PrivateBin, we need to ensure that it is working correctly. Follow these steps to test your installation:

  1. Open your web browser and navigate to http://localhost/privatebin.
  2. If everything is working correctly, you should see the PrivateBin interface.
  3. Test the encryption feature by typing in some text and clicking on "Create New Paste".
  4. If the paste can be decrypted properly with the code provided, then your installation is working correctly.

Conclusion

In this tutorial, we've shown you how to install and configure PrivateBin on Windows 11. You can now use it to securely share data and messages with others. If you have any further questions, please refer to the official documentation.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!