webtrees is an open-source web-based genealogy software that helps you create family trees and share them with others. In this tutorial, we will guide you through the process of installing webtrees on OpenBSD.
Before we can install webtrees, we need to make sure that all the required dependencies are installed. OpenBSD uses the package manager pkg_add
to install packages.
# pkg_add -u
# pkg_add php postgresql-server ap-php
webtrees requires a PostgreSQL database to store its data. Let's set up PostgreSQL and create a database for webtrees.
# rcctl start postgresql
# su - _postgresql
$ initdb -D/var/postgresql/data/
$ exit
# rcctl enable postgresql
# rcctl start postgresql
# su - postgres
$ createdb webtrees
$ createuser --pwprompt webtrees
Now that we have all the dependencies installed, let's proceed with the installation of webtrees.
# cd /var/www/htdocs
# ftp https://github.com/fisharebest/webtrees/releases/latest/download/webtrees-2.0.16.zip
# unzip webtrees-2.0.16.zip
# cd webtrees
# cp data/config.ini.sample data/config.ini
# nano data/config.ini
Update the following lines with your PostgreSQL settings:
database_type = postgresql
database_host = localhost
database_port = 5432
database_name = webtrees
database_user = webtrees
database_password = your_database_password_here
# chmod -R u+w data
# chmod u+x index.php
# ./index.php
Follow the on-screen instructions to complete the installation.
install
directory for security purposes:# rm -r install
# chown -R www:www /var/www/htdocs/webtrees
# chmod 755 /var/www/htdocs/webtrees
With the installation complete, you can now access webtrees by opening a web browser and navigating to the following URL:
http://<server-ip>/webtrees
You will be prompted to log in with the credentials you specified during the installation.
Congratulations, you have successfully installed webtrees on OpenBSD!
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!