Flaxplax

Personal documentation

Installation

Update and install git

apt update
apt upgrade -y
apt install -y git 

Install the web server stack

apt update
apt install -y apache2 php php-xml php-mbstring php-mysql php-json php-pdo 

Make sure apache is installed and running

systemctl enable --now apache2.service 

Configure apache

vim /etc/apache2/sites-available/privatebin.conf

Change ‘YOUR_SERVER_IP’ to you ip address or domain name

<VirtualHost *:80>
ServerName YOUR_SERVER_IP
DocumentRoot /var/www/html/PrivateBin/
ErrorLog ${APACHE_LOG_DIR}/privatebin-error.log
CustomLog ${APACHE_LOG_DIR}/privatebin-access.log combined
<Directory /var/www/html/PrivateBin>
AllowOverride All
</Directory>
</VirtualHost>

Save exit and enable the virtual host then reload the configuration.

a2ensite privatebin.conf
systemctl reload apache2.service

Clone the repository

cd /var/www/html/ && git clone https://github.com/PrivateBin/PrivateBin.git

Give the apache user owenership of the directory

chown -R www-data:www-data PrivateBin/

Title: Privatebin

Author: Flaxplax

Publish Date: 16, Sep 2021

Last updated: 16, Sep 2021