Hi,
after upgraded apache from 2.2. to 2.4. Although I use pretty much the same configuration, I get "Invalid command 'SetEnv'" with 2.4.
/home/foobar/public_html/.htaccess: Invalid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration
I double checked to have mod_env and mod_redirect checked in EasyApache. However the module is not present in apache 2.4 (see below). I noticed that "env" is not enabled by default in 2.4 any more, but is should work if enabled manually, I suppose.
Can anyone shed some light on this issue?
Regards
Chris
Working:
Broken:
Additional info:
WHM 11.40
CloudLinux
EasyApache 3.22.24
PHP 2.3.27 with SuExec
after upgraded apache from 2.2. to 2.4. Although I use pretty much the same configuration, I get "Invalid command 'SetEnv'" with 2.4.
/home/foobar/public_html/.htaccess: Invalid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration
I double checked to have mod_env and mod_redirect checked in EasyApache. However the module is not present in apache 2.4 (see below). I noticed that "env" is not enabled by default in 2.4 any more, but is should work if enabled manually, I suppose.
Can anyone shed some light on this issue?
Regards
Chris
Working:
Code:
Server version: Apache/2.2.26 (Unix)
Server built: Nov 30 2013 23:12:43
Cpanel::Easy::Apache v3.22.24 rev9999 +cloudlinux
Loaded Modules:
core_module (static)
authn_file_module (static)
authz_host_module (static)
authz_groupfile_module (static)
authz_user_module (static)
authz_default_module (static)
auth_basic_module (static)
include_module (static)
filter_module (static)
deflate_module (static)
log_config_module (static)
logio_module (static)
env_module (static)
expires_module (static)
headers_module (static)
unique_id_module (static)
setenvif_module (static)
version_module (static)
proxy_module (static)
proxy_connect_module (static)
proxy_ftp_module (static)
proxy_http_module (static)
proxy_scgi_module (static)
proxy_ajp_module (static)
proxy_balancer_module (static)
ssl_module (static)
mpm_prefork_module (static)
http_module (static)
mime_module (static)
status_module (static)
autoindex_module (static)
asis_module (static)
info_module (static)
suexec_module (static)
cgi_module (static)
negotiation_module (static)
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
rewrite_module (static)
so_module (static)
hostinglimits_module (shared)
bwlimited_module (shared)
suphp_module (shared)
security2_module (shared)
Syntax OK
Code:
Server version: Apache/2.4.7 (Unix)
Server built: Nov 30 2013 23:05:11
Cpanel::Easy::Apache v3.22.24 rev9999 +cloudlinux
Loaded Modules:
core_module (static)
authn_file_module (static)
authn_core_module (static)
authz_host_module (static)
authz_groupfile_module (static)
authz_user_module (static)
authz_core_module (static)
access_compat_module (static)
auth_basic_module (static)
socache_shmcb_module (static)
socache_dbm_module (static)
so_module (static)
include_module (static)
filter_module (static)
deflate_module (static)
http_module (static)
mime_module (static)
log_config_module (static)
logio_module (static)
expires_module (static)
headers_module (static)
unique_id_module (static)
setenvif_module (static)
proxy_module (static)
proxy_connect_module (static)
proxy_http_module (static)
slotmem_shm_module (static)
ssl_module (static)
mpm_prefork_module (static)
unixd_module (static)
status_module (static)
autoindex_module (static)
info_module (static)
suexec_module (static)
cgi_module (static)
negotiation_module (static)
dir_module (static)
actions_module (static)
userdir_module (static)
alias_module (static)
rewrite_module (static)
hostinglimits_module (shared)
bwlimited_module (shared)
suphp_module (shared)
security2_module (shared)
WHM 11.40
CloudLinux
EasyApache 3.22.24
PHP 2.3.27 with SuExec