<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>hihn.org &#187; OpenBSD</title>
	<atom:link href="http://hihn.org/tag/openbsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://hihn.org</link>
	<description></description>
	<lastBuildDate>Mon, 05 Mar 2012 19:04:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Zend Framework unter OpenBSD</title>
		<link>http://hihn.org/2008/02/zend-framework-unter-openbsd/</link>
		<comments>http://hihn.org/2008/02/zend-framework-unter-openbsd/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 14:00:46 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend-framework]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=40</guid>
		<description><![CDATA[Ich habe vorhin eine Webapplikation die das Zend Framework nutzt auf den OpenBSD-Server kopiert und mich gewundert, warum im error-Log immer folgendes Stand: PHP Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed' (...) Zend_Db_Adapter_Pdo_Abstract->_connect() Es es lag an Pdo. Das Problem konnte man lösen, indem man das Paket php5-pdo_mysql-5.2.3.tgz [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe vorhin eine Webapplikation die das Zend Framework nutzt auf den OpenBSD-Server kopiert und mich gewundert, warum im error-Log immer folgendes Stand:</p>
<pre>
PHP Fatal error:  Uncaught exception
'Zend_Db_Adapter_Exception'
with message 'The mysql driver
is not currently installed'
(...)
Zend_Db_Adapter_Pdo_Abstract->_connect()
</pre>
<p>Es es lag an Pdo. Das Problem konnte man lösen, indem man das Paket <strong>php5-pdo_mysql-5.2.3.tgz</strong> installiert:</p>
<pre>
# pkg_add -v php5-pdo_mysql-5.2.3.tgz
</pre>
<p>und mit einem</p>
<pre>
# /usr/local/sbin/phpxs -a pdo_mysql
</pre>
<p>aktiviert.</p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/02/zend-framework-unter-openbsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache chroot ausschalten</title>
		<link>http://hihn.org/2008/02/apache-chroot-ausschalten/</link>
		<comments>http://hihn.org/2008/02/apache-chroot-ausschalten/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 15:40:27 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[OpenBSD]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=39</guid>
		<description><![CDATA[Man kann den Apache Chroot mit folgenden Schritten ausschalten: # echo 'httpd_flags="-u"' >> /etc/rc.conf.local # apachectl stop # apachectl start]]></description>
			<content:encoded><![CDATA[<p>Man kann den Apache Chroot mit folgenden Schritten ausschalten:</p>
<pre>
# echo 'httpd_flags="-u"' >> /etc/rc.conf.local
# apachectl stop
# apachectl start
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/02/apache-chroot-ausschalten/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Apache 1.3 DirectoryIndex</title>
		<link>http://hihn.org/2008/01/apache-13-directoryindex/</link>
		<comments>http://hihn.org/2008/01/apache-13-directoryindex/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 09:23:11 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[OpenBSD]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=35</guid>
		<description><![CDATA[Habe gerade DirectoryIndex für Apache 1.3 auf einem OpenBSD-Server eingerichtet. Habe es erst mit folgenden Zeilen probiert, wie es auch auf Apache2 üblich ist: DirectoryIndex index.php index.html Leider hat es nicht geklappt. Es kann nicht daran liegen, dass das Modul nicht geladen wird, denn es ist ein Base-Modul. Die Lösung sieht letztendlich so aus: DirectoryIndex [...]]]></description>
			<content:encoded><![CDATA[<p>Habe gerade DirectoryIndex für Apache 1.3 auf einem OpenBSD-Server eingerichtet.<br />
Habe es erst mit folgenden Zeilen probiert, wie es auch auf Apache2 üblich ist:</p>
<pre>
<<strong></strong>IfModule dir_module>
        DirectoryIndex index.php index.html
<<strong></strong>/IfModule>
</pre>
<p>Leider hat es nicht geklappt. Es kann nicht daran liegen, dass das Modul nicht geladen wird, denn es ist ein <a href="http://httpd.apache.org/docs/1.3/mod/mod_dir.html">Base</a>-Modul.</p>
<p>Die Lösung sieht letztendlich so aus:</p>
<pre>
        DirectoryIndex index.php index.html
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/01/apache-13-directoryindex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenBSD: phpMyAdmin installieren #2</title>
		<link>http://hihn.org/2008/01/openbsd-phpmyadmin-installieren-2/</link>
		<comments>http://hihn.org/2008/01/openbsd-phpmyadmin-installieren-2/#comments</comments>
		<pubDate>Sat, 26 Jan 2008 16:56:36 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=34</guid>
		<description><![CDATA[Es kann sein, dass sich phpMyAdmin nach der Installation komisch verhält: Man kan keine Abfragen machen, keine User anlegen und vor allem dingen: es sieht komisch aus da keine Style-Sheets geladen werden. Wie schon beschrieben kann das an der session.save_path liegen, ich möchte jetzt genauer darauf eingehen. Wenn man sich den error.log (/var/www/logs/error_log) des Apache [...]]]></description>
			<content:encoded><![CDATA[<p>Es kann sein, dass sich phpMyAdmin nach der Installation komisch verhält: Man kan keine Abfragen machen, keine User anlegen und vor allem dingen: es sieht komisch aus da keine Style-Sheets geladen werden.<br />
Wie <a href="http://hihn.org/?p=32">schon beschrieben</a> kann das an der <strong>session.save_path</strong> liegen, ich möchte jetzt genauer darauf eingehen.<br />
Wenn man sich den <strong>error.log</strong> (/var/www/logs/error_log) des Apache genauer anschaut, sieht man, das es Fehlermeldungen bezüglich des Ladens von css- und js-Dateien gbt. Ausserdem konnte das /tmp-Directory nicht geöffnet werden. Da phpMyAdmin in einem chroot liegt, muss ein chroot-eigenes /tmp-Directory erstelt werden.</p>
<pre>
# mkdir /var/www/tmp
</pre>
<p>Nach dem Schritt wird es immer noch Probleme mit phpMyAdmin geben. Im error_log sehen wir, dass diesmal ein <strong>Permission denied</strong> schuld ist, das /var/www/tmp/-Directory braucht natürlich auch noch die passenden Rechte, wenn phpMyAdmin darauf zugreifen will.<br />
<img src="http://www.openbsd.org/art/puffy/puf100X86.gif" alt="puffy" /></p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/01/openbsd-phpmyadmin-installieren-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenBSD: phpMyAdmin installieren</title>
		<link>http://hihn.org/2008/01/openbsd-phpmyadmin-installieren/</link>
		<comments>http://hihn.org/2008/01/openbsd-phpmyadmin-installieren/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 16:33:40 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=32</guid>
		<description><![CDATA[Unter OpenBSD kann man phpMyAdmin ganz komfortabel mit pkg_add installieren. Nach erfolgreicher Installation wird folgende Meldung ausgegeben: Install notice: The phpMyAdmin has been installed into /var/www/phpMyAdmin You should point this to the DocumentRoot of your web-server: # ln -s ../phpMyAdmin /var/www/htdocs/phpMyAdmin (make sure you use a relative symlink since Apache is chrooted) You can ensure [...]]]></description>
			<content:encoded><![CDATA[<p>Unter OpenBSD kann man phpMyAdmin ganz komfortabel mit pkg_add installieren. Nach erfolgreicher Installation wird folgende Meldung ausgegeben:</p>
<pre>
Install notice:
The phpMyAdmin has been installed into /var/www/phpMyAdmin

You should point this to the DocumentRoot of your web-server:
   # ln -s ../phpMyAdmin /var/www/htdocs/phpMyAdmin
(make sure you use a relative symlink since Apache is chrooted)

You can ensure you have a working install by accessing:

http://<localhost>/phpMyAdmin/index.php
</pre>
<p>Man muss als nur in das Verzeichnis <strong>/var/www/htdocs/</strong> wechseln und folgenden Befehl ausführen:</p>
<pre>
# ln -s ../phpMyAdmin /var/www/htdocs/phpMyAdmin
</pre>
<p>Bei mir lief phpMyAdmin trotzdem nicht sofort, angeblich war die PHP-Erweiterung <strong>mysql</strong> nicht geladen, was allerdings Quark war. Ein Blick in den Error-log verriert den wahren Grund:</p>
<pre>
[...] Failed to write session data (files). \
Please verify that the current setting of session.save_path is correct [...]
</pre>
<p>Die Lösung:<br />
In der <strong>php.ini</strong> muss das Semikolon in folgender Zeile herausgenommen werden:</p>
<pre>
session.save_path = "/tmp"
</pre>
<p>Danach den Apache neu starten und über phpMyAdmin freuen :)<br />
<img src="http://www.openbsd.org/art/puffy/puf100X86.gif" alt="puffy" /></p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/01/openbsd-phpmyadmin-installieren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenBSD: MySQL-Server</title>
		<link>http://hihn.org/2008/01/openbsd-mysql-server/</link>
		<comments>http://hihn.org/2008/01/openbsd-mysql-server/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 20:22:53 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[OpenBSD]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=30</guid>
		<description><![CDATA[Ein MySQL-Server kann auch einfach über pkg_add installiert werden: # pkg_add mysql-server-5.0.45.tgz Sollte auf dem System noch kein MySQL installiert gewesen sein, so bekommt man beim Starten mit # /usr/local/bin/mysqld_safe &#038; folgendes zu lesen: # touch: /var/mysql/blowfish.blizzardz.err: No such file or directory chown: /var/mysql/blowfish.blizzardz.err: No such file or directory Starting mysqld daemon with databases from [...]]]></description>
			<content:encoded><![CDATA[<p>Ein MySQL-Server kann auch einfach über <strong>pkg_add</strong> installiert werden:</p>
<pre>
# pkg_add mysql-server-5.0.45.tgz
</pre>
<p>Sollte auf dem System noch <strong>kein</strong> MySQL installiert gewesen sein, so bekommt man beim Starten mit </p>
<pre>
# /usr/local/bin/mysqld_safe &#038;
</pre>
<p>folgendes zu lesen:</p>
<pre>
# touch: /var/mysql/blowfish.blizzardz.err: No such file or directory
chown: /var/mysql/blowfish.blizzardz.err: No such file or directory
Starting mysqld daemon with databases from /var/mysql
/usr/local/bin/mysqld_safe[314]: cannot create /var/mysql/blowfish.blizzardz.err: No such file or directory
/usr/local/bin/mysqld_safe: cannot create /var/mysql/blowfish.blizzardz.err: No such file or directory
STOPPING server from pid file /var/mysql/blowfish.blizzardz.pid
tee: /var/mysql/blowfish.blizzardz.err: No such file or directory
080122 18:32:58 mysqld ended
tee: /var/mysql/blowfish.blizzardz.err: No such file or directory
</pre>
<p>Das liegt daran, weil MySQL in diesem Fall eine default database benötigt. Nachzulesen ist das mit</p>
<pre>
cat /usr/local/share/doc/mysql/README.OpenBSD
</pre>
<p>Hat man ein Mal</p>
<pre>
# /usr/local/bin/mysql_install_db
</pre>
<p>ausgeführt, so kann man sich daran machen, ein root-Passwort zu vergeben:</p>
<pre>
# /usr/local/bin/mysqladmin -u root password new_password
</pre>
<p>Alternativ kann man sich auch ohne Passwort in MySQL einloggen und dort direkt die Benutzertabelle bearbeiten:</p>
<pre>
mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_password');
</pre>
<p><img src="http://www.openbsd.org/art/puffy/puf100X86.gif" alt="openbsd logo" /></p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/01/openbsd-mysql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenBSD: Apache &amp; PHP</title>
		<link>http://hihn.org/2008/01/openbsd-apache-php/</link>
		<comments>http://hihn.org/2008/01/openbsd-apache-php/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 20:12:06 +0000</pubDate>
		<dc:creator>rh</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://hihn.org/?p=29</guid>
		<description><![CDATA[Apache mit PHP auf OpenBSD (in diesem Fall 4.2) zum Laufen bringen. OpenBSD bringt schon einen secure Webserver namnes Apache mit. Man kann ihn gleich nach der Installation starten &#038; testen: # apachectl start /usr/sbin/apachectl start: httpd started PHP kann man entweder aus der Portsammlung kompilieren oder (einfacher &#038; schneller) mit pkg_add installieren: # pkg_add [...]]]></description>
			<content:encoded><![CDATA[<p>Apache mit PHP auf OpenBSD (in diesem Fall <a href="http://openbsd.org/42.html">4.2</a>) zum Laufen bringen.</p>
<p>OpenBSD bringt schon einen secure Webserver namnes Apache mit. Man kann ihn gleich nach der Installation starten &#038; testen:</p>
<pre>
# apachectl start
/usr/sbin/apachectl start: httpd started
</pre>
<p>PHP kann man entweder aus der Portsammlung kompilieren oder (einfacher &#038; schneller) mit <strong>pkg_add</strong> installieren:</p>
<pre>
# pkg_add php5-core
</pre>
<p>Nachdem diese Operation erfolgreich abgeschlossen ist, erscheint folgende Meldung:</p>
<pre>
To finish the install, enable the php5 module with:
    /usr/local/sbin/phpxs -s
---

---
To enable parsing of PHP scripts, add the following to
/var/www/conf/httpd.conf:

    AddType application/x-httpd-php .php
</pre>
<p>In der httpd.conf muss man es aber nicht hinzufügen, denn es steht schon drin &#8211; allerdings auskommentiert.<br />
Das Webserververzeichnis ist übrigens <strong>/var/www/htdocs/</strong><br />
<img src="http://www.openbsd.org/art/puffy/puf100X86.gif" alt="openbsd logo" /></p>
]]></content:encoded>
			<wfw:commentRss>http://hihn.org/2008/01/openbsd-apache-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

