Brad Fitzpatrick (bradfitz) wrote in lj_dev,
Brad Fitzpatrick


Note to anybody keeping up-to-date with LiveJournal code in CVS: You need the LJHOME environment variable set whenever LJ code is run. This provides two benefits: 1) no paths hardcoded, and 2) you can run two separate servers on one machine. I use this to test both (livejournal cvs with ljcom on top) and a generic livejounal-only server.

Here are instructions on how to make sure LJHOME is set everywhere:

Apache:: http.conf
SetEnv LJHOME /home/lj

FastCGI apps: http.conf
FastCgiServer /home/lj/htdocs/users -processes 2 -initial-env LJHOME=/home/lj

Bash: ~/.bash_profile
LJHOME=/home/lj; export LJHOME

Crontab: (crontab -e)
LJHOME=/home/lj (at the top, before the cron lines)

Procmail: ~/.procmailrc
LJHOME=/home/lj (at the top, before the recipes)

This will be in the revised INSTALL documentation that I haven't done yet. I'll try to get a good release of the code out before I go on my roadtrip.

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded