<?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>johker&#039;s blog</title>
	<atom:link href="http://johker.ibutho.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://johker.ibutho.de</link>
	<description>stories about me, my life and my trips</description>
	<lastBuildDate>Sun, 18 Dec 2011 11:53:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Quasseldroid git 15.12.2012</title>
		<link>http://johker.ibutho.de/2011/12/18/quasseldroid-git-15-12-2012/</link>
		<comments>http://johker.ibutho.de/2011/12/18/quasseldroid-git-15-12-2012/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 11:53:38 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[Quassel]]></category>
		<category><![CDATA[Quasseldroid]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=321</guid>
		<description><![CDATA[Mal wieder ein Lebenszeichen von mir Da es schon lange keine neue Quasseldroid Version mehr gab (Quasseldroid Community Builds) habe ich mich dazu entschlossen die neueste Version zu bauen und hier zur Verfügung zu stellen: QuasselDroid git 15.12.2011 Bitte beachtet, &#8230; <a href="http://johker.ibutho.de/2011/12/18/quasseldroid-git-15-12-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Mal wieder ein Lebenszeichen von mir <img src='http://johker.ibutho.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Da es schon lange keine neue Quasseldroid Version mehr gab (<a href="https://github.com/sandsmark/QuasselDroid/wiki/QuasselDroid-Wiki">Quasseldroid Community Builds</a>) habe ich mich dazu entschlossen die neueste Version zu bauen und hier zur Verfügung zu stellen:</p>
<p><a href="http://johker.ibutho.de/blog/wp-content/2011/12/QuasselDroid.apk">QuasselDroid git 15.12.2011</a></p>
<p>Bitte beachtet, dass sich mein Key jederzeit ändern kann. Im Moment ist es ein automatisch generierter und ich plane ihn in naher Zukunft durch meinen eigenen zu ersetzen.</p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2011/12/18/quasseldroid-git-15-12-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thinkpad W510 Suspend</title>
		<link>http://johker.ibutho.de/2011/03/10/thinkpad-w510-suspend/</link>
		<comments>http://johker.ibutho.de/2011/03/10/thinkpad-w510-suspend/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 10:08:22 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[suspend]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[w510]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=310</guid>
		<description><![CDATA[Standardmäßig funktioniert &#8211; zumindest unter Ubuntu 10.10 &#8211; Suspend-to-RAM und Suspend-to-Disk nicht. Um das zu beheben, legt man eine Datei &#8220;/etc/pm/config.d/unload_module&#8221; mit folgendem Inhalt an: SUSPEND_MODULES=&#34;xhci_hcd iwlagn&#34;]]></description>
			<content:encoded><![CDATA[<p>Standardmäßig funktioniert &#8211; zumindest unter Ubuntu 10.10 &#8211; Suspend-to-RAM und Suspend-to-Disk nicht. Um das zu beheben, legt man eine Datei &#8220;<em>/etc/pm/config.d/unload_module</em>&#8221; mit folgendem Inhalt an:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SUSPEND_MODULES</span>=<span style="color: #ff0000;">&quot;xhci_hcd iwlagn&quot;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2011/03/10/thinkpad-w510-suspend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skype Android Login Fix</title>
		<link>http://johker.ibutho.de/2011/01/12/skype-android-login-fix/</link>
		<comments>http://johker.ibutho.de/2011/01/12/skype-android-login-fix/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 14:06:16 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Skype]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=307</guid>
		<description><![CDATA[Ich hatte Probleme mich in Skype anzumelden auf meinem Android Mobiltelefon. Hier die Lösung: http://forum.skype.com/index.php?showtopic=726083]]></description>
			<content:encoded><![CDATA[<p>Ich hatte Probleme mich in Skype anzumelden auf meinem Android Mobiltelefon. Hier die Lösung:</p>
<p>http://forum.skype.com/index.php?showtopic=726083</p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2011/01/12/skype-android-login-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmieren mit VIM</title>
		<link>http://johker.ibutho.de/2010/11/13/programmieren-mit-vim/</link>
		<comments>http://johker.ibutho.de/2010/11/13/programmieren-mit-vim/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 11:41:48 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[beautify]]></category>
		<category><![CDATA[cheats]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[indent]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=302</guid>
		<description><![CDATA[Mal wieder ein Lebenszeichen von mir VIM ist ja bekanntlich mein Lieblingseditor und deshalb wollte ich hier ein paar &#8220;Cheats&#8221; vorstellen: Einrücken/Ausrücken: 1 2 2&#62;&#62; - 2 Zeilen einrücken 2&#60;&#60; - 2 Zeilen ausrücken Die 2 kann wie immer durch &#8230; <a href="http://johker.ibutho.de/2010/11/13/programmieren-mit-vim/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Mal wieder ein Lebenszeichen von mir <img src='http://johker.ibutho.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  VIM ist ja bekanntlich mein Lieblingseditor und deshalb wollte ich hier ein paar &#8220;Cheats&#8221; vorstellen:</p>
<p>Einrücken/Ausrücken:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="" style="font-family:monospace;"><span style="">2</span>&gt;&gt;			- <span style="">2</span> Zeilen einrücken
<span style="">2</span>&lt;&lt;			- <span style="">2</span> Zeilen ausrücken</pre></td></tr></table></div>

<p>Die 2 kann wie immer durch eine andere Zahl ersetzen, um mehr oder weniger Zeilen ein-/auszurücken.</p>
<p>Block kommentieren:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="" style="font-family:monospace;">STRG+V			- Block markieren
I+//			- Kommentarzeichen <span class="br0">&#40;</span>//<span class="br0">&#41;</span> Zeichen einfügen
Esc			- Kommentarzeichen vor jeder Zeile einfügen</pre></td></tr></table></div>

<p>Block auskommentieren:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="" style="font-family:monospace;">STRG+V			- Kommentarzeichen <span class="br0">&#40;</span>//<span class="br0">&#41;</span> markieren
x			- Kommentarzeichen löschen</pre></td></tr></table></div>

<p>Suche:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="" style="font-family:monospace;">:set ic			- Case-insensitive
:noh			- Suchwort Highlighting entfernen
%			- Zur dazugehörigen Klammer springen</pre></td></tr></table></div>

<p>Code Formatierung:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="" style="font-family:monospace;">gg=G			- Code einrücken
:!indent %		- Code schöner machen <span class="br0">&#40;</span>beautify<span class="br0">&#41;</span></pre></td></tr></table></div>

<p>Ich hoffe die Befehle helfen einigen von euch weiter <img src='http://johker.ibutho.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2010/11/13/programmieren-mit-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sommerpraktikum</title>
		<link>http://johker.ibutho.de/2010/05/29/sommerpraktikum/</link>
		<comments>http://johker.ibutho.de/2010/05/29/sommerpraktikum/#comments</comments>
		<pubDate>Sat, 29 May 2010 09:55:09 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[Extreme Blue]]></category>
		<category><![CDATA[datenbank]]></category>
		<category><![CDATA[FPGA]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Power]]></category>
		<category><![CDATA[Praktikum]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=299</guid>
		<description><![CDATA[Are you extreme? Im Sommer werde ich ein Praktikum bei der Firma IBM absolvieren. Es geht darum einen Datenbankbeschleuniger auf FPGA Basis zu entwickeln. Das Ganze findet im Rahmen des Extreme Blue Programms statt. Abschlusspräsentation ist dann in Dublin. Bin &#8230; <a href="http://johker.ibutho.de/2010/05/29/sommerpraktikum/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Are you extreme? Im Sommer werde ich ein Praktikum bei der Firma IBM absolvieren. Es geht darum einen Datenbankbeschleuniger auf FPGA Basis zu entwickeln. Das Ganze findet im Rahmen des Extreme Blue Programms statt. Abschlusspräsentation ist dann in Dublin.<br />
Bin schon super gespannt wie es so wird. Man hat ja nur gutes über Extreme Blue gelesen und vor allem liegt es dank der Datenbankbeziehung genau in meinem Interessensgebiet. Dazu gibt es noch einen Einblick in ein anderes höchst spannendes Gebiet, die Hardware(nahe)-Programmierung.<br />
Weitere Informationen zum Projekt findet man unter: <a href="http://www-05.ibm.com/de/entwicklung/extremeblue/projekte.html#foo3">http://www-05.ibm.com/de/entwicklung/extremeblue/projekte.html#foo3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2010/05/29/sommerpraktikum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Side-by-Side Configuration</title>
		<link>http://johker.ibutho.de/2010/04/22/side-by-side-configuration/</link>
		<comments>http://johker.ibutho.de/2010/04/22/side-by-side-configuration/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 12:03:47 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fehler]]></category>
		<category><![CDATA[side-by-side]]></category>
		<category><![CDATA[vc++ redistributable]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=296</guid>
		<description><![CDATA[Falls mal jemand den gleichen Fehler wie ich hat unter Windows 7: http://www.windowsproblems.org/2010/01/04/side-by-side-configuration-error-in-windows-7/ Nummer 2-4 haben zum gewünschten Erfolg geführt. Nummer 1 war nicht anwendbar.]]></description>
			<content:encoded><![CDATA[<p>Falls mal jemand den gleichen Fehler wie ich hat unter Windows 7:<br />
<a href="http://www.windowsproblems.org/2010/01/04/side-by-side-configuration-error-in-windows-7/">http://www.windowsproblems.org/2010/01/04/side-by-side-configuration-error-in-windows-7/</a><br />
Nummer 2-4 haben zum gewünschten Erfolg geführt. Nummer 1 war nicht anwendbar.</p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2010/04/22/side-by-side-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ade StudiVZ</title>
		<link>http://johker.ibutho.de/2010/04/18/ade-studivz/</link>
		<comments>http://johker.ibutho.de/2010/04/18/ade-studivz/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 18:23:03 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[account löschen]]></category>
		<category><![CDATA[ausstieg]]></category>
		<category><![CDATA[bedienkomfort]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[soziales netzwerk]]></category>
		<category><![CDATA[studivz]]></category>
		<category><![CDATA[unprofessionell]]></category>
		<category><![CDATA[xing]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=294</guid>
		<description><![CDATA[Die Konkurrenz schläft nicht. Ganz und gar nicht. StudiVZ ist schon seit langer Zeit das unprofessionellste und am benutzerunfreundlichste soziale Netzwerk bei dem ich Mitglied bin/war (Anm.: meine subjektive Meinung, wie auch der Rest des Artikels). Außerdem gehen mir die &#8230; <a href="http://johker.ibutho.de/2010/04/18/ade-studivz/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Die Konkurrenz schläft nicht. Ganz und gar nicht. StudiVZ ist schon seit langer Zeit das unprofessionellste und am benutzerunfreundlichste soziale Netzwerk bei dem ich Mitglied bin/war (Anm.: meine subjektive Meinung, wie auch der Rest des Artikels). Außerdem gehen mir die Meldungen über neue Sicherheitslücken und geklaute Daten auf die Nerven und wie damit seitens StudiVZ umgegangen wird. Einige mögen es, einige mögen es nicht. Ich gehöre zu letzterer Fraktion. Ich bin von Facebook und Xing einfach viel zu sehr verwöhnt. Dort steht der Bedienkomfort deutlich weiter im Vordergrund als bei StudiVZ. Auch habe ich eine viel bessere Kontrolle über meine Daten, die Innovationskraft liegt weit höher als bei StudiVZ und die Benutzung macht richtig Spaß.<br />
Es gibt sicher noch viel mehr Gründe, die dafür sprechen bei StudiVZ auszusteigen (und wahrscheinlich auch genauso viele um dabei zu bleiben). Mir jedenfalls reichen Facebook und Xing.</p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2010/04/18/ade-studivz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sammelleidenschaft</title>
		<link>http://johker.ibutho.de/2010/02/15/sammelleidenschaft/</link>
		<comments>http://johker.ibutho.de/2010/02/15/sammelleidenschaft/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 10:04:23 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[Konsolen]]></category>
		<category><![CDATA[50/60Hz]]></category>
		<category><![CDATA[Cartmod]]></category>
		<category><![CDATA[Cartmodding]]></category>
		<category><![CDATA[Controller Mod]]></category>
		<category><![CDATA[Fantranslation]]></category>
		<category><![CDATA[Fanübersetzung]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Lockout]]></category>
		<category><![CDATA[Retro]]></category>
		<category><![CDATA[Rollenspiel]]></category>
		<category><![CDATA[RPG]]></category>
		<category><![CDATA[SNES]]></category>
		<category><![CDATA[Super Nintendo]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=291</guid>
		<description><![CDATA[Gerade kurz vor den Klausuren sucht man sich ja immer mal wieder gerne Beschäftigungen um sich vom Lernen abzuhalten. So ist das auch bei mir. Meine Sammelleidenschaft wurde wieder neu entfacht. Und das für meine treue Kindheitskonsole: das Super Nintendo. &#8230; <a href="http://johker.ibutho.de/2010/02/15/sammelleidenschaft/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Gerade kurz vor den Klausuren sucht man sich ja immer mal wieder gerne Beschäftigungen um sich vom Lernen abzuhalten. So ist das auch bei mir. Meine Sammelleidenschaft wurde wieder neu entfacht. Und das für meine treue Kindheitskonsole: das Super Nintendo. Bis heute hat es keine einzige Konsole geschafft mich so zu fesseln wie das SNES zu seiner Zeit. Auf keiner Konsole gab es so viele faszinierende Rollenspiele wie auf dem Super Nintendo. Höchste Zeit die Konsole mal wieder auszupacken und die Spielesammlung etwas zu erweitern. Insbesondere mit Spieleperlen wie Star Ocean, Tales of Phantasia, Secret of Mana 2, &#8230; kurzum mit Spielen, die es nie nach Europa bzw. in die USA geschafft haben und die durch Fanübersetzungen für mich erst spielbar wurden. Da am Emulator kein so richtiges Flair aufkommen will, muss ein anderer Weg her diese Spiele auf dem SNES zu spielen. Das Stichwort heißt Cartmodding und damit verbunden auch andere Hardware-Hacks an der Konsole. Mehr zu diesen Themen bald hier auf dem Blog, bzw. auf einer gesonderten Projektseite.</p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2010/02/15/sammelleidenschaft/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Neue Universität, alter Stress</title>
		<link>http://johker.ibutho.de/2010/02/11/neue-universitat-alter-stress/</link>
		<comments>http://johker.ibutho.de/2010/02/11/neue-universitat-alter-stress/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 08:51:04 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[Studium]]></category>
		<category><![CDATA[Anerkennung]]></category>
		<category><![CDATA[Antrag]]></category>
		<category><![CDATA[BA Stuttgart]]></category>
		<category><![CDATA[Bachelor]]></category>
		<category><![CDATA[Beamte]]></category>
		<category><![CDATA[Bologna-Prozess]]></category>
		<category><![CDATA[Chaos]]></category>
		<category><![CDATA[ECTS]]></category>
		<category><![CDATA[Hochschule]]></category>
		<category><![CDATA[Master]]></category>
		<category><![CDATA[Prüfungsausschuss]]></category>
		<category><![CDATA[Ungerechtigkeit]]></category>
		<category><![CDATA[Universität]]></category>
		<category><![CDATA[Verwaltungshölle]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=289</guid>
		<description><![CDATA[Man sollte meinen andere Hochschulen seien besser organisiert als die Berufsakademie Stuttgart, doch weit gefehlt! Wenn ich einen Vergleich ziehe, dann ist die BA Stuttgart die bestorganisierte Hochschule, die ich kenne (allerdings kenne ich nur 2 Hochschulen). Sekretärinnen haben keine &#8230; <a href="http://johker.ibutho.de/2010/02/11/neue-universitat-alter-stress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Man sollte meinen andere Hochschulen seien besser organisiert als die Berufsakademie Stuttgart, doch weit gefehlt! Wenn ich einen Vergleich ziehe, dann ist die BA Stuttgart die bestorganisierte Hochschule, die ich kenne (allerdings kenne ich nur 2 Hochschulen). Sekretärinnen haben keine Sprechstunden, man hat definitive Ansprechpartner, Probleme können schnell, unkompliziert und unbürokratisch gelöst werden, &#8230;<br />
 Ganz anders hier. Mit meiner Zulassung zum Masterstudiengang waren Zulassungsauflagen verbunden. Ich will hier nicht pauschal behaupten, dass man BA-Studenten damit einen Stein in den Weg legen will, z.B. weil man sie an regulären Hochschulen nicht oder nur sehr ungern aufnehmen will, aber der Eindruck kann schnell entstehen. Natürlich gab ich mich mit den Zulassungsauflagen nicht zufrieden, da ich alle Leistungen, die ich nachholen sollte schon an der BA Stuttgart erfolgreich erbracht habe. Also hieß es: Bescheinigungen an der BA einholen, Anträge schreiben, begründen, Gegenüberstellungstabellen ausfüllen, etc etc. Der Antrag ging letzte Woche dann endlich durch den Prüfungsausschuss und siehe da: er wurde in allen Punkten bewilligt. Mein (naheliegender) Schluss ist nun, dass einem wirklich jemand Steine in den Weg legen will oder dass Zulassungsanträge nicht individuell bearbeitet werden, sondern sobald ein gewisses Stichwort gefunden wurde (wie z.B. Berfusakademie) pauschal (nicht gerechtfertigte) Auflagen erteilt werden.<br />
Mein Tipp für alle, denen es ähnlich geht: Wenn ihr euch ungerecht behandelt fühlt, wehrt euch! Und wehrt euch früh, denn wenn man es erst kurz vor Semesterende macht, wie z.B. ich, dann ist der Stundenplan schon versaut und man kommt nicht auf seine XX ECTS-Punkte, die man in einem Semester sammeln soll, damit man das Studium in der Regelstudienzeit abschließen kann. Der Prüfungsausschuss ist gerne bereit sein &#8220;Urteil&#8221; zu revidieren, wenn man nachvollziehbar darlegt, dass man geforderte Leistungen schon erbracht hat.</p>
<p>P.S.: Meine Auflagen waren das Nachholen von Theoretischer Informatik, Mathematik 3 (z.B. Gleichungen mehrerer Veränderlicher, Integralrechnung), sowie Algorithmen. Also nicht gerade wenig Auflagen und auch nicht gerade wenig anspruchsvoll. Und vor allem völlig unnötig, wenn man die Leistungen schon erbracht hat&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2010/02/11/neue-universitat-alter-stress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Der neue Server: Teil X Sonstiges</title>
		<link>http://johker.ibutho.de/2010/01/13/der-neue-server-teil-x-sonstiges/</link>
		<comments>http://johker.ibutho.de/2010/01/13/der-neue-server-teil-x-sonstiges/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 18:33:15 +0000</pubDate>
		<dc:creator>johker</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[a2ensite]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[chrooted]]></category>
		<category><![CDATA[csr]]></category>
		<category><![CDATA[diffie-hellman]]></category>
		<category><![CDATA[guest]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[tausch]]></category>
		<category><![CDATA[vHost]]></category>
		<category><![CDATA[vhost automation]]></category>

		<guid isPermaLink="false">http://johker.ibutho.de/?p=159</guid>
		<description><![CDATA[Der Entwurf zu diesem Beitrag ist schon fast ein Jahr alt. Ich will ihn nun endlich mal veröffentlichen in der Hoffnung, dass er einigen Leuten hilft und ihnen Arbeit abnimmt. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; In diesem Beitrag sind alle Dinge zusammengefasst, die thematisch &#8230; <a href="http://johker.ibutho.de/2010/01/13/der-neue-server-teil-x-sonstiges/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Der Entwurf zu diesem Beitrag ist schon fast ein Jahr alt. Ich will ihn nun endlich mal veröffentlichen in der Hoffnung, dass er einigen Leuten hilft und ihnen Arbeit abnimmt.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>In diesem Beitrag sind alle Dinge zusammengefasst, die thematisch nicht direkt zusammenpassen oder nicht direkt in einen einzigen Beitrag passen, da sie mehrere Themen streifen.</p>
<h1>ssl-Zertifikat erstellen</h1>
<p>Jetzt erstellen wir ein <em>ssl</em>-Zertifikat, welches wir bei <a href="http://cacert.org/" target="_blank">cacert.org</a> signieren lassen. Dies bietet einige Vorteile gegenüber dem Selbst-Signieren (self-signing). Leider ist das <em>cacert.org</em> Root-Zertifikat noch nicht in Firefox aufgenommen und somit erhält man immer diese lästige Warnung, wenn man eine cacert-zertifizierte Webseite aufruft, bis man deren Root-Zertifikat in Firefox importiert.<br />
Am Besten geht man nach dieser Anleitung vor zum Erstellen eines Zertifikats: <a href="http://wiki.cacert.org/wiki/CSRGenerator" target="_blank">http://wiki.cacert.org/wiki/CSRGenerator</a>. Danach verschiebt man den Private-Key nach &#8220;<em>/etc/ssl/private</em>&#8221; und den Public-Key nach &#8220;<em>/etc/ssl/certs</em>&#8220;. Nun kann man das Zertifikat z.B. in Apache verwenden, aber auch für den Mailserver, IMAP-/POP-Server, svn, &#8230; Sollte eine Applikation nicht auf den Private-Key zugreifen können, benötigt aber Zugriff darauf, so muss man den Benutzer unter der die Applikation läuft in die Gruppe &#8220;<em>ssl-cert</em>&#8221; aufnehmen (<strong>ACHTUNG:</strong> Dies könnte ein Sicherheitsrisiko darstellen!).</p>
<h2>Diffie-Hellman-Code erzeugen</h2>
<p>Dies wird z.B. für postfix gebraucht, aber auch für einige IMAP-Server, deshalb erzeugen wir hier diesen Code und speichern ihn unter &#8220;/etc/ssl/private/&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">openssl gendh <span style="color: #660033;">-out</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>private<span style="color: #000000; font-weight: bold;">/</span>dh_1024.pem <span style="color: #660033;">-2</span> <span style="color: #660033;">-rand</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #000000;">1024</span>
openssl gendh <span style="color: #660033;">-out</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>private<span style="color: #000000; font-weight: bold;">/</span>dh_512.pem <span style="color: #660033;">-2</span> <span style="color: #660033;">-rand</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #000000;">512</span></pre></div></div>

<h2>SSL-vHost in apache erstellen</h2>
<p>Um in <em>apache</em> einen SSL-vHost erstellen kann, muss man die Datei <em>ports.conf</em> unter &#8220;<em>/etc/apache2</em>&#8221; ändern und die folgende Zeilen hinzufügen/ergänzen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>IfModule mod_ssl.c<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #666666; font-style: italic;"># SSL name based virtual hosts are not yet supported, therefore no</span>
    <span style="color: #666666; font-style: italic;"># NameVirtualHost statement here</span>
    NameVirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">443</span>
    Listen <span style="color: #000000;">443</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>IfModule<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Danach können wie gehabt vHosts erstellt werden, mit dem Unterschied, dass die Zeile &#8220;<VirtualHost *:80>&#8221; in &#8220;<VirtualHost *:443>&#8221; geändert werden und folgende Zeilen hinzugefügt werden:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">        SSLEngine on
        SSLCertificateFile <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>certs<span style="color: #000000; font-weight: bold;">/</span>server.pem
        SSLCertificateKeyFile <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>private<span style="color: #000000; font-weight: bold;">/</span>privatekey.pem
        SSLCipherSuite HIGH
        SSLProtocol all <span style="color: #660033;">-SSLv2</span></pre></div></div>

<p>Weiter unten stelle ich ein Skript vor, mit welchem man bequem vHosts (sowohl mit und ohne SSL) erstellen kann und automatisch von Port 80 auf Port 443 weiterleiten, wenn der vHost SSL unterstützt.</p>
<p>Quellen:<br />
<a href="http://wiki.cacert.org/wiki/CSRGenerator" target="_blank">http://wiki.cacert.org/wiki/CSRGenerator</a><br />
<a href="http://cacert.org/" target="_blank">http://cacert.org/</a></p>
<h1>sftp-Gastzugang</h1>
<p>Oft möchte man Leuten einen Zuganz zu seinem Server verschaffen, damit man etwas in ein bestimmtes Verzeichnis hochladen, bzw. daraus herunterladen darf, aber nicht aus diesem Verzeichnis herausnavigieren darf und evtl. Schaden anrichten kann. Dies kann man mit openSSH 5.0 sehr einfach lösen, da es eingebaute chroot-Mechanismen hat. So kann man z.B. eine ganze Gruppe auf ihr Home-Laufwerk oder einen anderen Ordner beschränken oder aber auch nur einen einzigen Benutzer. Im Folgenden legen wir eine Gruppe &#8220;<em>chrooted</em>&#8221; an, welche auf ihr Home-Laufwerk beschränkt sein wird. Alle Home-Laufwerke dieser Gruppe werden standardmäßig unter &#8220;<em>/home/chrooted</em>&#8221; liegen. Für unseren Gastbenutzer legen wir darunter ein Verzeichnis &#8220;<em>upload</em>&#8221; an und ändern die Rechte entsprechend:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> upload
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #000000; font-weight: bold;">&lt;</span>uploaduser<span style="color: #000000; font-weight: bold;">&gt;</span>:<span style="color: #c20cb9; font-weight: bold;">users</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>chrooted<span style="color: #000000; font-weight: bold;">/</span>upload
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">775</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>chrooted<span style="color: #000000; font-weight: bold;">/</span>upload</pre></div></div>

<p>Will man Ordner außerhalb des Home-Laufwerks zugänglich machen, kann man diese mit &#8220;<em>mount -o bind</em>&#8221; temporär einbinden, bzw. über die &#8220;<em>/etc/fstab</em>&#8221; dauerhaft:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>pfad<span style="color: #000000; font-weight: bold;">/</span>zum<span style="color: #000000; font-weight: bold;">/</span>quellverzeichnis <span style="color: #000000; font-weight: bold;">/</span>pfad<span style="color: #000000; font-weight: bold;">/</span>zum<span style="color: #000000; font-weight: bold;">/</span>zielverzeichnis none rw,<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #000000;">0</span> <span style="color: #000000;">0</span></pre></div></div>

<p>Gruppe &#8220;<em>chrooted</em>&#8221; anlegen:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">addgroup <span style="color: #660033;">--system</span> chrooted</pre></div></div>

<p>Um einen Benutzer in die Gruppe &#8220;<em>chrooted</em>&#8221; aufzunehmen, führt man folgenden Befehl aus:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">adduser <span style="color: #000000; font-weight: bold;">&lt;</span>uploaduser<span style="color: #000000; font-weight: bold;">&gt;</span> chrooted</pre></div></div>

<p>Danach muss man die <em>sshd_config</em> anpassen, bzw. erweitern:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Subsystem sftp /usr/lib/openssh/sftp-server</span>
Subsystem sftp internal-sftp
&nbsp;
Match group chrooted
        <span style="color: #666666; font-style: italic;"># chroot all users of these group to their homes</span>
        <span style="color: #666666; font-style: italic;"># %h will be substituted by the user's home</span>
        <span style="color: #666666; font-style: italic;"># %u will be substituted with the user's user name</span>
        ChrootDirectory <span style="color: #000000; font-weight: bold;">%</span>h
        AllowTcpForwarding no
        ForceCommand internal-sftp</pre></div></div>

<p>Wichtig ist, dass das Home-Verzeichnis des Benutzers <strong>root</strong> gehören muss (&#8220;chown root: /pfad/zu/home&#8221;). Die Unterordner sollten dann wieder dem Benutzer gehören, damit das ganze auch Sinn macht und er Dateien hoch-/runterladen kann. In unserem Beispiel bedeutet das, dass &#8220;<em>/home/chrooted</em>&#8221; root gehören muss und &#8220;<em>/home/chrooted/upload</em>&#8221; dem <uploaduser>.<br />
Zusätzlich kann man nun noch unter &#8220;/etc/passwd&#8221; die Standardkonsole des <uploadusers> auf &#8220;<em>/bin/false</em>&#8221; setzen, denn der Benutzer darf sich nur via <em>sftp</em> anmelden und nicht über die Konsole:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>uploaduser<span style="color: #000000; font-weight: bold;">&gt;</span>:x:<span style="color: #000000;">1666</span>:<span style="color: #000000;">1666</span>:Guest upload-account,,,:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>chrooted:<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">false</span></pre></div></div>

<p>Quellen:<br />
<a href="http://binblog.wordpress.com/2008/04/06/openssh-chrooted-sftp-eg-for-webhosting/" target="_blank">http://binblog.wordpress.com/2008/04/06/openssh-chrooted-sftp-eg-for-webhosting/</a><br />
<a href="http://www.debian-administration.org/articles/590" target="_blank">http://www.debian-administration.org/articles/590</a></p>
<h1>Tauschverzeichnis anlegen</h1>
<p>Da alle Konsolenbenutzer auch Mitglied in der Gruppe &#8220;<em>users</em>&#8221; sind, ist es ein leichtes ein Tausch-Verzeichnis unter &#8220;<em>/home/shared</em>&#8221; anzulegen. Darunter legen wir &#8211; der Benutzerfreundlichkeit zuliebe &#8211; einen Symlink nach &#8220;/home/chrooted/upload&#8221; an (siehe vorheriges Kapitel):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>shared
<span style="color: #c20cb9; font-weight: bold;">chown</span> root:<span style="color: #c20cb9; font-weight: bold;">users</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>shared
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">775</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>shared
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>chrooted<span style="color: #000000; font-weight: bold;">/</span>upload upload</pre></div></div>

<p>Nun können sich alle Konsolenbenutzer über dieses Verzeichnis austauschen und auf die Dateien des Gast-Accounts zugreifen, welche für ihn bereitstellen bzw. je nach Rechten auch welche löschen.</p>
<h1>vHosts-Skript</h1>
<p>Um einem die Arbeit etwas zu erleichtern habe ich schnell ein kleines <em>bash</em>-Skript runtergehackt, mit welchem man bequem vHosts unter <em>apache2</em> anlegen kann. Ist man nach <a href="http://johker.ibutho.de/2009/03/22/der-neue-server-teil-4-apache/">Der neue Server: Teil 4 apache</a> vorgegangen, so müssen im Skript normalerweise keine Änderungen vorgenommen werden, anderfalls braucht das Skript evtl. ein paar Anpassungen.</p>
<p>Hier das Skript:</p>
<p><i>createVhost.sh:</i></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># createVhost.sh - Creates an Apache2 vHost configuration</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Copyright (C) 2009 johker</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License v2 for more details.</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">### CHANGE ME! ###</span>
&nbsp;
<span style="color: #007800;">WWW_ROOT</span>=<span style="color: #ff0000;">&quot;/var/www&quot;</span>
<span style="color: #007800;">SITES_ROOT</span>=<span style="color: #ff0000;">&quot;/etc/apache2/sites-available&quot;</span>
&nbsp;
<span style="color: #007800;">CHANGE_PHP_INI</span>=<span style="color: #ff0000;">&quot;no&quot;</span>
&nbsp;
<span style="color: #007800;">EXAMPLE_ROOT</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$WWW_ROOT</span>/example&quot;</span>
<span style="color: #007800;">SITES_EXAMPLE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SITES_ROOT</span>/example&quot;</span>
<span style="color: #007800;">SITES_EXAMPLE_SSL</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SITES_EXAMPLE</span>-ssl&quot;</span>
&nbsp;
<span style="color: #007800;">SSL_PRIV_DEFAULT</span>=<span style="color: #ff0000;">&quot;/etc/ssl/private/privatekey.pem&quot;</span>
<span style="color: #007800;">SSL_PUB_DEFAULT</span>=<span style="color: #ff0000;">&quot;/etc/ssl/certs/publickey.pem&quot;</span>
&nbsp;
<span style="color: #007800;">PHP_INI_TEMPLATE</span>=<span style="color: #ff0000;">&quot;/etc/php5/cgi/php.ini&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">### END CHANGE ME! ###</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#############################################################</span>
<span style="color: #666666; font-style: italic;">########## DO NOT CHANGE ANYTHING BELOW THIS LINE! ##########</span>
<span style="color: #666666; font-style: italic;">#############################################################</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Make sure only root can run our script</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(id -u)</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ERROR: This script must be run as root!&quot;</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
	<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Query the user for some details</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;Domain name: &quot;</span> SRV_NAME
<span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;Domain aliases (leave blank if no aliases available, separated by blank): &quot;</span> SRV_ALIAS
<span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;Admin e-mail address: &quot;</span> SRV_ADMIN
<span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;vHost owner (system user): &quot;</span> USER
<span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-p</span>  <span style="color: #ff0000;">&quot;Use SSL (yes/no)[no]: &quot;</span> SSL
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #007800;">$SSL</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #666666; font-style: italic;"># set default value</span>
	<span style="color: #007800;">SSL</span>=<span style="color: #ff0000;">&quot;no&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$SSL</span> == <span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;SSL private key[<span style="color: #007800;">$SSL_PRIV_DEFAULT</span>]: &quot;</span> CERT_PRIV
	<span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;SSL public key[<span style="color: #007800;">$SSL_PUB_DEFAULT</span>]: &quot;</span> CERT_PUB
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #007800;">$CERT_PRIV</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #666666; font-style: italic;"># set default value</span>
		<span style="color: #007800;">CERT_PRIV</span>=<span style="color: #007800;">$SSL_PRIV_DEFAULT</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #007800;">$CERT_PUB</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #666666; font-style: italic;"># set default value</span>
		<span style="color: #007800;">CERT_PUB</span>=<span style="color: #007800;">$SSL_PUB_DEFAULT</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">VHOST_ROOT</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$WWW_ROOT</span>/<span style="color: #007800;">$SRV_NAME</span>&quot;</span>
<span style="color: #007800;">DOC_ROOT</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$VHOST_ROOT</span>/docs&quot;</span>
<span style="color: #007800;">CONF_ROOT</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$VHOST_ROOT</span>/conf&quot;</span>
<span style="color: #007800;">LOG_ROOT</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$VHOST_ROOT</span>/logs&quot;</span>
<span style="color: #007800;">TMP_ROOT</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$VHOST_ROOT</span>/tmp&quot;</span>
&nbsp;
<span style="color: #007800;">PHP_FCGI</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$CONF_ROOT</span>/php-fcgi.conf&quot;</span>
<span style="color: #007800;">PHP_INI</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$CONF_ROOT</span>/php.ini&quot;</span>
&nbsp;
<span style="color: #007800;">VHOST_CONF</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SITES_ROOT</span>/<span style="color: #007800;">$SRV_NAME</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># GROUP equals USER</span>
<span style="color: #007800;">GROUP</span>=<span style="color: #007800;">$USER</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> changeFcgiConfig <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #666666; font-style: italic;"># adjust fcgi config</span>
	<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{SRV_NAME}!<span style="color: #007800;">$SRV_NAME</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$PHP_FCGI</span>
	<span style="color: #666666; font-style: italic;"># ... php.ini</span>
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$CHANGE_PHP_INI</span> == <span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!;upload_tmp_dir =!upload_tmp_dir = <span style="color: #007800;">$TMP_ROOT</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$PHP_INI</span>
		<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!;open_basedir =!open_basedir = <span style="color: #007800;">$DOC_ROOT</span>:<span style="color: #007800;">$TMP_ROOT</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$PHP_INI</span>
		<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!;session.save_path = /var/lib/php5!session.save_path = <span style="color: #007800;">$TMP_ROOT</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$PHP_INI</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> createDirs <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #666666; font-style: italic;"># create the directory structure</span>
&nbsp;
	<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-R</span> <span style="color: #007800;">$EXAMPLE_ROOT</span> <span style="color: #007800;">$VHOST_ROOT</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$CHANGE_PHP_INI</span> == <span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #666666; font-style: italic;"># don't put a symlink to php.ini in $CONF_ROOT, but copy it there</span>
		<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$CONF_ROOT</span><span style="color: #000000; font-weight: bold;">/</span>php.ini
		<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #007800;">$PHP_INI_TEMPLATE</span> <span style="color: #007800;">$CONF_ROOT</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
	changeFcgiConfig
&nbsp;
	<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #007800;">$USER</span>:<span style="color: #007800;">$GROUP</span> <span style="color: #660033;">-R</span> <span style="color: #007800;">$VHOST_ROOT</span>
&nbsp;
	<span style="color: #c20cb9; font-weight: bold;">chattr</span> +i <span style="color: #007800;">$CONF_ROOT</span><span style="color: #000000; font-weight: bold;">/</span>php-fcgi.conf
	<span style="color: #666666; font-style: italic;"># as $CONF_ROOT/php.ini is just a symlink most of the time, chattr will usually fail</span>
	<span style="color: #c20cb9; font-weight: bold;">chattr</span> +i <span style="color: #007800;">$CONF_ROOT</span><span style="color: #000000; font-weight: bold;">/</span>php.ini <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> createApacheConfig <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #666666; font-style: italic;"># now let's adjust the apache vHost-configuration</span>
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$SSL</span> == <span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #007800;">$SITES_EXAMPLE_SSL</span> <span style="color: #007800;">$VHOST_CONF</span>
	<span style="color: #000000; font-weight: bold;">else</span>
		<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #007800;">$SITES_EXAMPLE</span> <span style="color: #007800;">$VHOST_CONF</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
	<span style="color: #666666; font-style: italic;"># now do sed operations on $VHOST_CONF</span>
	<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{SRV_NAME}!<span style="color: #007800;">$SRV_NAME</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$SRV_ALIAS</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{SRV_ALIAS}!!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
	<span style="color: #000000; font-weight: bold;">else</span>
		<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{SRV_ALIAS}!<span style="color: #007800;">$SRV_ALIAS</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
		<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!#	ServerAlias!	ServerAlias!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
	<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{SRV_ADMIN}!<span style="color: #007800;">$SRV_ADMIN</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
	<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{USER}!<span style="color: #007800;">$USER</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
	<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{GROUP}!<span style="color: #007800;">$GROUP</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
&nbsp;
	<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{DOC_ROOT}!<span style="color: #007800;">$DOC_ROOT</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
	<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{CONF_ROOT}!<span style="color: #007800;">$CONF_ROOT</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
	<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{LOG_ROOT}!<span style="color: #007800;">$LOG_ROOT</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$SSL</span> == <span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{CERT_PUB}!<span style="color: #007800;">$CERT_PUB</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
		<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s!{CERT_PRIV}!<span style="color: #007800;">$CERT_PRIV</span>!g&quot;</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$VHOST_CONF</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
createDirs
createApacheConfig
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></td></tr></table></div>

<p>Die dazugehörenden Ordnerstruktur unter &#8220;<em>/var/www/example</em>&#8220;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>example
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>example<span style="color: #000000; font-weight: bold;">/</span>conf
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>example<span style="color: #000000; font-weight: bold;">/</span>docs
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>example<span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>example<span style="color: #000000; font-weight: bold;">/</span>logs
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>example<span style="color: #000000; font-weight: bold;">/</span>logs<span style="color: #000000; font-weight: bold;">/</span>access.log
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>example<span style="color: #000000; font-weight: bold;">/</span>logs<span style="color: #000000; font-weight: bold;">/</span>error.log
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>cgi<span style="color: #000000; font-weight: bold;">/</span>php.ini <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>example<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>php.ini</pre></div></div>

<p>Hier noch die Datei &#8220;<em>php-fcgi.conf</em>&#8220;, welche nach &#8220;<em>/var/www/example/conf/</em>&#8221; gehört: </p>
<p><i>php-fcgi.conf:</i></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #007800;">PHPRC</span>=<span style="color: #ff0000;">&quot;/var/www/{SRV_NAME}/conf&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> PHPRC
<span style="color: #007800;">PHP_FCGI_CHILDREN</span>=<span style="color: #000000;">3</span>
<span style="color: #7a0874; font-weight: bold;">export</span> PHP_FCGI_CHILDREN
<span style="color: #7a0874; font-weight: bold;">exec</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php5-cgi</pre></div></div>

<p>Dazu noch die vHost-configs &#8220;example&#8221;, sowie &#8220;example-ssl&#8221; unter /etc/apache2/sites-available&#8221;:</p>
<ul>
<li><i>example</i>:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&gt;</span>
        SuExecUserGroup <span style="color: #7a0874; font-weight: bold;">&#123;</span>USER<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>GROUP<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
        ServerName <span style="color: #7a0874; font-weight: bold;">&#123;</span>SRV_NAME<span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #666666; font-style: italic;">#	ServerAlias {SRV_ALIAS}</span>
        ServerAdmin <span style="color: #7a0874; font-weight: bold;">&#123;</span>SRV_ADMIN<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
        DocumentRoot <span style="color: #7a0874; font-weight: bold;">&#123;</span>DOC_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span>
        AddHandler fcgid-script .php
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #7a0874; font-weight: bold;">&#123;</span>DOC_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
                FCGIWrapper <span style="color: #7a0874; font-weight: bold;">&#123;</span>CONF_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">/</span>php-fcgi.conf .php
                Options +SymLinksIfOwnerMatch +MultiViews +ExecCGI <span style="color: #660033;">-Indexes</span>
                AllowOverride FileInfo AuthConfig
                Order allow,deny
                allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ErrorLog <span style="color: #7a0874; font-weight: bold;">&#123;</span>LOG_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">/</span>error.log
        CustomLog <span style="color: #7a0874; font-weight: bold;">&#123;</span>LOG_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">/</span>access.log combined
        LogLevel warn
        ServerSignature Off
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

</li>
<li><i>example-ssl</i>:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">&gt;</span>
        ServerName <span style="color: #7a0874; font-weight: bold;">&#123;</span>SRV_NAME<span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #666666; font-style: italic;">#	ServerAlias {SRV_ALIAS}</span>
        ServerAdmin <span style="color: #7a0874; font-weight: bold;">&#123;</span>SRV_ADMIN<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;</span>IfModule mod_ssl.c<span style="color: #000000; font-weight: bold;">&gt;</span>
          RewriteEngine   on
	  RewriteCond     <span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>SERVER_PORT<span style="color: #7a0874; font-weight: bold;">&#125;</span> ^<span style="color: #000000;">80</span>$
          RewriteRule     ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>$ https:<span style="color: #000000; font-weight: bold;">//%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>SERVER_NAME<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #007800;">$1</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>L,R<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
	  RewriteLog      <span style="color: #7a0874; font-weight: bold;">&#123;</span>LOG_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">/</span>rewrite.log
          RewriteLogLevel <span style="color: #000000;">2</span>
	<span style="color: #000000; font-weight: bold;">&lt;/</span>IfModule<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ErrorLog <span style="color: #7a0874; font-weight: bold;">&#123;</span>LOG_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">/</span>error.log
        CustomLog <span style="color: #7a0874; font-weight: bold;">&#123;</span>LOG_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">/</span>access.log combined
        LogLevel warn
&nbsp;
        ServerSignature Off
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;</span>VirtualHost <span style="color: #000000; font-weight: bold;">*</span>:<span style="color: #000000;">443</span><span style="color: #000000; font-weight: bold;">&gt;</span>
        SuExecUserGroup <span style="color: #7a0874; font-weight: bold;">&#123;</span>USER<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>GROUP<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
        ServerName <span style="color: #7a0874; font-weight: bold;">&#123;</span>SRV_NAME<span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #666666; font-style: italic;">#	ServerAlias {SRV_ALIAS}</span>
        ServerAdmin <span style="color: #7a0874; font-weight: bold;">&#123;</span>SRV_ADMIN<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
        SSLEngine on
        SSLCertificateFile <span style="color: #7a0874; font-weight: bold;">&#123;</span>CERT_PUB<span style="color: #7a0874; font-weight: bold;">&#125;</span>
        SSLCertificateKeyFile <span style="color: #7a0874; font-weight: bold;">&#123;</span>CERT_PRIV<span style="color: #7a0874; font-weight: bold;">&#125;</span>
        SSLCipherSuite HIGH
        SSLProtocol all <span style="color: #660033;">-SSLv2</span>
&nbsp;
        DocumentRoot <span style="color: #7a0874; font-weight: bold;">&#123;</span>DOC_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span>
        AddHandler fcgid-script .php
        <span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #7a0874; font-weight: bold;">&#123;</span>DOC_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
                FCGIWrapper <span style="color: #7a0874; font-weight: bold;">&#123;</span>CONF_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">/</span>php-fcgi.conf .php
                Options +SymLinksIfOwnerMatch +MultiViews +ExecCGI <span style="color: #660033;">-Indexes</span>
                AllowOverride FileInfo
                Order allow,deny
                allow from all
        <span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
        ErrorLog <span style="color: #7a0874; font-weight: bold;">&#123;</span>LOG_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">/</span>error.log
        CustomLog <span style="color: #7a0874; font-weight: bold;">&#123;</span>LOG_ROOT<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000; font-weight: bold;">/</span>access.log combined
        LogLevel warn
&nbsp;
        ServerSignature Off
<span style="color: #000000; font-weight: bold;">&lt;/</span>VirtualHost<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

</li>
</ul>
<p>Das Skript kann als Benutzer <strong>root</strong> ausgeführt werden. Es fragt nach ein paar Parametern (default-Werte stehen in eckigen Klammern und können durch Drücken der Eingabetaste übernommen werden) und erstellt dann den vHost und die dazugehörige Konfiguration. Nach Ausführen des Skripts muss der vHost noch mittels des &#8220;<em>a2ensite</em>&#8220;-Befehls aktiviert werden und die <em>apache</em>-Konfiguration muss neu eingelesen werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://johker.ibutho.de/2010/01/13/der-neue-server-teil-x-sonstiges/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

