<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="http://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:larsskj</id>
  <title>Lars Skjærlund</title>
  <subtitle>Lars Skjærlund</subtitle>
  <author>
    <name>Lars Skjærlund</name>
  </author>
  <link rel="alternate" type="text/html" href="http://larsskj.livejournal.com/"/>
  <link rel="self" type="text/xml" href="http://larsskj.livejournal.com/data/atom"/>
  <updated>2008-03-29T23:39:54Z</updated>
  <lj:journal userid="15208465" username="larsskj" type="personal"/>
  <link rel="service.feed" type="application/x.atom+xml" href="http://larsskj.livejournal.com/data/atom" title="Lars Skjærlund"/>
  <link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:larsskj:762</id>
    <link rel="alternate" type="text/html" href="http://larsskj.livejournal.com/762.html"/>
    <link rel="self" type="text/xml" href="http://larsskj.livejournal.com/data/atom/?itemid=762"/>
    <title>LiveJournal on Sporskiftet</title>
    <published>2008-03-29T19:51:06Z</published>
    <updated>2008-03-29T23:39:54Z</updated>
    <category term="livejournal development"/>
    <category term="livejournal"/>
    <category term="livejournal installation"/>
    <content type="html">Hi everyone,&lt;br /&gt;&lt;br /&gt;I'm running an Internet forum for Danish railway geeks called &lt;a href="http://www.sporskiftet.dk/forum"&gt;Sporskiftet&lt;/a&gt;. It was setup rather quickly some years ago, but has grown ever since. Back then I chose to use &lt;a href="http://www.phpbb.com"&gt;phpBB&lt;/a&gt; which seemed to be the best Open Source solution at the time. I didn't think much of PHP, though - and it hasn't become any better since then, so I started looking around for another solution.&lt;br /&gt;&lt;br /&gt;Alas, in my search I stumbled across LiveJournal, Open Source and written in my preferred language: Perl. That begged to be investigated...&lt;br /&gt;&lt;br /&gt;&lt;a name="cutid1"&gt;&lt;/a&gt;I've downloaded and installed LJ, and after a little squeezing I managed to make it work. I think the docs are rather limited, though, so I thought I might use my journal here on LJ to let you follow my progress; if you want to setup your own LJ, we might share some tricks along the way.&lt;br /&gt;&lt;br /&gt;My wishes for the new site includes the following:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Integration with the existing phpBB system - including migrating users&lt;/li&gt;&lt;li&gt;Personal blogs for my users&lt;/li&gt;&lt;li&gt;A photo gallery&lt;/li&gt;&lt;li&gt;An information database&lt;/li&gt;&lt;li&gt;A wiki&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Although LJ doesn't meet all these requirements, it seems that LJ + FotoBilder will fit the first three points on the list - and that's not bad after all.&lt;br /&gt;&lt;br /&gt;I will keep the original forum in some way, though, I don't subscribe to the idea of using blogging software for public discussions. But most likely I'll rewrite the phpBB package into something better when I get LJ up and running.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Installation tips&lt;/h2&gt;&lt;h3&gt;Finding the docs&lt;/h3&gt;At first, I found some documentation at a wiki called &lt;a href="http://wiki.ljcode.org"&gt;http://wiki.ljcode.org&lt;/a&gt;. It was also the only documentation I could find - but it did provide a starting point.&lt;br /&gt;&lt;br /&gt;Then, after having downloaded and installed LJ according to the docs in the above wiki, I started asking questions here on LJ about the code; I was pointed to the official docs - but where would I find them? It was there, in the source download, but only in raw format - see $LJHOME/doc/raw/notes.txt. If you have the right Perl modules installed, all you need to do is issuing the following command:&lt;br /&gt;&lt;br /&gt;$LJHOME/doc/raw/build/generate.pl&lt;br /&gt;&lt;br /&gt;and you will have the docs at&lt;br /&gt;&lt;br /&gt;&lt;a href="http://your.lj.server/doc/server/"&gt;http://your.lj.server/doc/server/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;That was the first hurdle.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Making it run&lt;/h3&gt;The next was to make LJ run; ie., I had no problem starting Apache, but whenever I tried accessing the server, the browser just hang.&lt;br /&gt;&lt;br /&gt;Huh - but this time Google was my friend: It appears that LJ is hardcoded to expect a setup where your server is running from a base domain - say "sporskiftet.dk" in my case - and your server accordingly shall respond to the address "www.sporskiftet.dk". This is absolutely the thing I want, but as most sensible persons would do, I started out with a testserver created as a VMware Workstation image on my workstation. I had given it a hostname and integrated it into my system, but it was &lt;i&gt;not&lt;/i&gt; called "www.something".&lt;br /&gt;&lt;br /&gt;Things like this must be configured in $LJHOME/etc/ljconfig.pl. This file is heavily commented, and it does mention that you must set a variable called $DOMAIN - just like this:&lt;br /&gt;&lt;br /&gt;# the base domain of your site.&lt;br /&gt;# CHANGE THIS&lt;br /&gt;$DOMAIN = "ljsite.com";&lt;br /&gt;&lt;br /&gt;So I changed $DOMAIN to my hostname - and thought nothing more about it. However, what the comments &lt;i&gt;doesn't&lt;/i&gt; mention is that implicit in this definition is the assumption that your primary DNS name will be "www.ljsite.com". If you wade through all the docs, this is documented, of course - but who starts reading &lt;i&gt;all&lt;/i&gt; the docs before the initial installation?&lt;br /&gt;&lt;br /&gt;In cases like this you must enter the following in the configfile:&lt;br /&gt;&lt;br /&gt;$DOMAIN = "my.host.name";&lt;br /&gt;$DOMAIN_WEB = $DOMAIN;&lt;br /&gt;&lt;br /&gt;or whatever you like - otherwise, Apache will keep on trying to redirect the browser's request to "www.my.host.name".&lt;br /&gt;&lt;br /&gt;This must be enough for today. Next quest is figuring out how the localization works - I want to run my site in Danish, of course, but with an option of English for international visitors. Stay tuned.&lt;br /&gt;</content>
  </entry>
</feed>
