Hi,

After being away from Apache::Test for some time, I've started to
investigate using it again for testing. I am working from a directory
that had been working with Apache::Test and Apache 1.3.x.

I successfully installed Apache::Test via CPAN. I then went to my
working directory and ran the following:

  perl Build.PL
  ./Build
  t/TEST -config
  t/TEST -start (I just wanted to start the Apache server)

Here's the error message I received:

 Syntax error on line 31 of /home/william/Web/t/conf/extra.conf:
 Invalid command 'PassEnv', perhaps misspelled or defined by a module not 
included in the server configuration
 [  error] 
 server has died with status 255 (t/logs/error_log wasn't created, start the 
server in the debug mode)
 Terminated

Debian/Ubuntu does not use httpd.conf to load modules; it uses
apache2.conf and loads the modules from a directory
(/etc/apache2/mods-enabled). mod_env, which provides the PassEnv
directive, is being loaded in this way. I guess A::T does not support
auto-detecting these modules yet. Is any work being done in this area?

I was able to work around the problem by loading the modules in my
extra.conf.in by putting the contents of the symlinks in mods-enabled
into my conf file as follows:

  # Load Modules that A::T cannot autodetect (Debian/Ubuntu)
  LoadModule env_module /usr/lib/apache2/modules/mod_env.so
  LoadModule dir_module /usr/lib/apache2/modules/mod_dir.so
  LoadModule status_module /usr/lib/apache2/modules/mod_status.so
  LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so
  LoadModule negotiation_module /usr/lib/apache2/modules/mod_negotiation.so
  LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
  LoadModule cgid_module /usr/lib/apache2/modules/mod_cgid.so
  LoadModule setenvif_module /usr/lib/apache2/modules/mod_setenvif.so
  LoadModule auth_basic_module /usr/lib/apache2/modules/mod_auth_basic.so
  LoadModule authn_file_module /usr/lib/apache2/modules/mod_authn_file.so
  LoadModule authz_default_module /usr/lib/apache2/modules/mod_authz_default.so
  LoadModule authz_groupfile_module 
/usr/lib/apache2/modules/mod_authz_groupfile.so
  LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so
  LoadModule authz_user_module /usr/lib/apache2/modules/mod_authz_user.so
  LoadModule autoindex_module /usr/lib/apache2/modules/mod_autoindex.so
  <IfModule mod_dir.c>
    DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
  </IfModule>

Does anyone have a more elegant solution?


Cheers,
William

-- 
Knowmad Technologies - Software development & Process automation
W: http://www.knowmad.com | E: [EMAIL PROTECTED]
P: 704.343.9330 | http://www.LinkedIn.com/in/williammckee

Reply via email to