Skip to content

Prerequisites

Docker

Using the docker-compose.yml provided would require docker-engine or Docker Desktop with the Docker Compose plugin.

Installing on a Hosting Provider

If you want to host Liberatube on a Hosting Provider, MySQL and PHP are typically present and you don't need to install anything. Now you can head over to Installation.

Manual Install

Nginx or Apache

Preferably Nginx or Apache

Apache

sudo apt update
sudo apt install apache2
sudo yum install httpd
sudo systemctl start httpd
sudo systemctl enable httpd

Nginx

sudo apt update
sudo apt install nginx
sudo yum install nginx
sudo systemctl start nginx
sudo systemctl enable nginx

PHP

You need to install PHP onto your Nginx or Apache.

For Nginx

sudo apt install php-fpm
sudo systemctl start php-fpm
sudo systemctl enable php-fpm
sudo yum install php-fpm
sudo systemctl start php-fpm
sudo systemctl enable php-fpm

For Apache

sudo apt install php libapache2-mod-php
sudo systemctl restart apache2
sudo yum install php php-mysql
sudo systemctl restart apache2

MySQL or any Equivalent Database

Liberatube requires a robust database system to store and manage its data. MySQL is a popular choice, but you can opt for other databases like MariaDB or PostgreSQL based on your preferences. Install MySQL and its PHP extension for interaction:

For both Nginx and Apache

sudo apt install mysql-server php-mysql
sudo yum install mariadb-server php-mysql

After installation, restart the MySQL service

sudo systemctl restart mysql

With these components in place, Liberatube's infrastructure is taking shape, Now you can head over to the Installation.

Invidious

Liberatube is entirely dependant on Invidious to fetch data from YouTube. You can configure the instances on the config file.

Invidious website: https://invidious.io/