How to Install PurritoBin on Debian Latest

PurritoBin is a lightweight open source web-based pastebin and it's easy to install on the Debian Linux operating system. In this tutorial, we will show you the steps to get PurritoBin up and running.

Prerequisites

Before we start installing PurritoBin, ensure that your Debian system is up-to-date and you have administrative rights to install packages using apt-get.

Installation

  1. First, update the package list on your Debian system:

    sudo apt-get update
    
  2. Install required packages:

    sudo apt-get install git sqlite3 libsqlite3-dev nginx php7.3-fpm php7.3-sqlite3
    
  3. Clone the PurritoBin repository from the GitHub:

    git clone https://github.com/PurritoBin/PurritoBin.git
    
  4. Move to the PurritoBin directory:

    cd PurritoBin
    
  5. Install the project dependencies using Composer:

    php7.3 /usr/local/bin/composer install --no-dev
    

    Note: If composer is not installed on your Debian system, follow these instructions to download and install it.

  6. Create a new SQLite database file:

    touch database.sqlite
    

    Grant read, write and execute permissions to the www-data user for the database.sqlite file:

    sudo chown www-data:www-data database.sqlite
    sudo chmod 755 database.sqlite
    ```
    
  7. Create the webserver configuration file for the PurritoBin:

    
    

sudo nano /etc/nginx/sites-available/PurritoBin


 Add the below lines to the opened file:

server { listen 80; server_name your.domain.com; root /path/to/PurritoBin/public;

   index index.php;

   location / {
       try_files $uri $uri/ /index.php?$query_string;
   }

   location ~ \.php$ {
       fastcgi_pass unix:/run/php/php7.3-fpm.sock;
       fastcgi_index index.php;
       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
       include fastcgi_params;
   }

}


Here, replace `your.domain.com` with your actual domain name and `path/to/PurritoBin` with the actual path where you cloned the PurritoBin repository.

8. Create a symbolic link for the site configuration in `sites-enabled`:

sudo ln -s /etc/nginx/sites-available/PurritoBin /etc/nginx/sites-enabled/


9. Test the Nginx configuration and reload the nginx service:

sudo nginx -t sudo systemctl reload nginx


10. Finally, you can go to the website (`http://your.domain.com`) to check if the installation was successful.

Congratulations, you have successfully installed PurritoBin on your Debian system!

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](https://ipv6.rs) a try!

Alternatively, for the best virtual desktop, try <a href='https://www.shells.com/?_a=1Viyms'>Shells</a>!