Configuring ljconfig.pl

Table of Contents

1. $LJ:: Variables
1.1. User-Configurable
1.2. Auto-Configured
2. %LJ::HELPURLS
3. %LJ::DISABLED
4. Configuring %LJ::DBINFO
5. Setting Capabilities

You need to make a LiveJournal configuration file. There's an example ljconfig.pl in the doc directory by the name of "ljconfig.pl.txt". You need to copy this file to cgi-bin/ljconfig.pl and then edit it to suit your needs.

      $ cd /home/lj
      $ cp doc/ljconfig.pl.txt cgi-bin/ljconfig.pl

The reason it's not there already is so that future upgrades don't destroy your configuration. The end of ljconfig.pl reads in ljdefaults.pl so that if we add new options, ljdefaults.pl will be updated and will set sane defaults. After an upgrade you want to glance at ljdefaults.pl (or the original doc/ljconfig.pl.txt) and see if there are any new options you feel like setting.