Be aware that nearly all LiveJournal code depends on the
environment variable being set to the top-level directory that LiveJournal is installed at.
Chapter 11, Apache has the necessary directives to make
sure the web code always has
set, but if you are running LJ maintenance commands from a terminal,
you must make sure
is set for yourself.
For example, we'll assume you are installing LiveJournal on an operating system
using the Bourne/BASH shell: The easiest way to set
$ is to put
the following line in your
On some systems you should instead put it in
LJHOME=/home/lj; export LJHOME
It is also a good idea to add an entry for LiveJournal into your path, into the same file:
To test that it's set:
If the above was successful, it should print out
(or whatever the value of
$ may be).
If you use another shell interface, you might be able to see what it reads on
start-up by looking for the file:
refer to the documentation provided with your shell, which can usually be
found by typing: