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