cPanel - WHM - Invalid command 'SetEnv' - <IfVersion

问题:新安装的cPanel/WHM 环境,访问Magento2程序网站返回500错误,日志里有如下的内容:

public_html/.htaccess: Invalid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration
public_html/app/.htaccess: Invalid command '<IfVersion', perhaps misspelled or defined by a module not included in the server configuration

尝试:以root账户登录到WHM面板,通过EasyApache4,安装mod_envmod_version的apache组件。

参考:

标签: cPanel, magento, apache

添加新评论