To install wordpress you should’t open the file. You do it in the browser.
So if you have the files on a server with hosting hosting. type this url in https://example.com/ should bring up a install page what will say there is no configuration yet.
Try the way I just mentioned, If it does not work let me know and I will try to help you work out whats wrong. ??