500 Internal Server Error when installing magento2.2.2

Ok Finally.... here is the process i did follow to get rid from this.

Step1:: Please make sure that LoadModule version_module modules/mod_version.so is loaded from httpd.conf file to resolve Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration error.

Step2::

Please make sure that below variable value should be set as

max_execution_time = 1800
max_input_time = 1800
memory_limit = 1024M

Step3::(Optional)

Creat virtual host.

add below code in your file path :: D:\wamp64\bin\apache\apache2.4.18\conf\extra\httpd-vhosts.conf

Path may vary as per your installation

<VirtualHost *:80>
ServerName demomage222
ServerAlias www.demomage222.com
DocumentRoot D:/wamp64/www/mage222
<Directory  "/">
    Options +Indexes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
</Directory>

Make entry in host file like below. host file path for me(may different for you) :: C:\Windows\System32\drivers\etc\hosts

127.0.0.1 www.demomage222.com