1) While installing, Set permission level : Basic (no Group Support)
2) Select database server "MySQL 8.x, MariaDB 5.x (ext/mysqli)"
3) Make script where Database ENGINE is InnoDB
4) PHP REQUIREMENT LINK : https://phpmyfaq.readthedocs.io/en/4.0/installation/#php-requirements
5) To check script on localhost uncomment "LoadModule headers_module modules/mod_headers.so" in your http.conf file as it's .htaccess file uses X-Frame-Options which requires mod_headers enabled.
6) We have disabled autoupgrade from 3.2.x to 4.0.x as ajax call in step 3 of autoupgrade fails(Database update step). Check this for 4.0.x to 4.0.x if it works.