<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Frank Seitz - Developer Logbuch - Serendipity</title>
    <link>http://fseitz.de/blog/</link>
    <description>Notizen aus der Welt der Web-, Datenbank- und Unix-Programmierung</description>
    <dc:language>de</dc:language>
    <generator>Serendipity 1.5.1 - http://www.s9y.org/</generator>
    <pubDate>Sat, 27 Mar 2010 11:22:55 GMT</pubDate>

    <image>
        <url>http://fseitz.de/blog/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Frank Seitz - Developer Logbuch - Serendipity - Notizen aus der Welt der Web-, Datenbank- und Unix-Programmierung</title>
        <link>http://fseitz.de/blog/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Änderungen an Serendipity</title>
    <link>http://fseitz.de/blog/index.php?/archives/15-AEnderungen-an-Serendipity.html</link>
            <category>Serendipity</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/15-AEnderungen-an-Serendipity.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=15</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=15</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;h1 class=&quot;sdoc-sec-h1&quot;&gt;Favicon hinzugefügt&lt;/h1&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Zu Datei: &lt;tt class=&quot;sdoc-seg-c&quot;&gt;templates/default/index.tpl&lt;/tt&gt;
&lt;/p&gt;
&lt;h1 class=&quot;sdoc-sec-h1&quot;&gt;Homelink2 auf Artikelübersicht geändert&lt;/h1&gt;
&lt;p class=&quot;sdoc-para-p&quot;&gt;
  Zu &lt;tt class=&quot;sdoc-seg-c&quot;&gt;index.php?/archives/summary.html&lt;/tt&gt; in Datei: &lt;tt class=&quot;sdoc-seg-c&quot;&gt;templates/default/index.tpl&lt;/tt&gt;
&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 07 Jan 2010 19:00:00 +0100</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/15-guid.html</guid>
    
</item>
<item>
    <title>Style der Serendipity Admin-Oberfläche ändern</title>
    <link>http://fseitz.de/blog/index.php?/archives/4-Style-der-Serendipity-Admin-Oberflaeche-aendern.html</link>
            <category>Serendipity</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/4-Style-der-Serendipity-Admin-Oberflaeche-aendern.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=4</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=4</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;p&gt;Die Admin-Oberfläche bietet keine getrennte Einstellung für den eigenen Style - entweder
der Haupt-Style ändert den Style der Admin-Oberfläche mit oder es bleibt bei dem (für meinen Geschmack)
nicht sonderlich schönen Default.&lt;/p&gt;

&lt;p&gt;Die Admin-Styles sind in den Verzeichnissen der Haupt-Styles in &lt;code&gt;templates/STYLE/admin&lt;/code&gt; definiert.
Die Haupt-Styles, die einen Admin-Style mitbringen, lassen
sich folgendermaßen ermitteln:&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
$ find templates -type d | grep admin$
./carl_contest/admin
./competition/admin
./contest/admin
./bulletproof/admin
./default-rtl/admin
./default/admin
&lt;/pre&gt;

&lt;p&gt;Ein Style, der keinen Admin-Style definiert, kann mit einem fremden
Admin-Style ausgestattet werden, indem ein fremdes admin Verzeichnis (eines anderen
Style) dorthin kopiert wird oder ein Symlink auf dieses angelegt wird:&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;
$ cd templates/MYSTYLE
$ ln -s ../OTHERSTYLE/admin .
&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Thu, 07 Jan 2010 18:30:42 +0100</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/4-guid.html</guid>
    
</item>
<item>
    <title>Installation von Serendipity</title>
    <link>http://fseitz.de/blog/index.php?/archives/2-Installation-von-Serendipity.html</link>
            <category>Serendipity</category>
    
    <comments>http://fseitz.de/blog/index.php?/archives/2-Installation-von-Serendipity.html#comments</comments>
    <wfw:comment>http://fseitz.de/blog/wfwcomment.php?cid=2</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://fseitz.de/blog/rss.php?version=2.0&amp;type=comments&amp;cid=2</wfw:commentRss>
    

    <author>nospam@example.com (Frank Seitz)</author>
    <content:encoded>
    &lt;p&gt;Meine Wahl der Blog-Software ist auf Serendipity gefallen, da ich es neulich positiv
erwähnt gefunden habe und meine anschließende Recherche ergeben hat, dass es wohl
tatsächlich gut ist.&lt;/p&gt;

&lt;p&gt;Als ersten technischen Eintrag schreibe ich auf, wie ich Serendipity from scratch auf meinem
Debian Web-Host installiert habe. Zwar gibt es Serendipity auch fix und fertig als
Debian-Paket, aber das ist in Debian/Stable schon älter. Außerdem
ist diese Anwendung für mich wichtig genug, dass ich alles im Detail kontrollieren möchte,
einschließlich programmierung, und keinesfalls will, dass die Debian-Paketverwaltung
mir mit Updates dazwischen kommt.&lt;/p&gt;

