From my backups found an old website, which have been unused since 2017. Just for testing I had to make a database and user and the import raw database via command line for that user.
After that I deleded wp-config.php
file and run (re) installer, which made a new wp-config.php
file.
I also had to edit wp-config.php
file for converting the site address
https://codex.wordpress.org/Changing_The_Site_URL
After that wp-login.php
worked, but I had forgotten user password, so I had to reset the password via phpMyAdmin.
https://www.wpbeginner.com/beginners-guide/how-to-reset-a-wordpress-password-from-phpmyadmin/
An another tutorial can be found from https://codex.wordpress.org/Resetting_Your_Password also
After resetting the password I was able to log in and the site worked. I disabled all plugins and installed default Twenty Ten WP Theme
https://codex.wordpress.org/WordPress_Default_Themes
Site worked sill, but when I upgraded WP to the version 5.0.2 by copying wp-admin
and wp-includes
folders over the old ones, admin dasboard worked, but site got a grey or white death, depending on theme, so I downgraded WP to the version 4.7, and site worked again.
https://wordpress.org/download/releases/
Just out of curiosity, what causes these grey or white deaths?