I am trying to install Magento 2.2.2 on my local Windows environment with WAMP. But it gives me a 500 Internal Server Error. When I replace the previous version of htaccess
file it does work. Would that be the issue?
Rewrite engine is on and the module is loaded.
Error log:
Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration
I have tried to enable LoadModule version_module modules/mod_version.so
to make it work but now when the installation runs, in between it responds in my console that it's false
after a few seconds. When I try to refresh, it starts the remaining installation but I have to refresh several times to complete the installation. I don't know if Magento is installed successfully or not during this process.
When I go to the admin it works, but I get console JS errors. The front-end still loads without CSS.
I tried to install it several times but every time I wind up with this error
Best Answer
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 fromhttpd.conf
file to resolveInvalid 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
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
Make entry in host file like below. host file path for me(may different for you) ::
C:\Windows\System32\drivers\etc\hosts