MirrorBrain DB SETUP: # NOTE: the password used here should be the same as $MBPASS used in # the build script for mirrorbrain. root@darkstar:~ # su - postgres postgres@darkstar:~> createuser -P mirrorbrain Enter password for new role: Enter it again: Shall the new role be a superuser? (y/n) n Shall the new role be allowed to create databases? (y/n) n Shall the new role be allowed to create more new roles? (y/n) n CREATE ROLE postgres@darkstar:~> createdb -O mirrorbrain dbname CREATE DATABASE postgres@darkstar:~> createlang plpgsql dbname # You will notice a "data/" dir in your current directory: postgres@darkstar:~> cp data/pg_hba.conf data/pg_hba.conf.orig # Now edit data/pg_hba.conf to add something along these lines (change 192.168.1.1/32 as appropriate) # TYPE DATABASE USER CIDR-ADDRESS METHOD # "local" is for Unix domain socket connections only #local all all ident local all all password # IPv4 local connections: host all all 127.0.0.1/32 password # IPv6 local connections: host all all ::1/128 password # remote connections: host mirrorbrain mirrorbrain 192.168.1.1/32 md5 Import table structure and initial data: psql -U mirrorbrain -f /usr/share/mirrorbrain/sql/schema-postgresql.sql dbname psql -U mirrorbrain -f /usr/share/mirrorbrain/sql/initialdata-postgresql.sql dbname HTTPD SETUP/CONFIGURATION: Rebuild the apr-util package, adding "--with-pgsql=/usr" to configure flags. Add the following to /etc/httpd/httpd.conf: Include /etc/httpd/extra/mod_dbd.conf Include /etc/httpd/extra/mod_form.conf Include /etc/httpd/extra/mod_geoip.conf Include /etc/httpd/extra/mod_mirrorbrain.conf Include /etc/httpd/extra/mod_autoindex_mb.conf REMOVE the following from /etc/httpd/httpd.conf: Include /etc/httpd/extra/mod_autoindex.conf For the sake of clarity, the mod_autoindex included with httpd is incompatible with mod_autoindex_mb shipped with mirrorbrain. They are mutually exclusive. They cannot be loaded at the same time. Edit /etc/httpd/extra/mod_geoip.conf - ensure the following is present: GeoIPEnable On GeoIPOutput Env GeoIPDBFile /var/lib/GeoIP/GeoIP.dat MMapCache For more information: http://forum.maxmind.com/viewtopic.php?p=2078 Edit /etc/httpd/extra/mod_mirrorbrain.conf as desired.