&lt;p&gt;Homepage von Serendipity: &lt;a href=&quot;http://www.s9y.org/&quot;&gt;http://www.s9y.org/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schritt 1: Herunterladen der Software&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Auf der Homepage bekommt man die aktuelle Version als Tarball und auch eine Beschreibung
für die manuelle Installation. Diese hat den Titel &lt;i&gt;Fresh Installation&lt;/i&gt;. Sie ist gut, aber in einigen Punkten
nicht ausführlich genug. Ich beschreibe hier die Dinge, die ich bei &lt;i&gt;meiner&lt;/i&gt; Installation
dort nicht gefunden habe.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schritt 2: Auspacken des Pakets&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Das Paket, in meinen Fall &lt;code&gt;serendipity-1.5.1.tar.gz&lt;/code&gt;, kann irgendwo
im Dateisystem ausgepackt werden. In der Webserver-Konfiguration wird
später mitgeteilt, wo es sich befindet. Ich entscheide mich als Installationsort
für &lt;code&gt;/opt/serendipity/1.5.1/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schritt 3: Benötigte Debian-Pakete installieren&lt;/strong&gt;&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;# deb-install php5
# apt-get install postgresql
# apt-get install php5-pgsql
# apt-get install imagemagick&lt;/pre&gt;

&lt;p&gt;Serendipity ist in PHP5 programmiert. Als DBMS verwende ich PostgreSQL.
Imagemagick wird von Serendipity zur Bildbearbeitung gebraucht.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schritt 4: Apache Konfiguration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Im Serendipity-Paket scheint keine Apache-Config dabei zu sein. Ich habe diese
von der Debian-Version übernommen, mit der ich zuvor herumgespielt habe. Lediglich
die Pfade brauchte ich anpassen. Der URL des Blog wird
&lt;code&gt;http://SERVER.DOMAIN/blog&lt;/code&gt; lauten.&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;Alias /blog /opt/serendipity/1.5.1

&amp;lt;Directory /opt/serendipity/1.5.1&amp;gt;
        Options -Indexes +FollowSymlinks

        DirectoryIndex index.php

        &amp;lt;IfModule mod_php5.c&amp;gt;
        php_flag session.use_trans_sid off
        php_flag register_globals off
        &amp;lt;/IfModule&amp;gt;

        AllowOverride All
        order allow,deny
        allow from all

        &amp;lt;Files *.tpl.php&amp;gt;
            deny from all
        &amp;lt;/Files&amp;gt;

        &amp;lt;Files *.tpl&amp;gt;
            deny from all
        &amp;lt;/Files&amp;gt;

        &amp;lt;Files *.sql&amp;gt;
            deny from all
        &amp;lt;/Files&amp;gt;

        &amp;lt;Files *.inc.php&amp;gt;
            deny from all
        &amp;lt;/Files&amp;gt;

        &amp;lt;Files *.db&amp;gt;
            deny from all
        &amp;lt;/Files&amp;gt;
&amp;lt;/Directory&amp;gt;&lt;/pre&gt;

&lt;p&gt;Die Datei wird als &lt;code&gt;serendiptiy.conf&lt;/code&gt; nach &lt;code&gt;/etc/apacha2/conf.d&lt;/code&gt;
kopiert und anschließend der Apache neu gestartet:&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;# apache2ctl restart&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Schritt 5: PostgreSQL-Datenbank einrichten&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Für die Datenbank-Einrichtung sind drei Dinge zu tun:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Datenbank erzeugen&lt;/li&gt;
  &lt;li&gt;Datenbank-User erzeugen, über den Serendipity auf die Datenbank zugreift&lt;/li&gt;
  &lt;li&gt;Datenbanknamen und User und Passwort in die Serendipity-Config eintragen&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Datenbank und User erzeugen:&lt;/p&gt;

&lt;pre class=&quot;s-pre-box&quot;&gt;# su - postgres
$ createdb serendipity
$ createuser -P serendipity
Password:
&lt;/pre&gt;

&lt;p&gt;Wichtig ist bei &lt;code&gt;creatuser&lt;/code&gt; der Parameter &lt;code&gt;-P&lt;/code&gt;,
damit der User ein Passwort erhält.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schritt 6: Konfiguration und Administration von Serendipity&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Anschließend auf &lt;code&gt;http://SERVER.DOMAIN/blog/serendipity_admin.php&lt;/code&gt; gehen
und die Datenbank-Angaben in die Formularfelder eintragen&lt;/p&gt;

&lt;p&gt;Bei Anmeldeaufforderung per &quot;John Doe&quot; mit Passwort &quot;john&quot; anmelden. Benutzername
und Passwort sollten nach der Anmeldung als erstes geändert werden. Danach
kann Serendipity im Detail den persönlichen Wünschen angepasst werden.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 07 Jan 2010 12:30:00 +0100</pubDate>
    <guid isPermaLink="false">http://fseitz.de/blog/index.php?/archives/2-guid.html</guid>
    
</item>

</channel>
</rss>