Webtrees is a free and open source genealogy software that allows users to create, maintain and share their family tree online. In this tutorial, we will guide you through the process of installing webtrees on EndeavourOS.
To follow this tutorial, you will need:
The first step is to install the Apache web server. Apache is a widely used web server software that can run various website applications.
sudo pacman -S apache
Once the installation is complete, start and enable the Apache service with the following command:
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
Webtrees is built using PHP programming language, so you need to install PHP and its modules.
sudo pacman -S php php-apache
Additionally, you need some more PHP extensions to run webtrees properly.
sudo pacman -S php-gd
sudo pacman -S php-xml
sudo pacman -S php-intl
Webtrees requires a database to store its data. In this tutorial, we will use the MariaDB database server.
sudo pacman -S mariadb
After installing MariaDB, start and enable the MariaDB service with the following command:
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
Then run the following command to secure your MariaDB installation:
sudo mysql_secure_installation
Next, we need to create a new database and user in MariaDB.
Log in to the MariaDB server as the root user:
sudo mysql -u root -p
Create a new database:
CREATE DATABASE webtrees_db;
Then create a new user and grant them full access to the database:
CREATE USER 'webtrees_user'@'localhost' IDENTIFIED BY '<password>';
GRANT ALL PRIVILEGES ON webtrees_db.* TO 'webtrees_user'@'localhost';
FLUSH PRIVILEGES;
Exit from the MariaDB prompt:
exit
Replace <password>
with a strong password of your choice.
Download the latest version of webtrees from the official website:
wget -O webtrees.tar.gz https://github.com/fisharebest/webtrees/archive/2.0.14.tar.gz
Unpack the downloaded file:
tar -zxvf webtrees.tar.gz
Move the webtrees installation directory to the Apache web root:
sudo mv webtrees-2.0.14/* /srv/http/
Then set the appropriate permissions:
sudo chown -R http:http /srv/http/*
sudo chmod -R 755 /srv/http/*
Open your favorite web browser and navigate to http://localhost. You should see the webtrees installation page.
Follow the instructions to install webtrees.
During the installation process, you will be prompted to enter the database details you created earlier.
Make sure to enter the correct details and continue with the installation.
After the installation is complete, remove the install
directory from the web server root:
sudo rm -rf /srv/http/install
You can now access your webtrees installation by visiting http://localhost in your web browser.
Log in using the credentials you created during the installation process.
Congratulations, you have successfully installed webtrees on EndeavourOS Linux.
In this tutorial, you learned how to install webtrees on EndeavourOS Linux. You now have a powerful genealogy software that you can use to create, maintain and share your family tree.
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!