Appendix A. Frequently Asked Questions

1. My system does not have an MTA. How do I validate accounts if my system cannot send/receive e-mail?
2. My system account does not have access to various site and admin features.
3. How do I set up username.example.tld subdomains?
4. Where do the ToS “include” files go?
5. How do I add new public moodthemes?
6. Some of my S1 styles say LiveJournal instead of $LJ::SITENAMESHORT?

1.

My system does not have an MTA. How do I validate accounts if my system cannot send/receive e-mail?

Set $LJ::EVERYONE_VALID to 1, and all future accounts will be validated. To validate all existing accounts run the following SQL statement:

UPDATE user SET status='A';

2.

My system account does not have access to various site and admin features.

Your system account does not start life with full access to everything. It is not like “root” in Unix. It only starts with the ability to give any other user any rights, including itself. So, you need to use system to give another account (or system itself) access to do something, such as giving the account a priv like change_journal_type.

3.

How do I set up username.example.tld subdomains?

First make sure you have set the $LJ::USER_VHOSTS variable and given users the “userdomain” cap. You need to set a “catch all” entry in your DNS zone file. For example, if using BIND:

*.example.com IN A 192.170.2.1

4.

Where do the ToSinclude” files go?

Your tos.bml and tos-mini.bml (iframe version for use on create.bml) belong in a directory named htdocs/legal.

5.

How do I add new public moodthemes?

Set up the moods the way you want them in the bin/upgrading/moods.dat file. Follow the format already used in that file when you add your new moods. Then, load them into the DB, by running the update-db script with the -p option, which'll upload the new moods.

6.

Some of my S1 styles say LiveJournal instead of $LJ::SITENAMESHORT?

Open bin/upgrading/s1styles.dat in a text editor and search/replace all occurrences of LiveJournal with YourSite and livejournal with yoursite. Save a copy of the updated file into your “local” (cvs/local/bin/upgrading/) directory . Then, just repopulate into your DB (update-db.pl -p -r -fb to force-rebuild the S1 styles from the updated s1styles.dat).