Notes on mod_ta.c installation on ubuntu linux.

1. Check what flavor of  apache is installed:
[user@ubuntu ~]$ apache2 -l

Compiled in modules:
      core.c
      mod_log_config.c
      mod_logio.c
      worker.c
      http_core.c
      mod_so.c 
it is worker MPM

2.  Check if apxs2 is installed or install apache2 dev package:

user@ubuntu:~/apache$ apxs2
          The program 'apxs2' can be found in the following
          packages:
          *apache2-prefork-dev
          *apache2-threaded-dev 
Try: sudo apt-get install <selected package>

 [user@ubuntu~] sudo apt-get install apache2-threaded-dev //tool for worker MPM

3. compile/install the mod_ta.c  module:

[user@ubuntu~] sudo apxs2 –c –i-a mod_ta.c 

4.  restart apache

[user@ubuntu~] sudo apache2ctl restart 

 5.  create ta.conf in /etc/apache2/mods-availabe/  with your custom content:

<IfModule ta_module>
    ArchiveHost mementoarchive.lanl.gov
    ArchivePort 80
    ArchivePath "/tr/put/"
    EnableArchiving On
    EnableIP On
    Excluded /ta /wayback
   </IfModule>

6. run to enable mod_ta

[user@ubuntu~]sudo a2enmod ta

it should create links at /etc/apache2/mods-enabled/

7. restart apache

[user@ubuntu~]  sudo apache2ctl restart 

8. To check that module is working enable debugging. Go to [your apache dir]/sites-enabled directory

[user@ubuntu~]  sudo emacs 000-default 
  change messaging level to debug
 LogLevel debug 
The debugging  or error messages will be spooled to error.log

[user@ubuntu~] more /var/log/apache2/error.log