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