[Linuxtrent] Re: Apache SetEnv

  • From: Alberto Berti <azazel@xxxxxxxxxxxxxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Fri, 01 Oct 2004 15:10:35 +0200

Il ven, 2004-10-01 alle 10:04, Luca Manini ha scritto:
> Ciao a tutti, 
> 
> sto tentando di installare trac

> Alias /trac "/wherever/you/installed/trac/htdocs/"
> <Location "/cgi-bin/trac.cgi">
>   SetEnv TRAC_ENV "/usr/local/share/trac/environments/luke/pygtk-intro"
> </Location>

deve essere abilitato mod_env 

> Ma poi se rilancio Apache
> 
>       Configuration syntax error detected. Not reloading.
> 
>       [Fri Oct 1 10:01:52 2004] [warn] module cgi_module is already
>       loaded, skipping Syntax error on line 525 of
>       /etc/apache/httpd.conf: Invalid command 'SetEnv', perhaps
>       mis-spelled or defined by a module not included in the server
>       configuration
> 
> SetEnv pare sia una cosa "relativamente nuova" (Apache >=1.1, credo),
> ma ...

se hai un pacchetto debian recente della unstable, scrivi in un
terminale:

modules-config apache enable mod_env


altrimenti inserisci questa riga in /etc/apache/modules.conf o
/etc/apache/httpd.conf:

LoadModule: env_module /usr/lib/apache/1.3/mod_env.so

e riavvia apache



-- 
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: