webtrees is an open-source genealogy software that allows users to create and manage their family tree online. This tutorial will guide you through the process of installing webtrees on an Ubuntu Server.
Before we begin the installation process, make sure that you have the following:
Update package repository:
sudo apt update && sudo apt upgrade -y
Install required packages:
sudo apt install -y unzip curl
Download webtrees archive (use the latest version):
curl -o webtrees.zip -L https://github.com/fisharebest/webtrees/archive/2.0.16.zip
Extract the archive to the root directory of the web server:
sudo unzip webtrees.zip -d /var/www/html/
Rename the extracted directory and set permissions:
sudo mv /var/www/html/webtrees-2.0.16 /var/www/html/webtrees
sudo chown -R www-data:www-data /var/www/html/webtrees
sudo chmod -R 775 /var/www/html/webtrees
Create a new MySQL user and database:
mysql -u root -p
mysql> CREATE DATABASE webtrees_db;
mysql> CREATE USER 'webtrees_user'@'localhost' IDENTIFIED BY 'yourpassword';
mysql> GRANT ALL PRIVILEGES ON webtrees_db.* TO 'webtrees_user'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> EXIT;
Create a configuration file:
cd /var/www/html/webtrees/data/
cp config.sample.ini config.ini
Modify the configuration file with your MySQL details:
nano config.ini
Replace the following lines with your MySQL details:
; host = "localhost"
; dbname = "webtrees"
; username = "webtrees"
; password = "yourpassword"
Save and exit the file.
Restart Apache:
sudo systemctl restart apache2
Access webtrees via your domain or IP address on your web browser:
http://yourdomain.com/webtrees
Congratulations! You have successfully installed webtrees on your Ubuntu Server. You can now start using webtrees to create and manage 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!