<?xml version="1.0" encoding="iso-8859-1"?>

<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title type="text">Joseph Reagle</title>
<subtitle type="html"><![CDATA[
Open Communities, Media, Source, and Standards
]]></subtitle>
<id>http://reagle.org/joseph/blog/technology/python/setting-up-pyblosxom</id>
<link rel="alternate" type="text/html" href="http://reagle.org/joseph/blog" />
<link rel="self" type="application/atom+xml" href="http://reagle.org/joseph/blog/technology/python/setting-up-pyblosxom?flav=atom" />


<author>
<name>Joseph Reagle</name>
<uri>http://reagle.org/joseph/blog/technology/python/setting-up-pyblosxom</uri>
<email></email>
</author>
<rights>Copyright 2003-2010 Joseph Reagle</rights>
<generator uri="http://pyblosxom.sourceforge.net/" version="1.4.3 01/10/2008">
PyBlosxom http://pyblosxom.sourceforge.net/ 1.4.3 01/10/2008
</generator>

<updated>2003-08-27T19:15:00Z</updated>
<!-- icon?  logo?  -->

<entry>
<title type="html">Setting Up Pyblosxom</title>
<category term="" />
<id>http://reagle.org/joseph/blog/2003/08/27/setting-up-pyblosxom</id>
<updated>2003-08-27T19:15:00Z</updated>
<published>2003-08-27T19:15:00Z</published>
<link rel="alternate" type="text/html" href="http://reagle.org/joseph/blog/technology/python/setting-up-pyblosxom.html" />
<content type="html">

&lt;p&gt;These are some of the steps I took to setup &lt;a
href=&quot;http://roughingit.subtlehints.net/pyblosxom/&quot;&gt;pyblosxom&lt;/a&gt;, though not
all python string values are of a complete (literal) path:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;my web directories are in $HOME/data/2web/reagle.org/joseph&lt;/li&gt;
  &lt;li&gt;untar pyblosxom-0.8rc1.tar.gz as $HOME/data/2web/pyblosxom/&lt;/li&gt;
  &lt;li&gt;cp pyblosxom.cgi ../../reagle.org/joseph/blog&lt;/li&gt;
  &lt;li&gt;make &quot;blog&quot; an executable file:
    &lt;pre&gt;ForceType application/cgi-script; SetHandler cgi-script&lt;/pre&gt;
    &lt;p&gt;Unfortunately, this is in the &quot;reagle.org&quot; the root directory and
    applies to &lt;strong&gt;any&lt;/strong&gt; file named &quot;blog&quot;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Update &quot;reagle.org/joseph/blog&quot; to be able to find the files&lt;br /&gt;

    &lt;pre&gt;import sys
sys.path.append(&quot;2web/pyblosxom/&quot;)
sys.path.append(&quot;2web/pyblosxom/web&quot;)
sys.path.append(&quot;2web/pyblosxom/Pyblosxom&quot;)&lt;/pre&gt;
    &lt;p&gt;I prefer to use these syspaths instead of copying various files within
    the distribution which seems to be the convenient, but would make
    migrating the software to future versions even trickier.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Update &quot;2web/pyblosxom/web/config.py&quot; for this site including:
    &lt;pre&gt;py[&quot;datadir&quot;] = &quot;2web/reagle.org/joseph/content&quot;
py[&quot;comment_dir&quot;] = &quot;2web/reagle.org/joseph/comments&quot;
py[&quot;plugin_dirs&quot;] = [&quot;2web/pyblosxom/contrib/plugins&quot;,
   &quot;2web/pyblosxom/contrib/entryparsers&quot;,
   &quot;2web/pyblosxom/contrib/plugins/comments/plugins&quot;]
py[&quot;load_plugins&quot;] = [&quot;conditionalhttp&quot;,&quot;pyarchives&quot;,
   &quot;pycategories&quot;,&quot;txtl&quot;, &quot;breadcrumbs&quot;,&quot;comments&quot;]&lt;/pre&gt;
  &lt;/li&gt;
  &lt;li&gt;secure &quot;content&quot; and &quot;comments&quot; from web browsing by placing deny
    directives in the .htaccess file in their directory&lt;/li&gt;
  &lt;li&gt;enable the web server write permission to the &quot;comments&quot; directory&lt;/li&gt;
  &lt;li&gt;find a copy of &quot;textile.py&quot;, and place it at
    &quot;2web/pyblosxom/contrib/entryparsers/&quot;&lt;/li&gt;
  &lt;li&gt;find a copy of breadcrumbs.py, stick it in
    &quot;2web/pyblosxom/contrib/plugins/breadcrumbs.py&quot;&lt;/li&gt;
  &lt;li&gt;create html flavors&lt;/li&gt;
  &lt;li&gt;tweak pycategories and others to make it generate valid XHTML&lt;/li&gt;
  &lt;li&gt;add &quot;trackback&quot; to &quot;reagle.org/joseph/&quot;, and add a system paths to it
    as for &quot;blog&quot;&lt;/li&gt;
  &lt;li&gt;the URIs for trackback pings should look like
    &quot;http://reagle.org/joseph/trackback/technology/python/setting-up-pyblosxom&quot;&lt;/li&gt;
  &lt;li&gt;add &lt;a
    href=&quot;http://sourceforge.net/mailarchive/message.php?msg_id=6022402&quot;&gt;tweaks
    so that the flavours can sit in their own directory&lt;/a&gt;; and add the HTML
    entry parser.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;/p&gt;
</content>
</entry>
</feed>
