UserPreferences

ApplicationNotes/SlashNotes


1. Slash Notes

Notes on how I've installed [WWW]Slash. These notes may not be generally useful, unless you're using my system.

  1. Install vpkg-slash. This is a special package that is just a list of dependencies for Slash--mostly Perl modules, but also my perl-httpd, which is an RPM of Apache with mod_perl statically built-in.

    apt-get install vpkg-slash
    

  2. Connect to MySQL as root, create a new user, and test it:

    # mysql mysql
    mysql> insert into user (Host, User, Password) values ('localhost', 'slashuser', password('PASSWORD'));
    mysql> insert into db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, 
      Create_priv, Drop_priv, Grant_priv, References_priv, Index_priv, Alter_priv ) 
      values ('localhost', 'slash', 'slashuser', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y');
    # mysqladmin reload
    # mysql -u slashuser -p slash
    
    These are probably more priviledges than necessary.

  3. Check slash out of CVS.

  4. Edit /usr/lib/perl5/site_perl/XXX/DBIx/Password.pm. This very obnoxious module stores your site passwords and such. Why you would put variable, sensitive data into a Perl module is beyond me. $virtuser1 should look something like this:

    my $virtual1 = {
        'slashuser' => {
            'driver' => 'mysql',
            'username' => 'slashuser',
            'attributes' => {},
            'port' => '',
            'database' => 'slash',
            'password' => 'PASSWORD',
            'host' => 'localhost',
            'connect' => 'DBI:mysql:database=slash;host=localhost'
        }
    };
    

  5. Install the slashsite.

    cd /usr/local/slash
    bin/install-slashsite -u slashuser