fisharebest / webtrees
webtrees online genealogy
Installs: 8 962
Dependents: 11
Suggesters: 0
Security: 1
Stars: 500
Watchers: 20
Forks: 302
Open Issues: 391
Requires
- php: 8.3 - 8.4
- ext-ctype: *
- ext-curl: *
- ext-gd: *
- ext-iconv: *
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- ext-pcre: *
- ext-pdo: *
- ext-session: *
- ext-xml: *
- aura/router: 3.3.0
- ezyang/htmlpurifier: 4.18.0
- fig/http-message-util: 1.1.5
- fisharebest/algorithm: 1.6.0
- fisharebest/ext-calendar: 2.6.0
- fisharebest/localization: 1.17.0
- guzzlehttp/guzzle: 7.9.2
- illuminate/database: 11.34.2
- illuminate/support: 11.34.2
- intervention/image: 3.9.1
- io-developer/php-whois: 4.1.10
- league/commonmark: 2.5.3
- league/flysystem: 3.29.1
- league/flysystem-path-prefixing: 3.28.0
- league/flysystem-ziparchive: 3.29.0
- middlewares/client-ip: 2.0.1
- mlocati/ip-lib: 1.18.1
- nesbot/carbon: 3.8.2
- nyholm/psr7: 1.8.2
- nyholm/psr7-server: 1.1.0
- oscarotero/middleland: 1.0.1
- psr/cache: 3.0.0
- psr/http-message: 1.1
- psr/http-server-handler: 1.0.2
- psr/http-server-middleware: 1.0.2
- ramsey/uuid: 4.7.6
- sabre/vobject: 4.5.6
- symfony/cache: 7.1.9
- symfony/console: 7.1.8
- symfony/expression-language: 7.1.6
- symfony/mailer: 7.1.6
- symfony/polyfill-mbstring: 1.31.0
- tecnickcom/tcpdf: 6.7.7
Requires (Dev)
- ext-dom: *
- ext-libxml: *
- ext-pdo_sqlite: *
- ext-sqlite3: *
- league/flysystem-memory: 3.29.0
- php-coveralls/php-coveralls: 2.7.0
- phpunit/phpunit: 11.4.4
Suggests
- ext-imagick: Required to generate thumbnail images
- ext-pdo_mysql: Required to use MySQL for database storage
- ext-pdo_pgsql: Required to use PostgreSQL for database storage
- ext-pdo_sqlite: Required to use SQLite for database storage
- ext-pdo_sqlsrv: Required to use SQL Server for database storage
- ext-zip: Required to compress downloads and use the upgrade wizard
- ext-zlib: Required to compress HTTP responses
- dev-main
- 2.2.1
- 2.2.0
- 2.1.x-dev
- 2.1.22
- 2.1.21
- 2.1.20
- 2.1.19
- 2.1.18
- 2.1.17
- 2.1.16
- 2.1.15
- 2.1.14
- 2.1.13
- 2.1.12
- 2.1.11
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.1.0-beta.2
- 2.1.0-beta.1
- 2.1.0-alpha.2
- 2.1.0-alpha.1
- 2.0.x-dev
- 2.0.26
- 2.0.25
- 2.0.24
- 2.0.23
- 2.0.22
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-beta.5
- 2.0.0-beta.4
- 2.0.0-beta.3
- 2.0.0-beta.2
- 2.0.0-beta.1
- 2.0.0-alpha.5
- 2.0.0-alpha.4
- 2.0.0-alpha.3
- 2.0.0-alpha.2
- 2.0.0-alpha.1
- 1.7.x-dev
- 1.7.20
- 1.7.19
- 1.7.18
- 1.7.17
- 1.7.16
- 1.7.15
- 1.7.14
- 1.7.13
- 1.7.12
- 1.7.11
- 1.7.10
- 1.7.9
- 1.7.8
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.3
- dev-fix255
- dev-dbal
- dev-analysis-9b999a
- dev-develop
This package is auto-updated.
Last update: 2024-12-22 13:10:56 UTC
README
webtrees - online collaborative genealogy
Contents
- License
- Coding styles and standards
- Introduction
- System requirements
- Internet browser compatibility
- Installation
- Upgrading
- Building and developing
- Gedcom (family tree) files
- Security
- Backup
- Restore from Backup
License
- webtrees: online genealogy
- Copyright 2022 webtrees development team
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Coding styles and standards
webtrees follows the PHP Standards Recommendations.
- PSR-1 - Basic Coding Standard
- PSR-2 - Coding Style Guide
- PSR-4 - Autoloading Standard
- PSR-6 - Cache
- PSR-7 - HTTP Message Interface
- PSR-11 - Container Interface
- PSR-12 - Extended Coding Style Guide
- PSR-15 - HTTP Handlers
- PSR-17 - HTTP Factories
We do not currently use PSR-3 (logging) - but we plan to do so in the future.
For JavaScript, we use semistandard.
Introduction
webtrees is the web's leading online collaborative genealogy application.
- It works from standard GEDCOM files, and is therefore compatible with every major desktop application.
- It aims to to be efficient and effective by using the right combination of third-party tools, design techniques and open standards.
webtrees allows you to view and edit your genealogy on your website. It has full editing capabilities, full privacy functions, and supports imedia such as photos and document images. As an online program, it fosters extended family participation and good ancestral recording habits, as it simplifies the process of collaborating with others working on your family lines. Your latest information is always on your web site and available for others to see, defined by viewing rules you set. For more information and to see working demos, visit webtrees.net.
webtrees is Open Source software that has been produced by people from many countries freely donating their time and talents to the project. All service, support, and future development is dependent on the time developers are willing to donate to the project, often at the expense of work, recreation, and family. Beyond the few donations received from users, developers receive no compensation for the time they spend working on the project. There is also no outside source of revenue to support the project. Please consider these circumstances when making support requests and consider volunteering your own time and skills to make the project even stronger and better.
System requirements
To install webtrees, you need:
- A webserver. Apache, NGINX and IIS are the most common types. To use “Pretty URLs”, you will need to configure URL rewriting"
- A database. MySQL is recommended, although PostgreSQL, SQL-Server and SQLite can be used. Some features rely on MySQL for collation. Other database might not sort names according to local rules. webtrees uses a prefix for its table names, so you can install several instances of webtrees in the same database.
- Approximately 100MB of disk space for the application files, plus whatever is needed for your media files, GEDCOM files and database.
- PHP 7.1 - 7.4. Servers with PHP 5.3 - 7.0 can use webtrees 1.7.
- PHP should be configured to allow sufficient server resources (memory and
execution time) for the size of your system. Typical requirements are:
- Small systems (500 individuals): 16–32 MB, 10–20 seconds
- Medium systems (5,000 individuals): 32–64 MB, 20–40 seconds
- Large systems (50,000 individuals): 64–128 MB, 40–80 seconds
- PHP should be configured to allow sufficient server resources (memory and
execution time) for the size of your system. Typical requirements are:
Browser compatibility
webtrees is tested on recent versions of popular browsers such as Edge, Firefox, Chrome, and Safari. Support for other browsers and older versions is on a case-by-case basis.
Installation
- Download the .ZIP file for latest stable version from github.com.
- Unzip the files and then upload them to an empty folder on your web server.
- Open your web browser and type the URL for your webtrees site (for example,
https://www.yourserver.com/webtrees
into the address bar. - The webtrees setup wizard will start automatically.
Your first task will be to create a family tree.
If you have a GEDCOM file, you can import it into the tree. If not, just start entering your family tree.
There are lots of configuration options. You'll probably want to review the privacy settings first. Don't worry too much about all the other options - the defaults are good for most people. If you get stuck, you can get friendly help and advice from the help forum.
Upgrading
Upgrading webtrees is quick and easy. It is strongly recommended that you upgrade your installation whenever a new version is made available. Even minor webtrees version updates usually contain a significant number of bug fixes as well as interface improvements and program enhancements.
-
Automatic upgrade
webtrees has an automatic upgrade facility. An administrator upon logging in will receive notification when a new version is available and an option to start the automatic upgrade. If for some reason the automatic upgrade should fail then a manual upgrade should be performed.
-
Manual upgrade
- Now would be a good time to make a backup.
- Download the latest version of webtrees available from webtrees.net
- While you are in the middle of uploading the new files, a visitor to your site would encounter a mixture of new and old files. This could cause unpredictable behavior or errors. To prevent this, create the file data/offline.txt. While this file exists, visitors will see a “site unavailable - come back later” message.
- Unzip the .ZIP file, and upload the files to your web server, overwriting the existing files.
- Delete the file data/offline.txt.
Note for Macintosh users
Step 4 assumes you are using a copy tool that merges directories rather than replaces them. (Merge is standard behavior on Windows and Linux.) If you use the Macintosh Finder or other similar tool to perform step 3, it will replace your configuration, media and other directories with the empty/default ones from the installation. This would be very bad (but you did take a backup in step 1, didn't you!). Further details and recommendations for suitable tools can be found by searching google.com.
Building and developing
If you want to build webtrees from source, or modify the code, you'll need to install a couple of tools first.
You will need composer to install the PHP dependencies. Then run this command::
- php composer.phar install
You will need npm to install the Javascript dependencies. Then run the commands:
- npm install
- npm run production
You will need to re-run the second of these any time you modify the file webtrees.js
.
Gedcom (family tree) files
When you import a family tree (GEDCOM) file in webtrees the data from the file is transferred to the database tables. The file itself remains in the webtrees/data folder and is no longer used or required by webtrees. Any subsequent editing of the webtrees data will not change this file
When or if you change your genealogy data outside of webtrees, it is not necessary to delete your GEDCOM file or database from webtrees and start over. Follow these steps to update a GEDCOM that has already been imported:
- Go to
Control panel
->Manage family trees
On the line relating to this particular family tree (GEDCOM) file (or a new one) select IMPORT. - Take careful note of the media items option (“If you have created media objects in webtrees, and have edited your data off-line using software that deletes media objects, then tick this box to merge the current media objects with the new GEDCOM.”) In most cases you should leave this box UNCHECKED.
- Click “SAVE”. webtrees will validate the GEDCOM again before importing. During this process, webtrees copies your entire family tree (GEDCOM file) to a 'chunk' table within your database. Depending on the coding of your file, its file size and the capabilities of your server and the supporting software, this may take some time. No progress bar will show while the data is being copied and should you navigate away from this page, the process is suspended. It will start again when you return to the Family Tree management page.
Security
Security in webtrees means ensuring your site is safe from unwanted intrusions, hacking, or access to data and configuration files. The developers of webtrees regard security as an extremely important part of its development and have made every attempt to ensure your data is safe.
The area most at risk of intrusion would be the /data folder that contains your
config.ini.php file, and various temporary files. If you are concerned there
may be a risk there is a very simple test you can do: try to fetch the file
config.ini.php by typing url_to_your_server/data/config.ini.php
in your web
browser.
The most likely result is an “access denied” message like this:
Forbidden
You don't have permission to access /data/config.ini.php on this server.
This indicates that the protection built into webtrees is working, and no further action is required.
In the unlikely event you do fetch the file (you will just see a semicolon), then that protection is not working on your site and you should take some further action.
If your server runs PHP in CGI mode, then change the permission of the /data folder to 700 instead of 777. This will block access to the httpd process, while still allowing access to PHP scripts.
This will work for perhaps 99% of all users. Only the remaining 1% should consider the most complex solution, moving the /data folder out of accessible web space. (Note: In many shared hosting environments this is not an option anyway.)
If you do find it necessary, following is an example of the process required:
If your home folder is something like /home/username, and the root folder for your web site is /home/username/public_html, and you have installed webtrees in the public_html/webtrees folder, then you would create a new data folder in your home folder at the same level as your public_html folder, such as /home/username/private/data, and place your GEDCOM (family tree) file there.
Then change the Data folder setting on the Control panel
->
Website
-> Website preferences
page from the default data/ to the new
location /home/username/private/data
You will have two data directories:
- [path to webtrees]/data - just needs to contain config.ini.php
- /home/username/private/data - contains everything else
Backup
Backups are good. Whatever problem you have, it can always be fixed from a good backup.
To make a backup of webtrees, you need to make a copy of the following
-
The files in the webtrees/data folder.
-
The tables in the database. Freely available tools such as phpMyAdmin allow you to do this in one click. Alternatively, You can also make a backup running a mysqldump command (just replace the words [localhost], [username], [password] and [databasename] with your own):
mysqldump --host=[localhost] -u [username] -p[password] --databases [databasename] > dump_file.sql
Note that '-p[password]' goes together with no space in between.
Remember that most web hosting services do NOT backup your data, and this is your responsibility.
Restore from backup
To restore a backup on a new server:
-
Follow the steps in Installation to get a clean new installation.
-
Replace the data folder with backup copy.
-
Restore your mysql database using phpmyadmin or running the following command line on your database server using your mysqldumpfile (just replace the words [username], [password] and [databasename] with your own):
mysql -u [username] -p[password] [database_name] < [dump_file.sql]
-
Confirm the file data/config.ini.php contains to correct information to connect to the database and update it if needed.