You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
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?
The text was updated successfully, but these errors were encountered: