Re: Problem installing mod_perl (because of CGI?)

[prev] [thread] [next] [Date index for 2005/04/06]

From: Geoffrey Young
Subject: Re: Problem installing mod_perl (because of CGI?)
Date: 17:19 on 06 Apr 2005

> /usr/local/site/bin/httpd  -d /home/teddy/mod_perl/mod_perl-2.0.0-RC4/t -f
> /home
> onf -D APACHE2 -D PERL_USEITHREADS
> using Apache/2.0.53 (prefork MPM)
> waiting 120 seconds for server to start: .Syntax error on line 861 of
> /home/tedd
> Invalid command 'SetEnv'

um... what's in /home/tedd around 861?  that's an odd file to be pulling in.

> 
> 
> Well, the error "Invalid command 'SetEnv', perhaps mis-spelled or defined by
> a module not included" makes me think that the problem is that Apache
> doesn't have the module CGI installed.

no, it's from mod_env:

  http://httpd.apache.org/docs/mod/mod_env.html#setenv

> (I know that Apache doesn't have the module CGI installed because I have
> tried ./httpd -l 

make sure that's

  $ /usr/local/site/bin/httpd -l

since, from the above, that's the httpd you seem to be building against.

> and mod_cgi.c doesn't appear in that list of compiled
> modules and I cannot find that module in the "modules" directory).
> 
> Is it possible to install mod_perl if mod_cgi is not installed?

yes.  and mod_env too :)

> 
> If yes, why do I get that error?

that's the question.  the only call to SetEnv in mod_perl seems to be

  <IfModule mod_env.c>
      SetEnv TMPDIR @t_logs@
  </IfModule>

which would preclude the error you see.  unless mod_env.c isn't really
present but the test suite thinks it is.


> If it is not possible, please tell me if there is a way of installing the
> CGI module without re-installing Apache.
> 
> I have 2 Apache servers installed on the same computer, and the server I
> want to install mod_perl for, is Apache 2.0.53.

make sure you 'make realclean' before you start the next build so that
configuration stuff doesn't get pulled over between builds.  you might also
want to

  $ t/TEST -clean
  $ rm -rf ~/.apache-test

before each build just to make sure that no test config foo gets carried over.

HTH

--Geoff

Problem installing mod_perl (because of CGI?)
Octavian Rasnita 16:52 on 06 Apr 2005

Re: Problem installing mod_perl (because of CGI?)
Geoffrey Young 17:19 on 06 Apr 2005

Re: Problem installing mod_perl (because of CGI?)
Philip M. Gollucci 17:56 on 06 Apr 2005

Re: Problem installing mod_perl (because of CGI?)
Octavian Rasnita 18:29 on 06 Apr 2005

Re: Problem installing mod_perl (because of CGI?)
Octavian Rasnita 18:26 on 06 Apr 2005

Re: Problem installing mod_perl (because of CGI?)
Philip M. Gollucci 19:15 on 06 Apr 2005

Re: Problem installing mod_perl (because of CGI?)
Octavian Rasnita 19:27 on 06 Apr 2005

Re: Problem installing mod_perl (because of CGI?)
Geoffrey Young 19:32 on 06 Apr 2005

Generated at 14:43 on 11 Apr 2005 by mariachi v0.52