Torrage + Apache

A while ago I tried to install Torrage with Apache and not the suggested lighthttpd. I had to modify the suggested “README-lighttpd.txt” in the docs directory to suit an apache .htaccess in the main folder. RewriteEngine On RewriteCond %{HTTP_HOST} ^torrage.luisaranguren.com$ RewriteRule ^torrent/([0-9A-F]{2,2})([0-9A-F]{2,2})([0-9A-F]{36,36}).* /t/$1/$2/$3.torrent [R=301,L] <FilesMatch “\.torrent”> Header set Content-Encoding “gzip” </FilesMatch> <FilesMatch “\.ghtml”> Header set …

ZNC + MySQL

Been meaning to do this for some time, in the end was quite easy. All the information needed is in http://wiki.znc.in/MySQL_Log Download the mod Build with znc-buildmod mysql_log.cpp Copy compiled mod to the modules directory in ZNC Create database and table in MySQL Load with loadmod mysql_log <DB user> <DB password> <DB host> <DB name> <Table name> It’s …

Patching BASE 1.4.5

For some time BASE 1.4.5 has been giving me tons of log warnings from deprecated php functions for example: PHP Deprecated: Function ereg_replace() is deprecated in base/includes/base_state_common.inc.php on line 184 PHP Deprecated: Function ereg_replace() is deprecated in base/includes/base_state_criteria.inc.php on line 255 PHP Deprecated: Function ereg() is deprecated in base/includes/base_signature.inc.php on line 142 There is a …

Spamassassin and Thunderbird

Configured spamassassin to process daily running sa-learn on a folder, where I move emails that slip through the initial spamassasin run. Created a script in /etc/cron.daily/sa-learn-spam.sh : #!/bin/sh # # sa-learn # #By Luis Aranguren 2011-04-11 # # Learns spam from “spam2learn” folder and moves the learnt spam to “processed spam” folder sa-learn –spam -C …