xref: /webtrees/README.md (revision c2a8c8bf7de8a39f75d5bc4f1074a75217deff5f)
1[![Latest Stable Version](https://poser.pugx.org/fisharebest/webtrees/v/stable.svg)](https://packagist.org/packages/fisharebest/webtrees)
2[![Build Status](https://travis-ci.org/fisharebest/webtrees.svg?branch=master)](https://travis-ci.org/fisharebest/webtrees)
3[![Coverage Status](https://coveralls.io/repos/fisharebest/webtrees/badge.svg?branch=master&service=github)](https://coveralls.io/github/fisharebest/webtrees?branch=master)
4[![Translation status](https://translate.webtrees.net/widgets/webtrees/-/svg-badge.svg)](https://translate.webtrees.net/engage/webtrees/?utm_source=widget)
5[![SensioLabsInsight](https://insight.sensiolabs.com/projects/78a5ba19-7ddf-4a58-8262-1c8a149f38de/mini.png)](https://insight.sensiolabs.com/projects/78a5ba19-7ddf-4a58-8262-1c8a149f38de)
6[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fisharebest/webtrees/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fisharebest/webtrees/?branch=master)
7[![Code Climate](https://codeclimate.com/github/fisharebest/webtrees/badges/gpa.svg)](https://codeclimate.com/github/fisharebest/webtrees)
8
9# webtrees
10
11The project’s website is [www.webtrees.net](https://www.webtrees.net).
12Further documentation is available at [wiki.webtrees.net](https://wiki.webtrees.net).
13
14
15## Contents
16
17* [License](#license)
18* [Introduction](#introduction)
19* [System requirements](#system-requirements)
20* [Installation](#installation)
21* [Upgrading](#upgrading)
22* [Gedcom (family tree) files](#gedcom-family-tree-files)
23* [Security](#security)
24* [Backup](#backup)
25* [Converting from phpgedview](#converting-from-phpgedview)
26
27
28### License
29
30* **webtrees: online genealogy**
31* Copyright (C) 2015 webtrees development team
32
33This program is free software: you can redistribute it and/or modify
34it under the terms of the GNU General Public License as published by
35the Free Software Foundation, either version 3 of the License, or
36(at your option) any later version.
37
38This program is distributed in the hope that it will be useful,
39but WITHOUT ANY WARRANTY; without even the implied warranty of
40MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41GNU General Public License for more details.
42
43You should have received a copy of the GNU General Public License
44along with this program. If not, see <http://www.gnu.org/licenses/>.
45
46
47### Introduction
48
49**webtrees** is the web's leading online collaborative genealogy application.
50
51* It works from standard GEDCOM files, and is therefore compatible with every
52major desktop application.
53* It aims to to be efficient and effective by using the right combination of
54third-party tools, design techniques and open standards.
55
56**webtrees** allows you to view and edit your genealogy on your website. It has
57full editing capabilities, full privacy functions, and supports imedia such as
58photos and document images. As an online program, it fosters extended family
59participation and good ancestral recording habits, as it simplifies the process
60of collaborating with others working on your family lines. Your latest information
61is always on your web site and available for others to see, defined by viewing
62rules you set. For more information and to see working demos, visit
63[webtrees.net](http://webtrees.net/).
64
65**webtrees** is Open Source software that has been produced by people from many
66countries freely donating their time and talents to the project. All service,
67support, and future development is dependent on the time developers are willing
68to donate to the project, often at the expense of work, recreation, and family.
69Beyond the few donations received from users, developers receive no compensation
70for the time they spend working on the project. There is also no outside source
71of revenue to support the project. Please consider these circumstances when
72making support requests and consider volunteering your own time and skills to make
73the project even stronger and better.
74
75
76### System requirements
77
78To install **webtrees**, you need:
79
80* A webserver. Apache and IIS are the most common types. There are no requirements
81  to use a specific type or version.
82* Approximately 65MB of disk space for the application files, plus whatever is
83  needed for your media files, GEDCOM files and database.
84* PHP 5.3.2 or later. Note that many web hosts offer *both* PHP4 and PHP5,
85  typically with PHP4 as the default. If this is the case, you will be able to
86  switch between the two using a control panel or a configuration file. Refer
87  to your web host's support documentation for details.
88   * PHP should be configured with the PHP/PDO library for MySQL. This is a
89     server configuration option. It is enabled by default on most hosts.
90     See [http://php.net/pdo](http://php.net/pdo)
91   * PHP should be configured to allow sufficient server resources (memory and
92     execution time) for the size of your system. Typical requirements are:
93      * Small systems (500 individuals): 16–32 MB, 10–20 seconds
94      * Medium systems (5,000 individuals): 32–64 MB, 20–40 seconds
95      * Large systems (50,000 individuals): 64–128 MB, 40–80 seconds
96* MySQL 5.0.13 or later. Note that **webtrees** can share a single database
97  with other applications, by choosing a unique table prefix during configuration.
98  If the number of databases is not restricted, you can set up a database purely
99  for use by **webtrees** and create a separate user and password for only
100  your genealogy.
101* Internet browser compatibility. **webtrees** supports the use of most
102  current versions of open-source browsers such as Firefox, Chrome, and Safari.
103  We will do our best to support others such as Opera and Internet Explorer,
104  though not their earlier versions. Currently many things do not work well in
105  IE7, and some not in IE8 either. We strongly recommend anyone using these
106  obsolete browsers upgrade as soon as possible. We are also aware that IE
107  provides poor RTL language support generally, so cannot recommend it for
108  sites requiring RTL languages.
109* To view sites that contain both left-to-right and right-to-left text (e.g.
110  English data on Hebrew pages), you will need to use a browser that provides
111  support for the HTML5 **dir="auto"** attribute. At present, Internet Explorer
112  (11 and lower) do not support this.
113* HTML Frames. Note that **webtrees** uses cookies to track login sessions. Sites
114  that make **webtrees** pages available inside an HTML Frames will encounter
115  problems with login for versions 7, 8, and 9 of Internet Explorer. IE users
116  should review the ``Privacy settings Tools`` / ``Internet Options`` for more details.
117
118
119### Installation
120
121Installing **webtrees** is really easy. All you need is a webserver with PHP and
122MySQL. Almost every web hosting service provides these, but be sure to confirm
123that those supplied meet or exceed the minimum system requirements.
124
1251. Download latest stable version from [webtrees.net](http://webtrees.net/)
1262. Unzip the files and upload them to an empty directory on your web server.
1273. Open your web browser and type the URL for your **webtrees** site (for example,
128   [http://www.yourserver.com/webtrees](http://www.yourserver.com/webtrees)) into
129   the address bar.
1304. The **webtrees** setup wizard will start automatically. Simply follow the steps,
131   answering each question as you proceed. (See '''Step Six''' procedure below.)
132
133That's it!
134
135However, before you can use **webtrees**, you need one (or possibly more) GEDCOM
136(family tree) files. If you have been doing your research using a desktop program
137such as Family Tree Maker, you can use it's “save as GEDCOM” function to create
138a GEDCOM file. If you are starting from scratch, then **webtrees** can create a
139GEDCOM file for you. Alternatively, you can import data directly from PhpGedView.
140
141So, after installation, you'll be directed to the GEDCOM (family tree)
142administration page, where you'll need to select one of the following options:
143
144* On successful completion of all steps you will be taken to the GEDCOM (family tree)
145  administration page where you can:
146   * UPLOAD a GEDCOM file from your local machine
147   * ADD a GEDCOM file from your server, (if your GEDCOM file is too large to upload,
148     you can copy it to the webtrees/data folder, and load it from there)
149   * CREATE a new, empty GEDCOM file
150   * TRANSFER your existing PhpGedView data straight into **webtrees**, using the
151     PhpGedView-to-**webtrees** wizard described in section 9 below:
152     [Converting from phpgedview](#converting-from-phpgedview)
153
154There are *lots* of configuration options. You'll probably want to review the
155privacy settings first. Don't worry too much about all the other options - the
156defaults are good for most people. If you get stuck, there's lots of built-in
157help and you can get friendly advice from the [help](http://webtrees.net/forums)
158forum.
159
160
161### Upgrading
162
163Upgrading **webtrees** is quick and easy. It is strongly recommended that you
164upgrade your installation whenever a new version is made available. Even minor
165**webtrees** version updates usually contain a significant number of bug fixes
166as well as interface improvements and program enhancements. The Administration
167page of your **webtrees** installation will display a notification whenever a
168new version is available.
169
1701. Now would be a good time to make a [backup](#backup).
1712. Download the latest version of **webtrees** available from
172   [webtrees.net](http://webtrees.net/)
1733. While you are in the middle of uploading the new files,
174   a visitor to your site would encounter a mixture of new and old files.  This
175   could cause unpredictable behaviour or errors.  To prevent this, create the
176   file **data/offline.txt**.  While this file exists, visitors will see a
177   “site unavailable - come back later” message.
1784. Unzip the .ZIP file, and upload the files to your web server, overwriting the existing files.
1795. Delete the file **data/offline.txt**
180
181
182#### Note for Macintosh users
183
184Step 4 assumes you are using a copy tool that **merges** directories rather than
185replaces them. (**Merge** is standard behaviour on Windows and Linux.) If you use
186the Macintosh Finder or other similar tool to perform step 3, it will **replace**
187your configuration, media and other directories with the empty/default ones from
188the installation. This would be very bad (but you did take a backup in step 1,
189didn't you!). Further details and recommendations for suitable tools can be found
190by searching [google.com](http://google.com).
191
192
193#### Note for anyone using custom code (modules, themes, etc.).
194
195It is **very likely** that your custom code will not work when you upgrade
196**webtrees**.
197
198**We recommend that you disable all custom code before you apply the upgrade.**
199
200Disable custom modules, switch over to a standard
201theme, and remove any code “hacks”. Once the upgrade is complete and you are satisfied
202your site is fully operational contact the source of those modules or themes for
203a new version.
204
205
206#### General note
207
208Depending on the changes in the new files, your browser configuration
209and possibly other factors, it is always wise to clear both the **webtrees** cache
210and your browser cache immediately after the upgrade is completed. The **webtrees**
211cache can be cleared simply by going to ``Administration`` ->
212``Cleanup data directory`` and deleting the cache.
213
214If you have any problems or questions, help is available on the
215[webtrees forum](http://webtrees.net/forums).
216
217
218### Gedcom (family tree) files
219
220When you ADD, IMPORT or UPLOAD a family tree (GEDCOM) file in **webtrees** the
221data from the file is all transferred to the database tables. The file itself is
222no longer used or required by **webtrees**
223
224* If you use ADD or IMPORT, your file remains in the webtrees/data folder you
225  first copied it to, and will not be changed by any subsequent editing of the
226  **webtrees** data.
227* If you use UPLOAD, the file is left in its original location, and again remains
228  untouched.
229
230When or if you change your genealogy data outside of **webtrees**, it is not
231necessary to delete your GEDCOM file or database from **webtrees** and start
232over. Follow these steps to update a GEDCOM that has already been imported:
233
234* Decide if you want to IMPORT or UPLOAD your new GEDCOM file.
235   * Use UPLOAD if your family tree file is smaller than your server's PHP file
236     upload limit (often 2MB).The new file can have any name you choose.
237   * Use IMPORT for larger files. In this case you need to use FTP to first copy
238     your file to the webtrees/data folder. Either copy over the existing file,
239     or use a different name.
240* From the Administration page, go to your **webtrees** Family trees (GEDCOM)
241  configuration page. On the line  relating to this particular family tree (GEDCOM)
242  file (or a new one) click either IMPORT or UPLOAD.
243* Take careful note of the media items option (_“If you have created media objects
244  in **webtrees**, and have edited your data off-line using software that
245  deletes media objects, then tick this box to merge the current media objects
246  with the new GEDCOM.”_) In most cases you should leave this box **UNCHECKED**.
247* Click “SAVE”. **webtrees** will validate the GEDCOM again before importing.
248  During this process, **webtrees** copies your entire family tree (GEDCOM file)
249  to a 'chunk' table within your database. Depending on the coding of your file,
250  its file size and the capabilities of your server and the supporting software,
251  this may take some time. **No progress bar will show while the data is being
252  copied** and should you navigate away from this page, the process is suspended.
253  It will start again when you return to the Family Tree management page.
254
255
256#### FORMAT
257
258Every Family History program has its own method of creating GEDCOM files, and
259differing output format options to select from. **webtrees'** import routines
260can read many different formats, but not necessarily all. If your software has
261a “UTF8” option you should always use that. However, **webtrees** has been
262tested with these alternative formats:
263
264* ANSI
265   * imports OK, but is slow due to the translation into UTF8 as part
266     of the import process.
267* MAC
268   * imports OK, but is slow due to the translation into UTF8 as part
269     of the import process.
270* DOS
271   * imports OK, but is slow due to the translation into UTF8 as part
272     of the import process.
273* ANSEL
274   * currently will not import. Gives warning *Error: cannot convert
275     GEDCOM file from ANSEL encoding to UTF-8 encoding*. Later releases
276     of **webtrees** may include translation from ANSEL to UTF8, but this
277     is not a simple process.
278
279
280### Security
281
282**Security** in _webtrees_ means ensuring your site is safe from unwanted
283intrusions, hacking, or access to data and configuration files. The developers
284of _webtrees_ regard security as an extremely important part of its development
285and have made every attempt to ensure your data is safe.
286
287The area most at risk of intrusion would be the /data folder that contains your
288config.ini.php file, and various temporary files. If you are concerned there
289may be a risk there is a very simple test you can do: try to fetch **config.ini.php**
290by typing **http://_url to your site_/data/config.ini.php** in your web
291browser.
292
293The most likely result is an “access denied” message like this:
294
295    Forbidden
296
297    You don't have permission to access /data/xxxx.ged on this server.
298
299This indicates that the protection built into **webtrees** is working, and no
300further action is required.
301
302In the unlikely event you do fetch the file (you will just see a semicolon),
303then that protection is not working on your site and you should take some further
304action.
305
306If your server runs PHP in CGI mode, then change the permission of the /data
307directory to 700 instead of 777. This will block access to the httpd process,
308while still allowing access to PHP scripts.
309
310This will work for perhaps 99% of all users. Only the remaining 1% should consider
311the most complex solution, moving the /data/ directory out of accessible web
312space. (**_Note:_** In many shared hosting environments this is not an option anyway.)
313
314If you do find it necessary, following is an example of the process required:
315
316If your home directory is something like **/home/username**,
317and the root directory for your web site is **/home/username/public_html**,
318and you have installed **webtrees** in the **public_html/webtrees** directory,
319then you would create a new **data** folder in your home directory at the same
320level as your public_html directory, such as **/home/username/private/data**,
321and place your GEDCOM (family tree) file there.
322
323Then change the **Data file directory** setting on the ``Admin`` ->
324``Site Administration`` page from the default **data/** to the new
325location **/home/username/private/data**
326
327You will have **two** data directories:
328
329* [path to webtrees]/data - just needs to contain config.ini.php
330* /home/username/private/data - contains everything else
331
332
333#### Hypertext Transfer Protocol Secure (HTTPS)
334
335**webtrees** supports https access. If your website is configured with mandatory
336or optional https support **webtrees** will operate correctly in either mode.
337
338If your website is configured with optional https support, **webtrees** can be
339configured to switch to https at login. To enable https at login, set the Login
340URL setting on the ``Admin`` -> ``Site Administration`` ->
341``Configuration page`` to your https login URL, which is often in the form
342[https://example.com/admin.php](https://example.com/admin.php)
343(substitute your domain for example.com).
344
345**Warning:** Misconfiguration can disable your login links. If this occurs,
346access the login by typing the correct URL directly into your browser's address input.
347
348
349### Backup
350
351Backups are good. Whatever problem you have, it can always be fixed from a good
352backup.
353
354To make a backup of webtrees, you need to make a copy of the following
355
3561. The files in the *webtrees/data* directory.
3572. The files in the *webtrees/media* directory.
3583. The tables in the database. Freely available tools such as
359   [phpMyAdmin](http://www.phpmyadmin.net) allow you to do this in one click.
360
361Remember that most web hosting services do NOT backup your data, and this is
362your responsibility.
363
364
365### Converting from phpgedview
366
367If you are moving to **webtrees** from an existing PhpGedView setup, and
368your PhpGedView install meets certain requirements, **webtrees** has provided a “wizard”
369to help make the transfer of the majority of your data a relatively quick and
370painless operation. See exceptions noted below. Please note that we have designed
371this wizard so as to not disturb your existing PhpGedView installation, leaving all those
372settings, data and your website intact and fully functional.
373
374The requirements are:
375
376* The PhpGedView database and index directory must be on the same server as **webtrees**.
377* Your **webtrees** MySQL database username and password must either be the same
378  as your PhpGedView username and password, or if you created a new user for **webtrees**,
379  that new user must also have full privileges to access your PhpGedView database.
380* PhpGedView must be at least versions 4.2.3 or 4.2.4 (this corresponds to an internal
381  “PGV_SCHEMA_VERSION” of between 10 and 14).  Newer versions, including the current
382  version 4.3 SVN work (as of JAN 2013) also currently, and later versions, should
383  they be released, will probably work, provided the data structures do not change;
384* All changes in PhpGedView must be accepted (as pending edits will not be transfered).
385* All existing PhpGedView users must have an email address, and it must be unique to that
386  user (PhpGedView allows users to delete their email address, or have the same email
387  address as other users;  **webtrees** requires that all users have their own
388  unique email address).
389* The wizard transfer process overwrites the username and password you may have
390  entered in setting up the initial admin account. The main administration user
391  name and password in **webtrees** will be identical to the admin user name and
392  password from PhpGedView after running the wizard. Once done, you can change it back
393  if desired.
394
395
396#### Warning
397
398Please read the [https://wiki.webtrees.net/en/Converting_from_PhpGedView](https://wiki.webtrees.net/en/Converting_from_PhpGedView)
399before doing a transfer as important pre-processing steps and known issues may
400be outlined there.
401
402
403#### Important Note
404
405This transfer wizard is not able to assist with moving media items.  You will need
406to set up and move or copy your media configuration and objects separately after
407the transfer wizard is finished. If you use the media firewall in PhpGedView with a
408directory outside the PhpGedView root, then duplicating the media configuration in
409**webtrees** to use the same firewall directory should make your media available
410in **webtrees**.
411
412After the transfer is complete, you should check your family tree configuration
413and privacy settings. Due to differences in internal data formats, the following
414settings are not yet transfered: custom privacy restrictions, block configuration,
415FAQs, and HTML blocks.  We hope to add these to the wizard in a future release.
416
417
418#### Custom privacy restrictions, block configuration, FAQs and HTML blocks
419
420We hope to add these to the wizard in a future release. Otherwise, read the
421[https://wiki.webtrees.net/en/Converting_from_PhpGedView](https://wiki.webtrees.net/en/Converting_from_PhpGedView)
422before reporting a problem in the forum.
423
424The transfer wizard is accessed in **webtrees** from the bottom of the
425“Manage family trees” page to which you will be automatically directed once you
426have completed the initial **webtrees** installation steps (section 4 above:
427[installation](#installation)). This option is only available on a new,
428empty **webtrees** installation; once you have created a GEDCOM (family tree)
429or added user accounts, it will no longer be available.
430