How to Install webtrees on Linux Mint Latest

webtrees is a free and open-source genealogy software that allows you to create and manage your family tree online. This tutorial will guide you through the steps to install webtrees on Linux Mint Latest.

Prerequisites

Before starting the installation process for webtrees, make sure your Linux Mint operating system is up to date.

sudo apt update
sudo apt upgrade

Step 1 - Install Apache Web Server

webtrees runs on a web server, and Apache is the most commonly used web server software. Use the following command to install Apache web server:

sudo apt install apache2

After installation, start the Apache service using the following command:

sudo systemctl start apache2

To ensure the Apache service starts automatically during system startup, use the following command:

sudo systemctl enable apache2

Step 2 - Install PHP

webtrees requires PHP to run, so you need to install PHP and its required modules.

sudo apt install php libapache2-mod-php php-mysql php-curl php-xml php-gd php-mbstring php-zip

Step 3 - Install MySQL

webtrees also requires MySQL database to store and manage the family tree data.

sudo apt install mysql-server

After the installation, the MySQL service will start automatically. You can verify the MySQL service status by running the following command:

sudo systemctl status mysql

Step 4 - Create a MySQL Database and User

Create a new MySQL database for webtrees using the following commands:

sudo mysql -u root -p

CREATE DATABASE webtrees;
CREATE USER 'webtreesuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON webtrees.* TO 'webtreesuser'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Make sure to replace the password with a strong and secure password.

Step 5 - Download and Extract webtrees

Go to the official website of webtrees at https://www.webtrees.net, and download the latest stable version of the software.

After the download completes, navigate to the download directory and extract the downloaded file using the following command:

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

Make sure to replace X.X.X with the actual version number. The above command will extract the webtrees files to the /var/www/html/webtrees directory.

Step 6 - Set Permissions and Ownership

To ensure that the web server can access the webtrees files properly, set the correct ownership permissions using the following command:

sudo chown -R www-data:www-data /var/www/html/webtrees/

Step 7 - Configure webtrees

Navigate to the webtrees installation directory using the following command:

cd /var/www/html/webtrees/

Create the configuration file for webtrees using the following command:

sudo mv data/config.php.dist data/config.php

Open the web browser and navigate to http://localhost/webtrees. Follow the on-screen instructions to configure webtrees. When prompted, enter the MySQL database details you created in Step 4.

Step 8 - Complete the Installation

After successfully configuring webtrees, you will see the login page of your webtrees installation. Log in with the administrator account you created during the configuration process.

Congratulations! You have successfully installed webtrees on Linux Mint Latest.

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!