WP Installer Redirects to /wp-admin/core/install.php

I had the same issue when I was trying to install WordPress on VM configured on my laptop. The VM IP was 192.168.1.101 and the database host configured in wp-config.php was ‘localhost’ but I changed that to the actual IP and added privileges in MySQL to access the database from said IP.