Magento 2.1 installation issues

I’ve been recently trying to install the latest Magento and was experiencing some issues with Magento installer unable to detect PHP version. My message was pretty weird:

Your PHP version is . The required PHP version is

also found couple 500 errors in XHR requests.

After googling for a while, I found simple solution for my problem. Apparently Magento expects SSL by default, and it was looking for path to certificates folders. You can easily disable it by modifying composer.json by modifying this section:

 "config": {
    "use-include-path": true,
    "disable-tls": true
    },

After that change installation process run smoothly without any issues.