xref: /webtrees/README.md (revision 27c4cda0cb98970e86f55c22a8248833b6cf40d9)
16b5264c5SGreg Roach[![Latest Stable Version](https://poser.pugx.org/fisharebest/webtrees/v/stable.svg)](https://packagist.org/packages/fisharebest/webtrees)
2a592e1c1SGreg Roach[![Build Status](https://travis-ci.org/fisharebest/webtrees.svg?branch=master)](https://travis-ci.org/fisharebest/webtrees)
3ad92d32aSGreg Roach[![Coverage Status](https://coveralls.io/repos/github/fisharebest/webtrees/badge.svg?branch=master)](https://coveralls.io/github/fisharebest/webtrees?branch=master)
4e00de034SGreg Roach[![Translation status](https://translate.webtrees.net/widgets/webtrees/-/svg-badge.svg)](https://translate.webtrees.net/engage/webtrees/?utm_source=widget)
5e48069ebSGreg Roach[![SensioLabsInsight](https://insight.sensiolabs.com/projects/78a5ba19-7ddf-4a58-8262-1c8a149f38de/mini.png)](https://insight.sensiolabs.com/projects/78a5ba19-7ddf-4a58-8262-1c8a149f38de)
6c9b50c59SGreg Roach[![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)
782f63a0eSGreg Roach[![Code Climate](https://codeclimate.com/github/fisharebest/webtrees/badges/gpa.svg)](https://codeclimate.com/github/fisharebest/webtrees)
83344c7f9SGreg Roach
9fac25c68SRico Sonntag# webtrees
10fac25c68SRico Sonntag
11e00de034SGreg RoachThe project’s website is [www.webtrees.net](https://www.webtrees.net).
1287f36d93SGreg RoachFurther documentation is available at [wiki.webtrees.net](https://wiki.webtrees.net) and [webtrees.github.io](https://webtrees.github.io).
13b4ef7f82SRico Sonntag
14fac25c68SRico Sonntag## Contents
15fac25c68SRico Sonntag
16fac25c68SRico Sonntag* [License](#license)
17fac25c68SRico Sonntag* [Introduction](#introduction)
1826a22ad2SJustCarmen* [System requirements](#system-requirements)
19fac25c68SRico Sonntag* [Installation](#installation)
20fac25c68SRico Sonntag* [Upgrading](#upgrading)
2126a22ad2SJustCarmen* [Gedcom (family tree) files](#gedcom-family-tree-files)
22fac25c68SRico Sonntag* [Security](#security)
23fac25c68SRico Sonntag* [Backup](#backup)
2426a22ad2SJustCarmen* [Converting from phpgedview](#converting-from-phpgedview)
25fac25c68SRico Sonntag
26b4ef7f82SRico Sonntag
2726a22ad2SJustCarmen### License
28fac25c68SRico Sonntag
29a25f0a04SGreg Roach* **webtrees: online genealogy**
306bdf7674SGreg Roach* Copyright (C) 2017 webtrees development team
31fac25c68SRico Sonntag
32a25f0a04SGreg RoachThis program is free software: you can redistribute it and/or modify
33a25f0a04SGreg Roachit under the terms of the GNU General Public License as published by
34a25f0a04SGreg Roachthe Free Software Foundation, either version 3 of the License, or
35a25f0a04SGreg Roach(at your option) any later version.
36fac25c68SRico Sonntag
37a25f0a04SGreg RoachThis program is distributed in the hope that it will be useful,
38a25f0a04SGreg Roachbut WITHOUT ANY WARRANTY; without even the implied warranty of
39a25f0a04SGreg RoachMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40a25f0a04SGreg RoachGNU General Public License for more details.
41fac25c68SRico Sonntag
42a25f0a04SGreg RoachYou should have received a copy of the GNU General Public License
43a25f0a04SGreg Roachalong with this program. If not, see <http://www.gnu.org/licenses/>.
44fac25c68SRico Sonntag
45fac25c68SRico Sonntag
4626a22ad2SJustCarmen### Introduction
47fac25c68SRico Sonntag
48fac25c68SRico Sonntag**webtrees** is the web's leading online collaborative genealogy application.
49fac25c68SRico Sonntag
50fac25c68SRico Sonntag* It works from standard GEDCOM files, and is therefore compatible with every
51fac25c68SRico Sonntagmajor desktop application.
52fac25c68SRico Sonntag* It aims to to be efficient and effective by using the right combination of
53fac25c68SRico Sonntagthird-party tools, design techniques and open standards.
54fac25c68SRico Sonntag
55fac25c68SRico Sonntag**webtrees** allows you to view and edit your genealogy on your website. It has
56e667f3d4SGreg Roachfull editing capabilities, full privacy functions, and supports imedia such as
57fac25c68SRico Sonntagphotos and document images. As an online program, it fosters extended family
58fac25c68SRico Sonntagparticipation and good ancestral recording habits, as it simplifies the process
59fac25c68SRico Sonntagof collaborating with others working on your family lines. Your latest information
60fac25c68SRico Sonntagis always on your web site and available for others to see, defined by viewing
61fac25c68SRico Sonntagrules you set. For more information and to see working demos, visit
62cdc90107SGreg Roach[webtrees.net](https://webtrees.net/).
63fac25c68SRico Sonntag
64fac25c68SRico Sonntag**webtrees** is Open Source software that has been produced by people from many
65fac25c68SRico Sonntagcountries freely donating their time and talents to the project. All service,
66fac25c68SRico Sonntagsupport, and future development is dependent on the time developers are willing
67fac25c68SRico Sonntagto donate to the project, often at the expense of work, recreation, and family.
68fac25c68SRico SonntagBeyond the few donations received from users, developers receive no compensation
69fac25c68SRico Sonntagfor the time they spend working on the project. There is also no outside source
70fac25c68SRico Sonntagof revenue to support the project. Please consider these circumstances when
71fac25c68SRico Sonntagmaking support requests and consider volunteering your own time and skills to make
72fac25c68SRico Sonntagthe project even stronger and better.
73fac25c68SRico Sonntag
74fac25c68SRico Sonntag
7526a22ad2SJustCarmen### System requirements
76fac25c68SRico Sonntag
77fac25c68SRico SonntagTo install **webtrees**, you need:
78fac25c68SRico Sonntag
79fac25c68SRico Sonntag* A webserver. Apache and IIS are the most common types. There are no requirements
80fac25c68SRico Sonntag  to use a specific type or version.
81fac25c68SRico Sonntag* Approximately 65MB of disk space for the application files, plus whatever is
82e667f3d4SGreg Roach  needed for your media files, GEDCOM files and database.
832118c0e3SGreg Roach* PHP 5.6 or later.  Servers with PHP 5.3 - 5.5 should use webtrees 1.7.  Servers with PHP 5.2 should use webtrees 1.4.
84fac25c68SRico Sonntag   * PHP should be configured with the PHP/PDO library for MySQL. This is a
85fac25c68SRico Sonntag     server configuration option. It is enabled by default on most hosts.
86fac25c68SRico Sonntag     See [http://php.net/pdo](http://php.net/pdo)
87fac25c68SRico Sonntag   * PHP should be configured to allow sufficient server resources (memory and
88fac25c68SRico Sonntag     execution time) for the size of your system. Typical requirements are:
89e667f3d4SGreg Roach      * Small systems (500 individuals): 16–32 MB, 10–20 seconds
90e667f3d4SGreg Roach      * Medium systems (5,000 individuals): 32–64 MB, 20–40 seconds
91e667f3d4SGreg Roach      * Large systems (50,000 individuals): 64–128 MB, 40–80 seconds
92fac25c68SRico Sonntag* MySQL 5.0.13 or later. Note that **webtrees** can share a single database
93fac25c68SRico Sonntag  with other applications, by choosing a unique table prefix during configuration.
94fac25c68SRico Sonntag  If the number of databases is not restricted, you can set up a database purely
95fac25c68SRico Sonntag  for use by **webtrees** and create a separate user and password for only
96fac25c68SRico Sonntag  your genealogy.
97e667f3d4SGreg Roach* Internet browser compatibility. **webtrees** supports the use of most
98fac25c68SRico Sonntag  current versions of open-source browsers such as Firefox, Chrome, and Safari.
99fac25c68SRico Sonntag  We will do our best to support others such as Opera and Internet Explorer,
100fac25c68SRico Sonntag  though not their earlier versions. Currently many things do not work well in
101fac25c68SRico Sonntag  IE7, and some not in IE8 either. We strongly recommend anyone using these
102da644f9cSMatthew Noorenberghe  obsolete browsers upgrade as soon as possible. We are also aware that IE
103da644f9cSMatthew Noorenberghe  provides poor RTL language support generally, so cannot recommend it for
104da644f9cSMatthew Noorenberghe  sites requiring RTL languages.
105fac25c68SRico Sonntag* To view sites that contain both left-to-right and right-to-left text (e.g.
106fac25c68SRico Sonntag  English data on Hebrew pages), you will need to use a browser that provides
107da644f9cSMatthew Noorenberghe  support for the HTML5 **dir="auto"** attribute. At present, Internet Explorer
108da644f9cSMatthew Noorenberghe  (11 and lower) do not support this.
109fac25c68SRico Sonntag* HTML Frames. Note that **webtrees** uses cookies to track login sessions. Sites
110fac25c68SRico Sonntag  that make **webtrees** pages available inside an HTML Frames will encounter
111fac25c68SRico Sonntag  problems with login for versions 7, 8, and 9 of Internet Explorer. IE users
112fac25c68SRico Sonntag  should review the ``Privacy settings Tools`` / ``Internet Options`` for more details.
113fac25c68SRico Sonntag
114fac25c68SRico Sonntag
11526a22ad2SJustCarmen### Installation
116fac25c68SRico Sonntag
117fac25c68SRico SonntagInstalling **webtrees** is really easy. All you need is a webserver with PHP and
118fac25c68SRico SonntagMySQL. Almost every web hosting service provides these, but be sure to confirm
119fac25c68SRico Sonntagthat those supplied meet or exceed the minimum system requirements.
120fac25c68SRico Sonntag
121cdc90107SGreg Roach1. Download latest stable version from [webtrees.net](https://webtrees.net/)
122fac25c68SRico Sonntag2. Unzip the files and upload them to an empty directory on your web server.
123fac25c68SRico Sonntag3. Open your web browser and type the URL for your **webtrees** site (for example,
124fac25c68SRico Sonntag   [http://www.yourserver.com/webtrees](http://www.yourserver.com/webtrees)) into
125fac25c68SRico Sonntag   the address bar.
126fac25c68SRico Sonntag4. The **webtrees** setup wizard will start automatically. Simply follow the steps,
127fac25c68SRico Sonntag   answering each question as you proceed. (See '''Step Six''' procedure below.)
128fac25c68SRico Sonntag
129fac25c68SRico SonntagThat's it!
130fac25c68SRico Sonntag
131fac25c68SRico SonntagHowever, before you can use **webtrees**, you need one (or possibly more) GEDCOM
132fac25c68SRico Sonntag(family tree) files. If you have been doing your research using a desktop program
133243bf6b4SGreg Roachsuch as Family Tree Maker, you can use it's “save as GEDCOM” function to create
134fac25c68SRico Sonntaga GEDCOM file. If you are starting from scratch, then **webtrees** can create a
135fac25c68SRico SonntagGEDCOM file for you. Alternatively, you can import data directly from PhpGedView.
136fac25c68SRico Sonntag
137fac25c68SRico SonntagSo, after installation, you'll be directed to the GEDCOM (family tree)
138fac25c68SRico Sonntagadministration page, where you'll need to select one of the following options:
139fac25c68SRico Sonntag
140fac25c68SRico Sonntag* On successful completion of all steps you will be taken to the GEDCOM (family tree)
141fac25c68SRico Sonntag  administration page where you can:
142fac25c68SRico Sonntag   * UPLOAD a GEDCOM file from your local machine
143fac25c68SRico Sonntag   * ADD a GEDCOM file from your server, (if your GEDCOM file is too large to upload,
144fac25c68SRico Sonntag     you can copy it to the webtrees/data folder, and load it from there)
145fac25c68SRico Sonntag   * CREATE a new, empty GEDCOM file
146316142c6SGreg Roach   * TRANSFER your existing PhpGedView data straight into **webtrees**, using the
147316142c6SGreg Roach     PhpGedView-to-**webtrees** wizard described in section 9 below:
1481ad46916SMatthew Noorenberghe     [Converting from phpgedview](#converting-from-phpgedview)
149fac25c68SRico Sonntag
150fac25c68SRico SonntagThere are *lots* of configuration options. You'll probably want to review the
151fac25c68SRico Sonntagprivacy settings first. Don't worry too much about all the other options - the
152fac25c68SRico Sonntagdefaults are good for most people. If you get stuck, there's lots of built-in
153cdc90107SGreg Roachhelp and you can get friendly advice from the [help](https://webtrees.net/forums)
154fac25c68SRico Sonntagforum.
155fac25c68SRico Sonntag
156fac25c68SRico Sonntag
15726a22ad2SJustCarmen### Upgrading
158b4ef7f82SRico Sonntag
159fac25c68SRico SonntagUpgrading **webtrees** is quick and easy. It is strongly recommended that you
160fac25c68SRico Sonntagupgrade your installation whenever a new version is made available. Even minor
161fac25c68SRico Sonntag**webtrees** version updates usually contain a significant number of bug fixes
162fac25c68SRico Sonntagas well as interface improvements and program enhancements. The Administration
163fac25c68SRico Sonntagpage of your **webtrees** installation will display a notification whenever a
164fac25c68SRico Sonntagnew version is available.
165fac25c68SRico Sonntag
166fac25c68SRico Sonntag1. Now would be a good time to make a [backup](#backup).
167fac25c68SRico Sonntag2. Download the latest version of **webtrees** available from
168cdc90107SGreg Roach   [webtrees.net](https://webtrees.net/)
169243bf6b4SGreg Roach3. While you are in the middle of uploading the new files,
170fac25c68SRico Sonntag   a visitor to your site would encounter a mixture of new and old files.  This
171fac25c68SRico Sonntag   could cause unpredictable behaviour or errors.  To prevent this, create the
172fac25c68SRico Sonntag   file **data/offline.txt**.  While this file exists, visitors will see a
173243bf6b4SGreg Roach   “site unavailable - come back later” message.
174fac25c68SRico Sonntag4. Unzip the .ZIP file, and upload the files to your web server, overwriting the existing files.
175fac25c68SRico Sonntag5. Delete the file **data/offline.txt**
176fac25c68SRico Sonntag
177*27c4cda0SGreg Roach### Building and developing
178*27c4cda0SGreg Roach
179*27c4cda0SGreg RoachIf you want to build webtrees from source, or modify the code, you'll need to install
180*27c4cda0SGreg Roacha couple of tools first.
181*27c4cda0SGreg Roach
182*27c4cda0SGreg RoachYou will need [composer](https://getcomposer.org/) to install the PHP dependencies.
183*27c4cda0SGreg RoachThen run this command::
184*27c4cda0SGreg Roach
185*27c4cda0SGreg Roach* php composer.phar install
186*27c4cda0SGreg Roach
187*27c4cda0SGreg RoachYou will need [npm](https://www.npmjs.com/get-npm) to install the Javascript dependencies.
188*27c4cda0SGreg RoachThen run the commands:
189*27c4cda0SGreg Roach
190*27c4cda0SGreg Roach* npm install
191*27c4cda0SGreg Roach* npm run prod
192*27c4cda0SGreg Roach
193*27c4cda0SGreg RoachYou will need to re-run the second of these any time you modify the file `webtrees.js`.
194*27c4cda0SGreg Roach
195fac25c68SRico Sonntag
196fac25c68SRico Sonntag#### Note for Macintosh users
197b4ef7f82SRico Sonntag
198fac25c68SRico SonntagStep 4 assumes you are using a copy tool that **merges** directories rather than
199fac25c68SRico Sonntagreplaces them. (**Merge** is standard behaviour on Windows and Linux.) If you use
200fac25c68SRico Sonntagthe Macintosh Finder or other similar tool to perform step 3, it will **replace**
201fac25c68SRico Sonntagyour configuration, media and other directories with the empty/default ones from
202fac25c68SRico Sonntagthe installation. This would be very bad (but you did take a backup in step 1,
203fac25c68SRico Sonntagdidn't you!). Further details and recommendations for suitable tools can be found
204fac25c68SRico Sonntagby searching [google.com](http://google.com).
205fac25c68SRico Sonntag
206fac25c68SRico Sonntag
207fac25c68SRico Sonntag#### Note for anyone using custom code (modules, themes, etc.).
208b4ef7f82SRico Sonntag
209fac25c68SRico SonntagIt is **very likely** that your custom code will not work when you upgrade
210fac25c68SRico Sonntag**webtrees**.
211fac25c68SRico Sonntag
212fac25c68SRico Sonntag**We recommend that you disable all custom code before you apply the upgrade.**
213fac25c68SRico Sonntag
214fac25c68SRico SonntagDisable custom modules, switch over to a standard
215243bf6b4SGreg Roachtheme, and remove any code “hacks”. Once the upgrade is complete and you are satisfied
216fac25c68SRico Sonntagyour site is fully operational contact the source of those modules or themes for
217fac25c68SRico Sonntaga new version.
218fac25c68SRico Sonntag
219fac25c68SRico Sonntag
220fac25c68SRico Sonntag#### General note
221b4ef7f82SRico Sonntag
222fac25c68SRico SonntagDepending on the changes in the new files, your browser configuration
223fac25c68SRico Sonntagand possibly other factors, it is always wise to clear both the **webtrees** cache
224fac25c68SRico Sonntagand your browser cache immediately after the upgrade is completed. The **webtrees**
225fac25c68SRico Sonntagcache can be cleared simply by going to ``Administration`` ->
226fac25c68SRico Sonntag``Cleanup data directory`` and deleting the cache.
227fac25c68SRico Sonntag
228fac25c68SRico SonntagIf you have any problems or questions, help is available on the
2294e53541cSKirill Uksusov[webtrees forum](https://www.webtrees.net/index.php/en/forum).
230fac25c68SRico Sonntag
231fac25c68SRico Sonntag
23226a22ad2SJustCarmen### Gedcom (family tree) files
233fac25c68SRico Sonntag
234fac25c68SRico SonntagWhen you ADD, IMPORT or UPLOAD a family tree (GEDCOM) file in **webtrees** the
235fac25c68SRico Sonntagdata from the file is all transferred to the database tables. The file itself is
236fac25c68SRico Sonntagno longer used or required by **webtrees**
237fac25c68SRico Sonntag
238fac25c68SRico Sonntag* If you use ADD or IMPORT, your file remains in the webtrees/data folder you
239fac25c68SRico Sonntag  first copied it to, and will not be changed by any subsequent editing of the
240fac25c68SRico Sonntag  **webtrees** data.
241fac25c68SRico Sonntag* If you use UPLOAD, the file is left in its original location, and again remains
242fac25c68SRico Sonntag  untouched.
243fac25c68SRico Sonntag
244fac25c68SRico SonntagWhen or if you change your genealogy data outside of **webtrees**, it is not
245fac25c68SRico Sonntagnecessary to delete your GEDCOM file or database from **webtrees** and start
246fac25c68SRico Sonntagover. Follow these steps to update a GEDCOM that has already been imported:
247fac25c68SRico Sonntag
248fac25c68SRico Sonntag* Decide if you want to IMPORT or UPLOAD your new GEDCOM file.
249fac25c68SRico Sonntag   * Use UPLOAD if your family tree file is smaller than your server's PHP file
250fac25c68SRico Sonntag     upload limit (often 2MB).The new file can have any name you choose.
251fac25c68SRico Sonntag   * Use IMPORT for larger files. In this case you need to use FTP to first copy
252fac25c68SRico Sonntag     your file to the webtrees/data folder. Either copy over the existing file,
253fac25c68SRico Sonntag     or use a different name.
254fac25c68SRico Sonntag* From the Administration page, go to your **webtrees** Family trees (GEDCOM)
255fac25c68SRico Sonntag  configuration page. On the line  relating to this particular family tree (GEDCOM)
256fac25c68SRico Sonntag  file (or a new one) click either IMPORT or UPLOAD.
257243bf6b4SGreg Roach* Take careful note of the media items option (_“If you have created media objects
258ed1bbedbSGreg Roach  in **webtrees**, and have edited your data off-line using software that
259fac25c68SRico Sonntag  deletes media objects, then tick this box to merge the current media objects
260243bf6b4SGreg Roach  with the new GEDCOM.”_) In most cases you should leave this box **UNCHECKED**.
261243bf6b4SGreg Roach* Click “SAVE”. **webtrees** will validate the GEDCOM again before importing.
262fac25c68SRico Sonntag  During this process, **webtrees** copies your entire family tree (GEDCOM file)
263fac25c68SRico Sonntag  to a 'chunk' table within your database. Depending on the coding of your file,
264fac25c68SRico Sonntag  its file size and the capabilities of your server and the supporting software,
265fac25c68SRico Sonntag  this may take some time. **No progress bar will show while the data is being
266fac25c68SRico Sonntag  copied** and should you navigate away from this page, the process is suspended.
267fac25c68SRico Sonntag  It will start again when you return to the Family Tree management page.
268fac25c68SRico Sonntag
269fac25c68SRico Sonntag
270fac25c68SRico Sonntag#### FORMAT
271fac25c68SRico Sonntag
272fac25c68SRico SonntagEvery Family History program has its own method of creating GEDCOM files, and
273fac25c68SRico Sonntagdiffering output format options to select from. **webtrees'** import routines
274fac25c68SRico Sonntagcan read many different formats, but not necessarily all. If your software has
275243bf6b4SGreg Roacha “UTF8” option you should always use that. However, **webtrees** has been
276fac25c68SRico Sonntagtested with these alternative formats:
277fac25c68SRico Sonntag
278fac25c68SRico Sonntag* ANSI
279fac25c68SRico Sonntag   * imports OK, but is slow due to the translation into UTF8 as part
280fac25c68SRico Sonntag     of the import process.
281fac25c68SRico Sonntag* MAC
282fac25c68SRico Sonntag   * imports OK, but is slow due to the translation into UTF8 as part
283fac25c68SRico Sonntag     of the import process.
284fac25c68SRico Sonntag* DOS
285fac25c68SRico Sonntag   * imports OK, but is slow due to the translation into UTF8 as part
286fac25c68SRico Sonntag     of the import process.
287fac25c68SRico Sonntag* ANSEL
288243bf6b4SGreg Roach   * currently will not import. Gives warning *Error: cannot convert
289243bf6b4SGreg Roach     GEDCOM file from ANSEL encoding to UTF-8 encoding*. Later releases
290fac25c68SRico Sonntag     of **webtrees** may include translation from ANSEL to UTF8, but this
291fac25c68SRico Sonntag     is not a simple process.
292fac25c68SRico Sonntag
293fac25c68SRico Sonntag
29426a22ad2SJustCarmen### Security
295fac25c68SRico Sonntag
296fac25c68SRico Sonntag**Security** in _webtrees_ means ensuring your site is safe from unwanted
297fac25c68SRico Sonntagintrusions, hacking, or access to data and configuration files. The developers
298fac25c68SRico Sonntagof _webtrees_ regard security as an extremely important part of its development
299fac25c68SRico Sonntagand have made every attempt to ensure your data is safe.
300fac25c68SRico Sonntag
301fac25c68SRico SonntagThe area most at risk of intrusion would be the /data folder that contains your
302fac25c68SRico Sonntagconfig.ini.php file, and various temporary files. If you are concerned there
303fac25c68SRico Sonntagmay be a risk there is a very simple test you can do: try to fetch **config.ini.php**
304fac25c68SRico Sonntagby typing **http://_url to your site_/data/config.ini.php** in your web
305fac25c68SRico Sonntagbrowser.
306fac25c68SRico Sonntag
307243bf6b4SGreg RoachThe most likely result is an “access denied” message like this:
308fac25c68SRico Sonntag
309fac25c68SRico Sonntag    Forbidden
310fac25c68SRico Sonntag
311fac25c68SRico Sonntag    You don't have permission to access /data/xxxx.ged on this server.
312fac25c68SRico Sonntag
313fac25c68SRico SonntagThis indicates that the protection built into **webtrees** is working, and no
314fac25c68SRico Sonntagfurther action is required.
315fac25c68SRico Sonntag
316fac25c68SRico SonntagIn the unlikely event you do fetch the file (you will just see a semicolon),
317fac25c68SRico Sonntagthen that protection is not working on your site and you should take some further
318fac25c68SRico Sonntagaction.
319fac25c68SRico Sonntag
320fac25c68SRico SonntagIf your server runs PHP in CGI mode, then change the permission of the /data
321fac25c68SRico Sonntagdirectory to 700 instead of 777. This will block access to the httpd process,
322fac25c68SRico Sonntagwhile still allowing access to PHP scripts.
323fac25c68SRico Sonntag
324fac25c68SRico SonntagThis will work for perhaps 99% of all users. Only the remaining 1% should consider
325fac25c68SRico Sonntagthe most complex solution, moving the /data/ directory out of accessible web
326fac25c68SRico Sonntagspace. (**_Note:_** In many shared hosting environments this is not an option anyway.)
327fac25c68SRico Sonntag
328fac25c68SRico SonntagIf you do find it necessary, following is an example of the process required:
329fac25c68SRico Sonntag
330fac25c68SRico SonntagIf your home directory is something like **/home/username**,
331fac25c68SRico Sonntagand the root directory for your web site is **/home/username/public_html**,
332fac25c68SRico Sonntagand you have installed **webtrees** in the **public_html/webtrees** directory,
333fac25c68SRico Sonntagthen you would create a new **data** folder in your home directory at the same
334fac25c68SRico Sonntaglevel as your public_html directory, such as **/home/username/private/data**,
335fac25c68SRico Sonntagand place your GEDCOM (family tree) file there.
336fac25c68SRico Sonntag
337fac25c68SRico SonntagThen change the **Data file directory** setting on the ``Admin`` ->
338fac25c68SRico Sonntag``Site Administration`` page from the default **data/** to the new
339fac25c68SRico Sonntaglocation **/home/username/private/data**
340fac25c68SRico Sonntag
341fac25c68SRico SonntagYou will have **two** data directories:
342fac25c68SRico Sonntag
343fac25c68SRico Sonntag* [path to webtrees]/data - just needs to contain config.ini.php
344fac25c68SRico Sonntag* /home/username/private/data - contains everything else
345fac25c68SRico Sonntag
346fac25c68SRico Sonntag
347fac25c68SRico Sonntag#### Hypertext Transfer Protocol Secure (HTTPS)
348fac25c68SRico Sonntag
349fac25c68SRico Sonntag**webtrees** supports https access. If your website is configured with mandatory
350fac25c68SRico Sonntagor optional https support **webtrees** will operate correctly in either mode.
351fac25c68SRico Sonntag
352fac25c68SRico SonntagIf your website is configured with optional https support, **webtrees** can be
353fac25c68SRico Sonntagconfigured to switch to https at login. To enable https at login, set the Login
354fac25c68SRico SonntagURL setting on the ``Admin`` -> ``Site Administration`` ->
355fac25c68SRico Sonntag``Configuration page`` to your https login URL, which is often in the form
356fac25c68SRico Sonntag[https://example.com/admin.php](https://example.com/admin.php)
357fac25c68SRico Sonntag(substitute your domain for example.com).
358fac25c68SRico Sonntag
359fac25c68SRico Sonntag**Warning:** Misconfiguration can disable your login links. If this occurs,
360fac25c68SRico Sonntagaccess the login by typing the correct URL directly into your browser's address input.
361fac25c68SRico Sonntag
362fac25c68SRico Sonntag
36326a22ad2SJustCarmen### Backup
364fac25c68SRico Sonntag
365fac25c68SRico SonntagBackups are good. Whatever problem you have, it can always be fixed from a good
366fac25c68SRico Sonntagbackup.
367fac25c68SRico Sonntag
368fac25c68SRico SonntagTo make a backup of webtrees, you need to make a copy of the following
369fac25c68SRico Sonntag
370fac25c68SRico Sonntag1. The files in the *webtrees/data* directory.
371fac25c68SRico Sonntag2. The files in the *webtrees/media* directory.
372fac25c68SRico Sonntag3. The tables in the database. Freely available tools such as
373fac25c68SRico Sonntag   [phpMyAdmin](http://www.phpmyadmin.net) allow you to do this in one click.
374fac25c68SRico Sonntag
375fac25c68SRico SonntagRemember that most web hosting services do NOT backup your data, and this is
376fac25c68SRico Sonntagyour responsibility.
377fac25c68SRico Sonntag
378fac25c68SRico Sonntag
37926a22ad2SJustCarmen### Converting from phpgedview
380fac25c68SRico Sonntag
381316142c6SGreg RoachIf you are moving to **webtrees** from an existing PhpGedView setup, and
382316142c6SGreg Roachyour PhpGedView install meets certain requirements, **webtrees** has provided a “wizard”
383fac25c68SRico Sonntagto help make the transfer of the majority of your data a relatively quick and
384fac25c68SRico Sonntagpainless operation. See exceptions noted below. Please note that we have designed
385316142c6SGreg Roachthis wizard so as to not disturb your existing PhpGedView installation, leaving all those
386fac25c68SRico Sonntagsettings, data and your website intact and fully functional.
387fac25c68SRico Sonntag
388fac25c68SRico SonntagThe requirements are:
389fac25c68SRico Sonntag
390316142c6SGreg Roach* The PhpGedView database and index directory must be on the same server as **webtrees**.
391fac25c68SRico Sonntag* Your **webtrees** MySQL database username and password must either be the same
392316142c6SGreg Roach  as your PhpGedView username and password, or if you created a new user for **webtrees**,
393316142c6SGreg Roach  that new user must also have full privileges to access your PhpGedView database.
394316142c6SGreg Roach* PhpGedView must be at least versions 4.2.3 or 4.2.4 (this corresponds to an internal
395243bf6b4SGreg Roach  “PGV_SCHEMA_VERSION” of between 10 and 14).  Newer versions, including the current
396fac25c68SRico Sonntag  version 4.3 SVN work (as of JAN 2013) also currently, and later versions, should
397fac25c68SRico Sonntag  they be released, will probably work, provided the data structures do not change;
398316142c6SGreg Roach* All changes in PhpGedView must be accepted (as pending edits will not be transfered).
399316142c6SGreg Roach* All existing PhpGedView users must have an email address, and it must be unique to that
400316142c6SGreg Roach  user (PhpGedView allows users to delete their email address, or have the same email
401fac25c68SRico Sonntag  address as other users;  **webtrees** requires that all users have their own
402fac25c68SRico Sonntag  unique email address).
403fac25c68SRico Sonntag* The wizard transfer process overwrites the username and password you may have
404fac25c68SRico Sonntag  entered in setting up the initial admin account. The main administration user
405fac25c68SRico Sonntag  name and password in **webtrees** will be identical to the admin username and
406316142c6SGreg Roach  password from PhpGedView after running the wizard. Once done, you can change it back
407fac25c68SRico Sonntag  if desired.
408fac25c68SRico Sonntag
409b4ef7f82SRico Sonntag
410fac25c68SRico Sonntag#### Warning
411b4ef7f82SRico Sonntag
412e00de034SGreg RoachPlease read the [https://wiki.webtrees.net/en/Converting_from_PhpGedView](https://wiki.webtrees.net/en/Converting_from_PhpGedView)
413fac25c68SRico Sonntagbefore doing a transfer as important pre-processing steps and known issues may
414fac25c68SRico Sonntagbe outlined there.
415fac25c68SRico Sonntag
416b4ef7f82SRico Sonntag
417fac25c68SRico Sonntag#### Important Note
418b4ef7f82SRico Sonntag
419fac25c68SRico SonntagThis transfer wizard is not able to assist with moving media items.  You will need
420fac25c68SRico Sonntagto set up and move or copy your media configuration and objects separately after
421316142c6SGreg Roachthe transfer wizard is finished. If you use the media firewall in PhpGedView with a
422316142c6SGreg Roachdirectory outside the PhpGedView root, then duplicating the media configuration in
423fac25c68SRico Sonntag**webtrees** to use the same firewall directory should make your media available
424fac25c68SRico Sonntagin **webtrees**.
425fac25c68SRico Sonntag
426fac25c68SRico SonntagAfter the transfer is complete, you should check your family tree configuration
427fac25c68SRico Sonntagand privacy settings. Due to differences in internal data formats, the following
428fac25c68SRico Sonntagsettings are not yet transfered: custom privacy restrictions, block configuration,
429fac25c68SRico SonntagFAQs, and HTML blocks.  We hope to add these to the wizard in a future release.
430fac25c68SRico Sonntag
431fac25c68SRico Sonntag
432fac25c68SRico Sonntag#### Custom privacy restrictions, block configuration, FAQs and HTML blocks
433fac25c68SRico Sonntag
434fac25c68SRico SonntagWe hope to add these to the wizard in a future release. Otherwise, read the
435e00de034SGreg Roach[https://wiki.webtrees.net/en/Converting_from_PhpGedView](https://wiki.webtrees.net/en/Converting_from_PhpGedView)
436b654676fSRico Sonntagbefore reporting a problem in the forum.
437fac25c68SRico Sonntag
438fac25c68SRico SonntagThe transfer wizard is accessed in **webtrees** from the bottom of the
439243bf6b4SGreg Roach“Manage family trees” page to which you will be automatically directed once you
440fac25c68SRico Sonntaghave completed the initial **webtrees** installation steps (section 4 above:
441fac25c68SRico Sonntag[installation](#installation)). This option is only available on a new,
442fac25c68SRico Sonntagempty **webtrees** installation; once you have created a GEDCOM (family tree)
443fac25c68SRico Sonntagor added user accounts, it will no longer be available.
444