Internal Server Error after install 2.3.6 problem apache

688 Views Asked by At

I need help with the installation of Magento 2.3.6 this is returning an error in apache:

core: alert] [pid 23385] [client 179.232.122.240:2423] .htaccess: Invalid comid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration

I already wasted a lot of time researching and tested a lot, but nothing worked, could someone help me?

enter image description here

1

There are 1 best solutions below

1
MrWhite On

Invalid comid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration

This implies you don't have mod_env installed in Apache. You need to install/enable this module and restart Apache.

This is a little unusual since mod_env is considered a "Base" module and is "compiled and loaded into the server by default".

Reference:


To find out which Apache modules are enabled, check @ValentinBajrami's answer to the following question on ServerFault:

To list apache loaded modules use:

apachectl -M

or:

apachectl -t -D DUMP_MODULES 

or on RHEL,CentoS, Fedora:

httpd -M

And the following question if you need to install/enabled mod_env: