[SOLVED ]Magento 2.x Apache htaccess IfVersion perhaps misspelled - Internal Server error


I encountered the following error with apache 2.4 & cloudlinux running along with CPanel while installing Magento 2.x

[Tue Mar 27 15:14:41.469355 2018] [core:alert] [pid 87038:tid 140477005281024] [client] /home/xxxxxx/public_html/.htaccess: Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration, referer: https://www.xxxxxx.com/

Actual error was internal server error on the server which was fixed using the following solution:


Internal server error was occurring due to a missing Apache module_version so I let it be installed using the following command:

yum install ea-apache24-mod_version

And the issue got fixed.

Post a Comment