Magento2 Installation – Fixing 500 Internal Server Error in Magento 2.2.2

http-error-500installationmagento2magento2.2.2

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 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
Related Topic