Notes on mod_sitestory.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.cit 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-devTry: sudo apt-get install <selected package>
[user@ubuntu~] sudo apt-get install apache2-threaded-dev //tool for worker MPM
3. Compile/install the mod_sitestory.c module:
[user@ubuntu~] sudo apxs2 –c –i-a mod_sitestory.c
4. Restart apache
[user@ubuntu~] sudo apache2ctl restart
5. Create sitestory.conf in /etc/apache2/mods-availabe/ with your custom content:
<IfModule sitestory_module> ArchiveHost mementoarchive.lanl.gov ArchivePort 80 ArchivePath "/sitestory/put/" ArchiveTimeGate http://mementoarchive.lanl.gov/sitestory/timegate/ EnableArchiving On EnableIP On Excluded /ta /wayback </IfModule>
6. Run to enable mod_sitestory
[user@ubuntu~]sudo a2enmod sitestory
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-defaultchange messaging level to debug
LogLevel debugThe debugging or error messages will be spooled to error.log
[user@ubuntu~] more /var/log/apache2/error.log