Magento <IfVersion', perhaps misspelled or defined by a module not included in the server configuration
Asked Answered
G

3

6

I'm trying to setup a WAMP Server with magento however whenever I try and access the magento folder in local host I get an Internal error.

When I read the Apache error message it reads " C:/wamp64/www/Magento2/.htaccess: Invalid command '

I have attempted to use Apache Module mod_version however i got very confused in understanding what to actually do.

Any help and advice would be much appreciated.

Gangrel answered 8/8, 2018 at 10:3 Comment(0)
S
12

enable mod_version in apache modules

In apache version 2.4.9, mod_version module is named as "version_module" in WAMP. I enabled it and magento worked as charm.

Stupe answered 24/9, 2018 at 12:19 Comment(0)
M
4

The solution provided by asad abbas works for me for apache version 2.4.39 i.e. enable mode_version.so in httpd.conf file.

After I enabled it, the line looks something like this:

LoadModule version_module modules/mod_version.so

And its screenshot is:

Screen shot after enabling the module

Multipara answered 30/8, 2019 at 7:6 Comment(0)
F
0

Go to apache(httpd.conf) and uncomment this module LoadModule rewrite_module modules/mod_rewrite.so

Fipple answered 25/1, 2019 at 6:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.