mod_bt - Making things better for seeders
Documentation
Installing mod_bt
- libdb-4.2 and it's header files must be installed.
- Apache 2.x's Apache Portability Runtime (APR) library, it's header files, and it's apr-config executable must be installed.
- If you want to build the mod_perl extensions, you need both mod_perl and mod_perl's header files installed. This is the case if you compiled and installed mod_perl 1.99.x from source; it is NOT the case with the most current Debian libapache2-mod-perl2 package. (Debian bug #257506.)
- Run "configure"
- If you don't want the php extensions, specify --without-php
- If you don't want the perl extensions, speicfy --without-perl
- If you want to obtain the mod_perl headers from the mod_perl source distribution rather than the system's include directories, configure mod_perl (according to it's install directions; eg "perl Makefile.PL"), and specify --with-modperl-src
- Check "configure --help" for additional configuration options.
I run Debian GNU/Linux, but I compile my own apache2 and mod_perl and keep them in their own directory. Here is the "configure" line I use to build mod_bt on my system:
./configure --prefix=/opt/apache2 --with-perl-lib=/opt/apache2/perl5lib --with-perl-prefix=/opt/apache2 --with-debug - Run "make"
- Make sure that no mod_bt trackers are currently running. Installing while a tracker is running will usually cause segmentation faults and database corruption.
- Make sure that your library installation prefix (--prefix/lib or --libdir) is listed either in /etc/ld.so.conf, or in your apache server's LD_LIBRARY_PATH environment variable.
- Run "make install"
- As root, run "ldconfig"
-
If you are using the PHP language bindings, be sure that the "LoadModule" directive for mod_bt.so
appears in your apache configuration before the "LoadModule" directive for PHP.
Example:
LoadModule bt_module modules/mod_bt.so
LoadModule php4_module modules/libphp4.so - Configure your apache webserver
- Take a look at the sample httpd.conf entries and the configuration documentation