How to Install webtrees on Clear Linux

Introduction

Webtrees is a free, open-source online genealogy application. It's a perfect tool for creating and managing family trees online. In this tutorial, we will guide you on how to install Webtrees on Clear Linux Latest.

Prerequisites

Before you start, ensure that you have the following:

Step 1: Installing Apache and MariaDB

  1. Open the terminal and update the package repository using the command:
sudo swupd update
  1. Install Apache web server:
sudo swupd bundle-add apache
  1. Start the Apache service:
sudo systemctl enable --now apache
  1. Install MariaDB:
sudo swupd bundle-add mariadb
  1. Start the MariaDB service:
sudo systemctl enable --now mariadb

Step 2: Creating a Database for webtrees

  1. Log in to the MariaDB server:
sudo mysql -u root
  1. To create a database for webtrees, run the following command:
CREATE DATABASE webtrees;
  1. Create a user and grant full privileges to the webtrees database:
CREATE USER 'webtrees'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON webtrees.* TO 'webtrees'@'localhost';
FLUSH PRIVILEGES;

Replace the password with your preferred password for the webtrees account.

  1. Exit MySQL:
exit;

Step 3: Installing PHP and Extensions

  1. Install PHP and the required extensions using the command:
sudo swupd bundle-add php-basic php-mysql php-apache
  1. Restart the Apache service:
sudo systemctl restart apache2

Step 4: Downloading and Installing webtrees

  1. To download the latest version of webtrees, run the following command:
sudo wget https://github.com/fisharebest/webtrees/releases/download/2.0.4/webtrees-2.0.4.tar.gz
  1. Extract the downloaded file:
sudo tar -xvf webtrees-2.0.4.tar.gz
  1. Move the extracted files to the Apache web server document root:
sudo mv webtrees/* /var/www/html/
  1. Change the owner of the webtrees directory to the Apache user:
sudo chown -R apache:apache /var/www/html/*
  1. Rename the config.dist.php file to config.php:
sudo mv /var/www/html/data/config.dist.php /var/www/html/data/config.php
  1. Edit the config.php file and add your MariaDB database details:
$config['DB_HOST'] = 'localhost';
$config['DB_PORT'] = '3306';
$config['DB_DATABASE'] = 'webtrees';
$config['DB_USERNAME'] = 'webtrees';
$config['DB_PASSWORD'] = 'password';

Replace localhost, webtrees, and password with your respective values.

Step 5: Accessing the webtrees Install Wizard

  1. Open your web browser and enter the server IP address, followed by /index.php:
http://server_ip_address/index.php
  1. You should see the webtrees Install Wizard page. Follow the instructions to complete the installation.

  2. Once the installation is complete, it's recommended to delete the setup directory:

sudo rm -rf /var/www/html/setup
  1. Now, you can access the webtrees application by entering the server IP address in your web browser's address bar:
http://server_ip_address/

Conclusion

Congratulations! You have successfully installed webtrees on Clear Linux. You can now start creating and managing your family tree online using webtrees.

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!