How to Install Webtrees on Manjaro

Webtrees is an open-source genealogy software that allows users to create, manage, and share their family trees online. In this guide, we will look at how to install webtrees on Manjaro Linux operating system.

Prerequisites

Before installing webtrees on Manjaro, make sure to have the following requirements:

Step 1: Install Apache

Apache server software is required to run webtrees on your Manjaro machine. If Apache is not already installed, you can install it by running the following command on your Manjaro terminal:

sudo pacman -S apache

Once the installation process is complete, start the Apache server by running the command:

sudo systemctl start httpd

Step 2: Install PHP

Webtrees is written in PHP, so you need to install PHP on your Manjaro machine. You can install PHP by running the following command:

sudo pacman -S php

Once the installation is complete, restart the Apache server for it to recognize the newly installed PHP module by running the command:

sudo systemctl restart httpd

Step 3: Download and Extract Webtrees

Next, we need to download and extract the webtrees software to our Manjaro machine. To do so, follow the steps below:

  1. Navigate to the webtrees website at https://www.webtrees.net/download.

  2. Download the latest release of the software by clicking on the "Download webtrees" button.

  3. Extract the downloaded archive to your web server directory by running the following command:

    sudo tar -zxvf webtrees-X.X.X.tar.gz -C /var/www/html/
    

    Where X.X.X represents the version number of the webtrees software.

Step 4: Set File Permissions

Now, we need to set permissions on some of the webtrees directories to allow Apache to write to files. To do this, navigate to the web server directory and run the following commands:

sudo chown -R http:http /var/www/html/webtrees/
sudo chmod -R 755 /var/www/html/webtrees/data/
sudo chmod -R 755 /var/www/html/webtrees/media/

Step 5: Create a Database for Webtrees

Webtrees requires a database to store data. We will use MariaDB to create a database for webtrees. Run the following command to install MariaDB on your Manjaro machine:

sudo pacman -S mariadb

Once installed, start MariaDB and enable it to start at boot time using the following commands:

sudo systemctl start mariadb
sudo systemctl enable mariadb

Then, secure your MariaDB installation by running the following command:

sudo mysql_secure_installation

You will be prompted to set a root password, remove anonymous users, and other security-related settings.

Next, create a database and a user for webtrees on MariaDB by logging into the MariaDB command prompt with:

sudo mysql -u root -p

Once logged in, create a database and a user for webtrees, and grant the user all privileges on the database by running the following commands:

CREATE DATABASE webtrees_db;
CREATE USER 'webtrees_user'@'localhost' IDENTIFIED BY 'password_here';
GRANT ALL PRIVILEGES ON webtrees_db.* TO 'webtrees_user'@'localhost' IDENTIFIED BY 'password_here';
FLUSH PRIVILEGES;

Replace password_here with a strong password.

Step 6: Run the Web-Based Installation Script

The final step is to run the web-based installation script that will allow us to configure webtrees on our Manjaro machine.

  1. Open your web browser and navigate to http://localhost/webtrees.

  2. Follow the on-screen instructions and enter the database details, administrator account information, and website settings.

  3. Once completed, you will be redirected to the webtrees dashboard, and you can start adding family tree data.

Congratulations! You have successfully installed webtrees on your Manjaro machine.

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!