Install MySQL
sudo apt install mysql-server
sudo mysql
create user 'webtrees'@'localhost' identified by 'webtrees12345';
create database WEBTREES character set UTF8;
grant all privileges on WEBTREES.* to 'webtrees'@'localhost';
exit
Test DB – login with user webtrees
mysql -u webtrees --password=webtrees12345
Install Apache
sudo apt install apache2 sudo apt install php7.2 libapache2-mod-php7.2 php-mysql sudo apt install php-curl php-json php-cgi sudo apt-get install php7.2-gd sudo apt-get install php-xml sudo /etc/init.d/apache2 restart
Import DB
mysql -u webtrees -p WEBTREES < webtrees-backup.sql
Add USERNAME to EDIT FOLDER
sudo chown -R USERNAME /var/www/html sudo chmod 777 /var/www/html/webtrees/data/
Copy webtrees files to server
Update permissions on data folder
sudo chmod 777 /var/www/html/webtrees/data/ sudo chown -R USERNAME /var/www/html/webtrees/data/media/
Edit PHP.ini
sudo nano /etc/php/7.2/apache2/php.ini
Update max wait and file size
post_max_size = 30M upload_max_filesize = 30M memory_limit = 128M max_execution_time = 30