How to install webtrees on Linuxmint 18.03

To install webtrees on Linuxmint 18.03
Web trees is a free open source web-based genealogy application intended for collaborative use. It is written in PHP and uses a MySQL database. In this tutorial, we will cover the installation of webtrees on linuxmint 18.03.


Prerequisites
Install LAMP (Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user)

Php installation with required following modules

add-apt-repository ppa:ondrej/php 
apt-get update 
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0  php7.0-common 
php7.0-xmlrpc php7.0-soap  php7.0-xml php7.0-intl  php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Installation

Download a Webtrees package on terminal using the wget command.

linuxhelp ~ # wget https://launchpadlibrarian.net/299751140/webtrees-1.7.9.zip
--2018-07-10 15:28:53--  https://launchpadlibrarian.net/299751140/webtrees-1.7.9.zip
Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 91.189.89.228, 91.189.89.229
Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|91.189.89.228|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32308411 (31M) [application/zip]
Saving to: ‘ webtrees-1.7.9.zip’ 

webtrees-1.7.9.zip         100%[========================================> ]  30.81M   702KB/s    in 53s     

2018-07-10 15:29:47 (590 KB/s) - ‘ webtrees-1.7.9.zip’  saved [32308411/32308411]

After Downloading extract the downloaded package

linuxhelp ~ # unzip webtrees-1.7.9.zip 
Archive:  webtrees-1.7.9.zip
   creating: webtrees/
  inflating: webtrees/action.php     
  inflating: webtrees/addmedia.php   
  inflating: webtrees/admin.php      
  inflating: webtrees/admin_media.php  
  inflating: webtrees/admin_media_upload.php  
  inflating: webtrees/admin_module_blocks.php  
  inflating: webtrees/admin_module_charts.php  
.
.
.
  inflating: webtrees/vendor/tecnickcom/tcpdf/tcpdf_barcodes_2d.php  
  inflating: webtrees/vendor/tecnickcom/tcpdf/tcpdf_import.php  
  inflating: webtrees/vendor/tecnickcom/tcpdf/tcpdf_parser.php  
   creating: webtrees/vendor/tecnickcom/tcpdf/tools/
 extracting: webtrees/vendor/tecnickcom/tcpdf/tools/.htaccess  
  inflating: webtrees/vendor/tecnickcom/tcpdf/tools/convert_fonts_examples.txt  
  inflating: webtrees/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php

Change ownership and permission of the webtrees follows

linuxhelp ~ # ls
webtrees  webtrees-1.7.9.zip
linuxhelp ~ # chown -R www-data:www-data webtrees
linuxhelp ~ # chmod -R 775 webtrees

Navigate to the apache document root directory

linuxhelp ~ # mv webtrees /var/www/html/

Create a new virtual host configuration for accessing the webtrees.

linuxhelp ~ # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim web.conf
< VirtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/html/webtrees/
< Directory /var/www/html/webtrees/> 
AllowOverride All
Allow from all
< /Directory> 
< /virtualHost> 

Enable site access

linuxhelp sites-available # a2ensite web.conf 
Enabling site web.
To activate the new configuration, you need to run:
  service apache2 reload

Make an entry to the host file as follows

linuxhelp sites-available # vim /etc/hosts
< Give your ip >   < Give your domain name> 

Restart the apache service.

linuxhelp sites-available # systemctl restart apache2.service

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://< ipaddress or domain name

Verify the installation of webtrees as shown below

Configure the Database setup as follows

Configure the Admin user account setup

Login page of webtrees.

After the Successful login, you will see the Admin dashboard of webtrees as shown below

With this, the method to install webtrees on linuxmint 18.03 comes to an end.

FAQ
Q
What are the pre-requirements in webtrees?
A
Install LAMP (Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user)
Q
how to enable the rewrite modules?
A
By using the following command:
# a2enmod rewrite
Q
Is the GEDCOM Check module from PGV available in webtrees?
A
No. Instead the administration page has a ‘check for errors’ option. This will search for problems with the structure of your data, such as broken links and missing records.
Q
What is webtrees?
A
Web trees is a free open source web-based genealogy application intended for collaborative use. It is written in PHP and uses a MySQL database.
Q
How to run the transfer wizard again?
A
The transfer wizard should only need to be run once, and therefore once it is completed, the link to it no longer appears. But if something goes wrong and you do need to re-run it, then it is