I am trying to get Movable Type running under mod_perlite. The mt.pl script looks like this:
use strict;
use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib';
use MT::Bootstrap App => 'MT::App::CMS';
As you can see it would ideally reference an environment variable MT_HOME in order to build out the requisite search paths. Naturally I turn to mod_env's setenv directive:
SetEnv directive
Syntax: SetEnv env-variable value
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_env
Compatibility: SetEnv is only available in Apache 1.1 and later. Directory and .htaccess context is available in Apache 1.3.7 and later.
Sets an environment variable, which is then passed on to CGI scripts and SSI pages. Example:
I am trying to get Movable Type running under mod_perlite. The mt.pl script looks like this:
As you can see it would ideally reference an environment variable MT_HOME in order to build out the requisite search paths. Naturally I turn to mod_env's setenv directive:
Running this script through mod_perlite:
Reveals that the MT_HOME env varibable is not getting set:
Can we get mod_perlite to seed %ENV with variables set by SetEnv, or is that not possible?