Guide · Run it yourself
Run FamilyTree on your own server
FamilyTree is open source under the AGPL-3.0 licence. The code is on GitHub, and this site runs the same code.
What you need
- PHP 8.1 or newer with PDO, mbstring and OpenSSL. cURL for maps, Google Sheets and Airtable; GD for share cards and thumbnails.
- MySQL or MariaDB, or nothing at all: SQLite works out of the box.
- Apache with
.htaccess(most shared hosting), or Nginx with the rules from the README.
Install
- Download the code from GitHub and upload the
public_htmlfolder to your web space. - Open
https://your-site/install/. It checks the server, connects to MySQL or makes a SQLite file, creates the tables, and makes your account and first tree. - That's it. The installer locks itself afterwards.
With Docker
git clone https://github.com/ravirahul/familytree
cd familytree
docker compose up -d
# then open http://localhost:8080/install/
Upgrading
The weekly job
Once a week, cron.php sends the family email, makes a backup of every tree (the last 8 are kept) and clears out old data. Add a cron job in your hosting panel, Monday morning:
php /home/you/public_html/cron.php weekly
Or set CRON_KEY in .env and call https://your-site/cron.php?key=… from any web cron service.
Upgrading the files
Upload the new files over the old ones, keeping your .env, storage/ and admin/uploads/. On MySQL, run any new files in install/upgrades/ once. On SQLite, the app brings the tables up to date itself.