How to Install webtrees on Ubuntu Server

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.

Prerequisites

Before we begin the installation process, make sure that you have the following:

Installation

  1. Update package repository:

    sudo apt update && sudo apt upgrade -y
    
  2. Install required packages:

    sudo apt install -y unzip curl
    
  3. Download webtrees archive (use the latest version):

    curl -o webtrees.zip -L https://github.com/fisharebest/webtrees/archive/2.0.16.zip
    
  4. Extract the archive to the root directory of the web server:

    sudo unzip webtrees.zip -d /var/www/html/
    
  5. 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
    
  6. 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;
    
  7. Create a configuration file:

    cd /var/www/html/webtrees/data/
    cp config.sample.ini config.ini
    
  8. 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.

  9. Restart Apache:

    sudo systemctl restart apache2
    
  10. Access webtrees via your domain or IP address on your web browser:

    http://yourdomain.com/webtrees
    

Conclusion

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!