<?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>the XCEPtion proves the rule &#187; Server</title>
	<atom:link href="http://www.xcep.net/blog/tag/server/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xcep.net/blog</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 09:51:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>[SERVER] Farben &amp; Hostname in BASH verändern (Bsp. Ubuntu)</title>
		<link>http://www.xcep.net/blog/2009/11/05/server-farben-hostname-in-bash-verandern-bsp-ubuntu/index.php</link>
		<comments>http://www.xcep.net/blog/2009/11/05/server-farben-hostname-in-bash-verandern-bsp-ubuntu/index.php#comments</comments>
		<pubDate>Thu, 05 Nov 2009 10:30:39 +0000</pubDate>
		<dc:creator>tXptr</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash.rc]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[Farben]]></category>
		<category><![CDATA[Hostname]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.xcep.net/blog/?p=272</guid>
		<description><![CDATA[Um die Farbgestaltung der Shell unter Ubuntu zu verändern, kommt recht schnell zu einem Ergebnis, wenn man folgendes macht: Datei &#8220;bash.rc&#8221; im Verzeichnis /root Zuerst die Zeile suchen, die mit PS1 beginnt und mit einer # auskommentieren. An das Ende der Datei schreibt man nun folgendes: PROMPT_HOSTNAME='SET_HERE' PROMPT_COLOR='1;37m' PROMPT_COLOR2='1;32m' &#160; PS1='\e[${PROMPT_COLOR}[\e[${PROMPT_COLOR2}\u@${PROMPT_HOSTNAME}\e[${PROMPT_COLOR}] $ ' Für &#8220;PROMPT_COLOR&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Um die Farbgestaltung der Shell unter Ubuntu zu verändern, kommt recht schnell zu einem Ergebnis, wenn man folgendes macht:</p>
<p><strong>Datei &#8220;bash.rc&#8221; im Verzeichnis /root</strong></p>
<ol>
<li>Zuerst die Zeile suchen, die mit PS1 beginnt und mit einer # auskommentieren.</li>
<li>An das Ende der Datei schreibt man nun folgendes:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">PROMPT_HOSTNAME</span>=<span style="color: #ff0000;">'SET_HERE'</span>
<span style="color: #007800;">PROMPT_COLOR</span>=<span style="color: #ff0000;">'1;37m'</span>
<span style="color: #007800;">PROMPT_COLOR2</span>=<span style="color: #ff0000;">'1;32m'</span>
&nbsp;
<span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">'\e[${PROMPT_COLOR}[\e[${PROMPT_COLOR2}\u@${PROMPT_HOSTNAME}\e[${PROMPT_COLOR}] $ '</span></pre></div></div>

</li>
<li>Für &#8220;PROMPT_COLOR&#8221; kann man verschiedene Farben auswählen. Anstatt der im Beispiel genutzten 37 und 32 kann man aus folgender Liste auch andere Farben auswählen

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000;">30</span>: Black<span style="color: #000000; font-weight: bold;">/</span>Dark grey
<span style="color: #000000;">31</span>: Red
<span style="color: #000000;">32</span>: Green
<span style="color: #000000;">33</span>: Yellow
<span style="color: #000000;">34</span>: Blue
<span style="color: #000000;">35</span>: Magenta
<span style="color: #000000;">36</span>: Fuscia
<span style="color: #000000;">37</span>: White<span style="color: #000000; font-weight: bold;">/</span>light grey
<span style="color: #000000;">38</span>: <span style="color: #ff0000;">&quot;Default&quot;</span></pre></div></div>

</li>
<li>Die &#8220;1&#8243; bei &#8220;1;37m&#8221; / &#8220;1;32m&#8221; kann auch in eine &#8220;0&#8243; geändert werden. Dadurch wird zwischen heller und dunkler Farbgebung gewechselt.</li>
<li>Für &#8220;PROMPT_HOSTNAME&#8221; kann man irgendeinen Namen eingeben. Dieser erscheint in der Shell hinter dem Benuternamen (root@HOSTNAME).</li>
<li>Datei speichern, Shell zu und wieder auf. Jetzt sollten die Standardfarben durch andere ersetzt worden sein.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.xcep.net/blog/2009/11/05/server-farben-hostname-in-bash-verandern-bsp-ubuntu/index.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[SERVER] PEAR und Confixx</title>
		<link>http://www.xcep.net/blog/2009/05/29/server-pear-und-confixx/index.php</link>
		<comments>http://www.xcep.net/blog/2009/05/29/server-pear-und-confixx/index.php#comments</comments>
		<pubDate>Fri, 29 May 2009 11:52:53 +0000</pubDate>
		<dc:creator>tXptr</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Confixx]]></category>
		<category><![CDATA[httpd Spezial]]></category>
		<category><![CDATA[PEAR]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.xcep.net/blog/?p=128</guid>
		<description><![CDATA[Um PEAR auf einem Server mit Confixx 3 Verwaltung nutzen zu können, sollten folgende Schritte zu einem funktionierenden Ergebnis führen: (Ich  gehe von einem Server mit Ubuntu Betriebssystem aus) apt-get install php-pear Danach liegt PEAR im Verzeichnis /usr/share/php/ Nun kann man über die Konsole noch zusätzliche PEAR-Pakete installieren. Um PEAR auf den verschiedenen &#8220;web&#8217;s&#8221; von [...]]]></description>
			<content:encoded><![CDATA[<p>Um PEAR auf einem Server mit Confixx 3 Verwaltung nutzen zu können, sollten folgende Schritte zu einem funktionierenden Ergebnis führen:<br />
(Ich  gehe von einem Server mit Ubuntu Betriebssystem aus)</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">apt-get install php-pear</pre></div></div>

<p>Danach liegt PEAR im Verzeichnis /usr/share/php/<br />
Nun kann man über die Konsole noch zusätzliche PEAR-Pakete installieren.</p>
<p>Um PEAR auf den verschiedenen &#8220;web&#8217;s&#8221; von Confixx verfügbar zu machen, geht man im Confixx-Admin-Bereich auf &#8220;Einstellungen&#8221; &#8211;&gt; &#8220;htttpd Spezial&#8221;. Wählt dann &#8220;Einen Kunden ändern&#8221;. Danach das entsprechende &#8220;web&#8221; aus der Liste &#8220;wählen&#8221;. Jetzt auf &#8220;Erweiterter Modus&#8221; klicken und in das Textfeld folgenden Code einfügen (X hinter web steht für die Nummer des &#8220;web&#8221;):</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">php_admin_value include_path .:/var/www/webX/html/:/var/www/webX/phptmp/:/var/www/webX/files/:/var/www/webX/atd/:/usr/share/php/
php_admin_value safe_mode_exec_dir /usr/share/php/
php_admin_value safe_mode_include_dir /usr/share/php/</pre></div></div>

<p>Beim Speichern darauf achten, dass folgender Eintrag ausgewählt ist: &#8220;<label for="ueberschreibenid_ja">für alle Domains des Kunden setzen</label>&#8220;. Jetzt wartet man entweder ein paar Minuten bis Confixx die Einstellungen übernimmt und neu lädt oder man geht in die &#8220;Update Intervalle&#8221; und führt einen &#8220;Reload&#8221; direkt aus. Zur Sicherheit empfehle ich allerdings noch:</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">/etc/init.d/apache2 restart</pre></div></div>

<p>Nun kann man PEAR trotz eingeschaltetem Safe-Mode ganz normal benutzen. Um zum Beispiel den Spreadsheet Excel Writer zu nutzen, trägt man in die entsprechende PHP-Datei einfach nur folgendes ein:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'Spreadsheet/Excel/Writer.php'</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.xcep.net/blog/2009/05/29/server-pear-und-confixx/index.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[SERVER] Hilfesammlung</title>
		<link>http://www.xcep.net/blog/2009/05/26/server-sammlung/index.php</link>
		<comments>http://www.xcep.net/blog/2009/05/26/server-sammlung/index.php#comments</comments>
		<pubDate>Tue, 26 May 2009 07:04:50 +0000</pubDate>
		<dc:creator>tXptr</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[apt-cache]]></category>
		<category><![CDATA[Betriebssystem]]></category>
		<category><![CDATA[Hilfe]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Suchen]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.xcep.net/blog/?p=126</guid>
		<description><![CDATA[Aktuelles Betriebssystem eines *NIX Servers auslesen: Die Datei &#8220;/etc/issue&#8221; gibt Information darüber, welche Version des Betriebssystems installiert ist. Einfaches Suchen nach Dateien: find / -name NAMEDERDATEI Welche Datei wird von einem Prozess verwendet: which apache2 Im apt-cache nach einem Paket suchen: apt-cache search PAKETNAME PHP.ini des PHP Befehls der Shell herausfinden: php -r &#34;phpinfo();&#34;&#124;grep &#34;php.ini&#34;]]></description>
			<content:encoded><![CDATA[<p><strong>Aktuelles Betriebssystem eines *NIX Servers auslesen</strong>:<br />
Die Datei &#8220;/etc/issue&#8221; gibt Information darüber, welche Version des Betriebssystems installiert ist.</p>
<p><strong>Einfaches Suchen nach Dateien:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-name</span> NAMEDERDATEI</pre></div></div>

<p><strong>Welche Datei wird von einem Prozess verwendet:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">which</span> apache2</pre></div></div>

<p><strong>Im apt-cache nach einem Paket suchen:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-cache</span> search PAKETNAME</pre></div></div>

<p><strong>PHP.ini des PHP Befehls der Shell herausfinden:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">php <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;phpinfo();&quot;</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;php.ini&quot;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.xcep.net/blog/2009/05/26/server-sammlung/index.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[SERVER] PHP5 JSON Modul auf Strato vServer nachinstallieren (openSUSE)</title>
		<link>http://www.xcep.net/blog/2009/02/09/server-php5-json-modul-auf-strato-vserver-nachinstallieren-opensuse-2/index.php</link>
		<comments>http://www.xcep.net/blog/2009/02/09/server-php5-json-modul-auf-strato-vserver-nachinstallieren-opensuse-2/index.php#comments</comments>
		<pubDate>Mon, 09 Feb 2009 10:19:04 +0000</pubDate>
		<dc:creator>tXptr</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[Modul]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[vServer]]></category>
		<category><![CDATA[yast2]]></category>

		<guid isPermaLink="false">http://www.xcep.net/blog/?p=80</guid>
		<description><![CDATA[Ich musste letztens auf einem vServer mit openSUSE das json Modul für PHP5 nachinstallieren. Folgende Schritte müssen durchgeführt werden: Schritt 1: Per SSH auf dem Server anmelden Schritt 2: Folgenden Befehl eingeben yast2 --install php5-json Dadurch wird das SUSE Setup Tool angewiesen, dass PHP5-JSON Paket herunterzuladen und zu installieren. Schritt 3: Danach noch /etc/init.d/apache2 restart [...]]]></description>
			<content:encoded><![CDATA[<p>Ich musste letztens auf einem vServer mit openSUSE das json Modul für PHP5 nachinstallieren.<br />
Folgende Schritte müssen durchgeführt werden:</p>
<p>Schritt 1:<br />
Per SSH auf dem Server anmelden</p>
<p>Schritt 2:<br />
Folgenden Befehl eingeben</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">yast2 --install php5-json</pre></div></div>

<p>Dadurch wird das SUSE Setup Tool angewiesen, dass PHP5-JSON Paket herunterzuladen und zu installieren.</p>
<p>Schritt 3:<br />
Danach noch</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">/etc/init.d/apache2 restart</pre></div></div>

<p>Um den Apache2 Dienst neuzustarten.</p>
<p>Jetzt sollte in der phpinfo das Modul &#8220;json&#8221; angezeigt werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xcep.net/blog/2009/02/09/server-php5-json-modul-auf-strato-vserver-nachinstallieren-opensuse-2/index.php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

