Webtrees is a free and open-source genealogy software that allows you to create and manage your family tree online. Here is a step-by-step tutorial on how to install Webtrees on your Fedora Server latest.
Before starting the installation process, you need to ensure that you have the following:
Firstly, update the system to the latest version by running the following command:
sudo dnf update
You need to install the Apache web server by running the following command:
sudo dnf install httpd
Next, install the database server. We will be installing MariaDB in this tutorial. Run the following command to install MariaDB:
sudo dnf install mariadb mariadb-server
After installation, start the MariaDB service and enable it to start at boot time with the following commands:
sudo systemctl start mariadb
sudo systemctl enable mariadb
Now, configure MariaDB by running the following command:
sudo mysql_secure_installation
Follow the instructions on the screen to secure your MariaDB installation.
Next, install PHP and the required modules using the following command:
sudo dnf install php php-mysqlnd php-json php-gd php-mbstring
Download the latest version of Webtrees from their website or use the following command to download it to the /tmp directory:
wget https://github.com/fisharebest/webtrees/releases/download/2.0.13/webtrees-2.0.13.zip -P /tmp
Extract the downloaded Webtrees archive to the web server document root directory by running the following command:
sudo unzip /tmp/webtrees-2.0.13.zip -d /var/www/html/
Configure Apache by running the following command:
sudo nano /etc/httpd/conf.d/webtrees.conf
Add the following lines to the file:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/webtrees
ServerName example.com
ServerAlias www.example.com
ErrorLog /var/log/httpd/webtrees-error.log
CustomLog /var/log/httpd/webtrees-access.log combined
<Directory /var/www/html/webtrees>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Save the file and exit.
Configure SElinux to allow Apache to serve Webtrees content by running the following command:
sudo chcon -t httpd_sys_rw_content_t /var/www/html/webtrees/data -R
Finally, restart the Apache server using the following command:
sudo systemctl restart httpd
You can now access the Webtrees installation by navigating to http://example.com/webtrees (replace "example.com" with your own domain name). You will be prompted to set up the site with your language, database information, and administrator account.
Conclusion
This tutorial has shown you how to set up Webtrees on your Fedora server. It's important to keep your system, web server, and database software up to date to ensure your site is secure and up-to-date. Happy genealogy research!
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!