<?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/  -->
<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:media='http://search.yahoo.com/mrss/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Lars Skjærlund</title>
  <link>http://larsskj.livejournal.com/</link>
  <description>Lars Skjærlund - LiveJournal.com</description>
  <lastBuildDate>Sat, 29 Mar 2008 19:51:06 GMT</lastBuildDate>
  <generator>LiveJournal / LiveJournal.com</generator>
  <lj:journal>larsskj</lj:journal>
  <lj:journalid>15208465</lj:journalid>
  <lj:journaltype>personal</lj:journaltype>
  <atom10:link rel='hub' href='http://pubsubhubbub.appspot.com/' />
  <image>
    <url>http://l-userpic.livejournal.com/73021679/15208465</url>
    <title>Lars Skjærlund</title>
    <link>http://larsskj.livejournal.com/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>http://larsskj.livejournal.com/762.html</guid>
  <pubDate>Sat, 29 Mar 2008 19:51:06 GMT</pubDate>
  <title>LiveJournal on Sporskiftet</title>
  <link>http://larsskj.livejournal.com/762.html</link>
  <description>Hi everyone,&lt;br /&gt;&lt;br /&gt;I&apos;m running an Internet forum for Danish railway geeks called &lt;a href=&quot;http://www.sporskiftet.dk/forum&quot;&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=&quot;http://www.phpbb.com&quot;&gt;phpBB&lt;/a&gt; which seemed to be the best Open Source solution at the time. I didn&apos;t think much of PHP, though - and it hasn&apos;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=&quot;cutid1&quot;&gt;&lt;/a&gt;I&apos;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&apos;t meet all these requirements, it seems that LJ + FotoBilder will fit the first three points on the list - and that&apos;s not bad after all.&lt;br /&gt;&lt;br /&gt;I will keep the original forum in some way, though, I don&apos;t subscribe to the idea of using blogging software for public discussions. But most likely I&apos;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=&quot;http://wiki.ljcode.org&quot;&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=&quot;http://your.lj.server/doc/server/&quot;&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 &quot;sporskiftet.dk&quot; in my case - and your server accordingly shall respond to the address &quot;www.sporskiftet.dk&quot;. 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 &quot;www.something&quot;.&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 = &quot;ljsite.com&quot;;&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&apos;t&lt;/i&gt; mention is that implicit in this definition is the assumption that your primary DNS name will be &quot;www.ljsite.com&quot;. 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 = &quot;my.host.name&quot;;&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&apos;s request to &quot;www.my.host.name&quot;.&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;</description>
  <comments>http://larsskj.livejournal.com/762.html</comments>
  <category>livejournal development</category>
  <category>livejournal</category>
  <category>livejournal installation</category>
  <lj:security>public</lj:security>
  <lj:reply-count>1</lj:reply-count>
</item>
</channel>
</rss>
