<?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>Admin | Nerdpress.org</title>
	<atom:link href="https://nerdpress.org/category/admin/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdpress.org</link>
	<description>...dev, tech problems and solutions.</description>
	<lastBuildDate>Fri, 18 Jan 2019 07:34:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Apache upgrade : Unknown Authz provider: from</title>
		<link>https://nerdpress.org/2019/01/18/apache-upgrade-unknown-authz-provider-from/</link>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Fri, 18 Jan 2019 07:34:55 +0000</pubDate>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[vServer]]></category>
		<category><![CDATA[Apache 2]]></category>
		<category><![CDATA[facepalm]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=2855</guid>

					<description><![CDATA[<p>For the record: If you ever encounter this error while upgrading Apache webserver 2.2 to 2.4: Then you probably made a mistake replacing: with And just replaced allow with Require and not the complete directive, like: Then its time for a double facepalm :)</p>
The post <a href="https://nerdpress.org/2019/01/18/apache-upgrade-unknown-authz-provider-from/">Apache upgrade : Unknown Authz provider: from</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>For the record:<br> If you ever encounter this error while <a href="https://httpd.apache.org/docs/2.4/upgrading.html">upgrading Apache webserver 2.2 to 2.4</a>:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">Unknown Authz provider: <span class="hljs-keyword">from</span></code></span></pre>


<p>Then you probably made a mistake replacing:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">allow <span class="hljs-keyword">from</span> all </code></span></pre>


<p>with</p>


<pre class="wp-block-code"><span><code class="hljs language-php"><span class="hljs-keyword">Require</span> all granted</code></span></pre>


<p>And just replaced <em>allow</em> with <em>Require</em> and not the complete directive, like:</p>


<pre class="wp-block-code"><span><code class="hljs language-javascript">Require <span class="hljs-keyword">from</span> all</code></span></pre>


<p>Then its time for a double facepalm :)</p>The post <a href="https://nerdpress.org/2019/01/18/apache-upgrade-unknown-authz-provider-from/">Apache upgrade : Unknown Authz provider: from</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Hosting multiple Express (node.js) apps on port 80</title>
		<link>https://nerdpress.org/2012/04/20/hosting-multiple-express-node-js-apps-on-port-80/</link>
					<comments>https://nerdpress.org/2012/04/20/hosting-multiple-express-node-js-apps-on-port-80/#comments</comments>
		
		<dc:creator><![CDATA[Max Girkens]]></dc:creator>
		<pubDate>Fri, 20 Apr 2012 03:40:31 +0000</pubDate>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Express]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[socket.io]]></category>
		<category><![CDATA[vServer]]></category>
		<category><![CDATA[express]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[sockets]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=2144</guid>

					<description><![CDATA[<p>In the last days, i was trying to find a solution hosting multiple Express apps on my vServer the same Server. Starting with Apache and mod_proxy, i ended up with a plain node solution, which i really like. Let&#8217;s take a quick look on some different approaches out there: &#8212;1&#8212; Using apache on port 80 &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2012/04/20/hosting-multiple-express-node-js-apps-on-port-80/" class="more-link">Continue reading<span class="screen-reader-text"> "Hosting multiple Express (node.js) apps on port 80"</span></a></p>
The post <a href="https://nerdpress.org/2012/04/20/hosting-multiple-express-node-js-apps-on-port-80/">Hosting multiple Express (node.js) apps on port 80</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>In the last days, i was trying to find a solution hosting multiple <a href="http://expressjs.com/">Express</a> apps on <del datetime="2012-04-19T00:40:35+00:00">my vServer </del>the same Server.</p>
<p>Starting with <a href="http://www.apache.org/">Apache</a> and <a href="http://httpd.apache.org/docs/2.0/mod/mod_proxy.html">mod_proxy</a>, i ended up with a plain node solution, which i really like.<span id="more-2144"></span></p>
<p><a href="https://nerdpress.org/wp-content/uploads/2012/04/node-http-proxy-haz-colors.png"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2146" title="node-http-proxy-haz-colors" src="https://nerdpress.org/wp-content/uploads/2012/04/node-http-proxy-haz-colors.png" alt="" width="527" height="106" srcset="https://nerdpress.org/wp-content/uploads/2012/04/node-http-proxy-haz-colors.png 527w, https://nerdpress.org/wp-content/uploads/2012/04/node-http-proxy-haz-colors-300x60.png 300w" sizes="(max-width: 527px) 100vw, 527px" /></a></p>
<p>Let&#8217;s take a quick look on some different approaches out there:</p>
<p><strong>&#8212;1&#8212;</strong></p>
<p>Using apache on port 80 as a proxy</p>
<pre class="brush: bash; title: ; notranslate">
ProxyPass /nodeurls/ http://localhost:9000/
ProxyPassReverse /nodeurls/ http://localhost:9000/
</pre>
<p>via <a href="http://stackoverflow.com/questions/6109089/how-do-i-run-node-js-on-port-80">stackoverflow</a></p>
<p>&#8212; no websockets<br />
++ probably the easiest way to integrate with your running AMPP-stack</p>
<p><strong>&#8212;2&#8212;</strong></p>
<p>Using a node.js app on port 80 as a Wrapper for other node apps.</p>
<pre class="brush: jscript; title: ; notranslate">
express.createServer()
  .use(express.vhost('hostname1.com', require('/path/to/hostname1').app)
  .use(express.vhost('hostname2.com', require('/path/to/hostname2').app)
.listen(80)
</pre>
<p>via <a href="http://stackoverflow.com/questions/9332865/how-should-i-organize-multiple-express-servers-on-the-same-system">stackoverflow</a></p>
<p>++ you can use websockets on port 80<br />
&#8212; apps crash/restart/stop globally<br />
&#8211;what about your apache or the like?</p>
<p><strong>&#8212;3&#8212;</strong></p>
<p>Using node.js with node-http-proxy on port 80</p>
<pre class="brush: jscript; title: ; notranslate">
var http = require('http')
, httpProxy = require('http-proxy');

httpProxy.createServer({
  hostnameOnly: true,
  router: {
    //web-development.cc
    'www.my-domain.com': '127.0.0.1:3001',
    'www.my-other-domain.de' : '127.0.0.1:3002'
  }
}).listen(80);

</pre>
<p>++ proxy websockets to any port<br />
&#8212; you might need to move your old web server to another port</p>
<p>The really cool thing about using node-http-proxy is its capability of proxying websockets.<br />
So you can have your apps running independtly on different ports while serving everything to the user over port 80 and use stuff like <a href="http://socket.io/">socket.io</a>.</p>
<p>Since i&#8217;m new to node.js and miles away from beeing a admin, any feedback is highly appreciated :)</p>The post <a href="https://nerdpress.org/2012/04/20/hosting-multiple-express-node-js-apps-on-port-80/">Hosting multiple Express (node.js) apps on port 80</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
					<wfw:commentRss>https://nerdpress.org/2012/04/20/hosting-multiple-express-node-js-apps-on-port-80/feed/</wfw:commentRss>
			<slash:comments>14</slash:comments>
		
		
			</item>
		<item>
		<title>Migrate to Mongolab</title>
		<link>https://nerdpress.org/2011/09/26/migrate-to-mongolab/</link>
					<comments>https://nerdpress.org/2011/09/26/migrate-to-mongolab/#comments</comments>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Mon, 26 Sep 2011 05:38:07 +0000</pubDate>
				<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[vServer]]></category>
		<category><![CDATA[mongodb]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=1738</guid>

					<description><![CDATA[<p>Recently i ran into RAM troubles on my vserver for some reasons, i encountered the evil: Cannot allocate memory at ... So first i suspected mongodb to use up loads of memory as top showed. But after some recherche work i learned mongodb only -seems- to use a lot of memory. see here and here &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2011/09/26/migrate-to-mongolab/" class="more-link">Continue reading<span class="screen-reader-text"> "Migrate to Mongolab"</span></a></p>
The post <a href="https://nerdpress.org/2011/09/26/migrate-to-mongolab/">Migrate to Mongolab</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>Recently i ran into RAM troubles on my vserver for some reasons, i encountered the evil:</p>
<pre class="brush: bash; title: ; notranslate">
Cannot allocate memory at ...
</pre>
<p>So first i suspected <a href="http://www.mongodb.org/">mongodb</a> to use up loads of memory as top showed.</p>
<p>But after some recherche work i learned mongodb only -seems- to use a lot of memory.<br />
see <a href="http://blog.mongodb.org/post/101911655/mongo-db-memory-usage">here</a> and <a href="http://www.mongodb.org/display/DOCS/Checking+Server+Memory+Usage">here</a> and <a href="http://stackoverflow.com/questions/4918443/is-it-ideal-that-mongodb-is-using-150-mb-memory/4918676#4918676">here</a><br />
The actual usage was around 20mb RAM, so mongodb was innocent.</p>
<p>The true RAM monsters were some apache and php-fpm zombies, but thats another story.</p>
<p>While suspecting mongodb i thought about outsourcing the mongodb and i found a free and sufficient offer in <a href="https://mongolab.com">mongolab</a>.<br />
My interests were on and i gave it a try.<br />
The free version has a limit for up to 240MB storage and since my app is just a small counter it should last for some time.<br />
<span id="more-1738"></span></p>
<p>The registration was easy, creation of the database aswell and the administration panel is also pretty cool and informative.<br />
<img decoding="async" class="alignnone size-medium wp-image-1743" style="border-style: initial; border-color: initial;" title="mongolab" src="https://nerdpress.org/wp-content/uploads/2011/09/mongolab-300x167.png" alt="" width="300" height="167" srcset="https://nerdpress.org/wp-content/uploads/2011/09/mongolab-300x167.png 300w, https://nerdpress.org/wp-content/uploads/2011/09/mongolab.png 816w" sizes="(max-width: 300px) 100vw, 300px" /><br />
Then create a user and migrate:</p>
<p>First get my data from the vserver on the vserver:</p>
<pre class="brush: bash; title: ; notranslate">
 mongodump --host 127.0.0.1
</pre>
<p>Then fetch it to my local machine:</p>
<pre class="brush: bash; title: ; notranslate">
 scp -r me@vserver.de:/var/www/vhosts/verrueckte/dump/mongodumpdata .
</pre>
<p>Ups i didnt had no mongo client on my local machine, go get it:</p>
<pre class="brush: bash; title: ; notranslate">
 sudo apt-get install mongodb-clients
</pre>
<p>Now connect to the mongolab via your console</p>
<pre class="brush: bash; title: ; notranslate">
 mongo db123xyz.mongolab.com:12345/thedb -u &lt;user&gt; -p &lt;pw&gt;
</pre>
<p>Hey works, great!<br />
Alright see you later.</p>
<pre class="brush: bash; title: ; notranslate">
 &gt; exit;
</pre>
<p>Now import the dumps to continue the counter there were i stopped.</p>
<pre class="brush: bash; title: ; notranslate">
 cd mongodumpdata
 mongorestore -h db123xyz.mongolab.com:12345 -d thedb -u -p .
</pre>
<p>Good!</p>
<p>Then teach the php app the new connection:</p>
<pre class="brush: php; title: ; notranslate">
 $this-&gt;host = 'mongodb://user:pw@db123xyz.mongolab.com:12345/thedb';
 new mongo($this-&gt;host);
</pre>
<p>There you go! The counter is storing its stuff to the mongolab database.<br />
And i can stop the mongod on my machine and free some memory.</p>
<pre class="brush: bash; title: ; notranslate">
 ps aux | grep mongodb
 kill &lt;PID&gt;
</pre>The post <a href="https://nerdpress.org/2011/09/26/migrate-to-mongolab/">Migrate to Mongolab</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
					<wfw:commentRss>https://nerdpress.org/2011/09/26/migrate-to-mongolab/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>install lame on debian lenny</title>
		<link>https://nerdpress.org/2011/06/20/install-lame-on-debian-lenny/</link>
		
		<dc:creator><![CDATA[Max Girkens]]></dc:creator>
		<pubDate>Mon, 20 Jun 2011 11:09:32 +0000</pubDate>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[vServer]]></category>
		<category><![CDATA[debian lenny]]></category>
		<category><![CDATA[lame]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=1528</guid>

					<description><![CDATA[<p>If you are going to install the mp3 en/decoder lame on debian lenny, this is how i got it done: choose your package: http://debian-multimedia.org/pool/main/l/lame/ wget http://debian-multimedia.org/pool/main/l/lame/lame_3.98.2-0.4_i386.deb dpkg -i lame_3.98.2-0.4_i386.deb yay!</p>
The post <a href="https://nerdpress.org/2011/06/20/install-lame-on-debian-lenny/">install lame on debian lenny</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>If you are going to install the mp3 en/decoder lame on debian lenny,<br />
this is how i got it done:</p>
<p>choose your package: <a href="http://debian-multimedia.org/pool/main/l/lame/">http://debian-multimedia.org/pool/main/l/lame/</a></p>
<pre class="brush: bash; title: ; notranslate">
wget http://debian-multimedia.org/pool/main/l/lame/lame_3.98.2-0.4_i386.deb
dpkg -i lame_3.98.2-0.4_i386.deb
</pre>
<p>yay!</p>The post <a href="https://nerdpress.org/2011/06/20/install-lame-on-debian-lenny/">install lame on debian lenny</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Lighttpd, Plesk und PHP</title>
		<link>https://nerdpress.org/2011/06/17/lighttpd-plesk-und-php/</link>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Fri, 17 Jun 2011 16:00:03 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[vServer]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[Plesk]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=1523</guid>

					<description><![CDATA[<p>Will man auf seinem Server(debian) Lighttpd paralell zu Plesk&#8217;s Apache zum laufen kriegen sollte man auf jeden fall PHP als FPM laufen lassen. Das kommt sich nicht mit dem von Plesk und Apache regierten PHPs in die Quere und ist sowieso schneller und kann auch die Prozesse killen und neuladen. Falls man mal was in &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2011/06/17/lighttpd-plesk-und-php/" class="more-link">Continue reading<span class="screen-reader-text"> "Lighttpd, Plesk und PHP"</span></a></p>
The post <a href="https://nerdpress.org/2011/06/17/lighttpd-plesk-und-php/">Lighttpd, Plesk und PHP</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>Will man auf seinem Server(debian) Lighttpd paralell zu Plesk&#8217;s Apache zum laufen kriegen sollte man auf jeden fall PHP als <a href="http://www.php.net/manual/en/install.fpm.php">FPM</a> laufen lassen.<br />
Das kommt sich nicht mit dem von Plesk und Apache regierten PHPs in die Quere und ist sowieso schneller und kann auch die Prozesse killen und neuladen.<br />
Falls man mal was in der ini ändern will.</p>
<p>FPM installieren geht so, wie er es <a href="http://code.saghul.net/lighttpd-php-fpm-on-debian-squeeze">dort</a> beschreibt:</p>
<p>Allerdings in der conf den Port nicht als String, sondern numeric:</p>
<pre class="brush: bash; title: ; notranslate">
server.modules   += ( &quot;mod_fastcgi&quot; )

## Start an FastCGI server for php (needs the php5-cgi package)
fastcgi.server    = ( &quot;.php&quot; =&gt;
        (
&quot;localhost&quot; =&gt;
        (
                &quot;host&quot; =&gt; &quot;127.0.0.1&quot;,
                &quot;port&quot; =&gt; 9000
        ))
)
</pre>
<p>Bleibt noch das Problem mit dem <a href="http://serverfault.com/questions/281040/apc-conflict-with-php-as-fast-cgi-when-running-apache-and-lighty-paralell">APC Konflikt</a>, falls da jemand eine Lösung weiß, nur her damit.</p>
<p>Man, das war ein kampf ;)<br />
Mal sehen wie lang das hält&#8230;</p>The post <a href="https://nerdpress.org/2011/06/17/lighttpd-plesk-und-php/">Lighttpd, Plesk und PHP</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>git prompt</title>
		<link>https://nerdpress.org/2010/11/13/git-repository-status-im-shell-prompt/</link>
					<comments>https://nerdpress.org/2010/11/13/git-repository-status-im-shell-prompt/#comments</comments>
		
		<dc:creator><![CDATA[Max Girkens]]></dc:creator>
		<pubDate>Sat, 13 Nov 2010 14:37:43 +0000</pubDate>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[vServer]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[tools]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=1179</guid>

					<description><![CDATA[<p>gerade gefunden: git prompt &#8211; GIT repository status direkt im shell prompt. nützlich und schön bunt.</p>
The post <a href="https://nerdpress.org/2010/11/13/git-repository-status-im-shell-prompt/">git prompt</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>gerade gefunden:</p>
<p><a href="http://volnitsky.com/project/git-prompt/">git prompt</a> &#8211; GIT repository status direkt im shell prompt.</p>
<p>nützlich und schön bunt.</p>The post <a href="https://nerdpress.org/2010/11/13/git-repository-status-im-shell-prompt/">git prompt</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
					<wfw:commentRss>https://nerdpress.org/2010/11/13/git-repository-status-im-shell-prompt/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Server Monitoring mit Munin</title>
		<link>https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/</link>
					<comments>https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/#comments</comments>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Tue, 02 Nov 2010 19:55:07 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[vServer]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Munin]]></category>
		<category><![CDATA[Webserver]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=1143</guid>

					<description><![CDATA[<p>Da ich ein Kontrollfreak bin ;) wollte ich mal meinen vServer monitoren. Nach allem was ich so las, scheint wohl Munin das geeignete Tool zu sein. Also aufgemacht und es installiert: Munin ist Server-Client mäßig aufgebaut, ich installiere der Einfachkeit halber mal Server und Client (Node) auf der selben Maschine. Für Debian Lenny geht das &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/" class="more-link">Continue reading<span class="screen-reader-text"> "Server Monitoring mit Munin"</span></a></p>
The post <a href="https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/">Server Monitoring mit Munin</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>Da ich ein Kontrollfreak bin ;) wollte ich mal meinen vServer monitoren.<br />
Nach allem was ich so las, scheint wohl <a href="http://munin-monitoring.org">Munin</a>  das geeignete Tool zu sein.</p>
<p>Also aufgemacht und es installiert:<br />
Munin ist Server-Client mäßig aufgebaut, ich installiere der Einfachkeit halber mal Server und Client (Node) auf der selben Maschine.<br />
Für <strong>Debian Lenny</strong> geht das ganz einfach über apt-get:</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install munin munin-node
</pre>
<p>So nun noch das Webinterface umlegen: ich mache dafür eine eigene Subdomain bei einem meiner vHosts über Plesk.<br />
zB munin.nerdpress.org (nein, die url gibts in echt nicht)</p>
<p>jetzt muss noch das www Verzeichnis, welches Munin generiert umkopiert werden in das Subdomain Verzeichnis:</p>
<pre class="brush: bash; title: ; notranslate">
cp -r /var/www/munin/* /var/www/vhosts/nerdpress/subdomains/munin/httpdocs
</pre>
<p><span id="more-1143"></span></p>
<p>Wichtig ist noch die Besitzer richtig zu setzen:</p>
<pre class="brush: bash; title: ; notranslate">
chown -R munin:munin /var/www/vhosts/nerdpress/subdomains/munin/httpdocs
</pre>
<p>Das Verzeichnis sollte man dann noch über .htaccess Passwort schützen.</p>
<p>Nun noch Munin beibringen das sein www Verzeichnis woanders ist, dafür muss man in die <em>munin.conf</em></p>
<pre class="brush: bash; title: ; notranslate">
joe /etc/munin/munin.conf:
</pre>
<p>und folgendes ändern:</p>
<pre class="brush: bash; title: ; notranslate">
htmldir /var/www/vhosts/nerdpress.org/subdomains/munin/httpdocs
</pre>
<p>Und wenn man schonmal da ist, kann man auch direkt seinen Server registrieren:</p>
<pre class="brush: bash; title: ; notranslate">
&#x5B;munin.nerdpress.org]
address 127.0.0.1
use_node_name yes
</pre>
<p>Weiter gehts mit dem Node, dieser will auch noch konfiguriert sein:</p>
<pre class="brush: bash; title: ; notranslate">
joe /etc/munin/munin-node.conf
</pre>
<p>Dort den host_name anpassen:</p>
<pre class="brush: bash; title: ; notranslate">
host_name munin.nerdpress.org
</pre>
<p>Soweit so gut. Nun sieht man aber noch nichts. Dafür muss man erstmal die Plugins, die man braucht aktivieren.<br />
Dies geschieht durch einen symlink:</p>
<pre class="brush: bash; title: ; notranslate">
ln -s /usr/share/munin/plugins/apache_accesses /etc/munin/plugins/apache_accesses
ln -s /usr/share/munin/plugins/memory /etc/munin/plugins/memory
</pre>
<p>Damit sind das Plugin, was den RAM monitored und das für die Apache Accesses &#8220;installiert&#8221;.</p>
<p>Jetzt noch den Node restarten </p>
<pre class="brush: bash; title: ; notranslate">
/etc/init.d/munin-node restart
</pre>
<p>und ein wenig warten, dann sollte man unter <em>munin.nerdpress.org</em> die ersten Graphen sehen. </p>
<p>Aber nichts funktioniert ja auf Anhieb ohne Probleme, so auch hier:<br />
Die System Plugin Graphen für Memory, Plattenplatz und CPU funktionieren, die Apache Plugins produzieren jedoch einen <strong>leeren Graph</strong>.</p>
<p>Warum dies?<br />
Mit Googles Hilfe dann ein paar Debug Schritte vorgenommen:</p>
<pre class="brush: bash; title: ; notranslate">
munin-run apache_accesses
</pre>
<p>Dies sagt: <em>accesses80.value U</em></p>
<pre class="brush: bash; title: ; notranslate">
munin-node-configure --suggest | grep apache
</pre>
<p>sagt:<br />
<em>Got junk from apache_accesses:</em></p>
<p>Des Rätsels Lösung ist dem Apache &#8220;sprechen beibringen&#8221;, wie <a href="https://bugs.launchpad.net/ubuntu/+source/munin/+bug/231706">hier</a> und <a href="http://linuxundich.de/de/ubuntu/webbasierte-serveruberwachung-mit-munin/">hier</a> beschrieben.</p>
<p>Also die <em>/etc/apache2/apache2.conf</em> editiert und folgenden Block so umgeschrieben, wichtig ist dabei das <em>ExtendedStatus On</em>:</p>
<pre class="brush: bash; title: ; notranslate">
&lt;IfModule mod_status.c&gt;
    #
    # Allow server status reports generated by mod_status,
    # with the URL of http://servername/server-status
    # Change the &quot;.example.com&quot; to match your domain to enable.
    #
    ExtendedStatus On
    &lt;Location /server-status&gt;
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
    &lt;/Location&gt;
&lt;/IfModule&gt;
 </pre>
<p>Noch den Apache restarten</p>
<pre class="brush: bash; title: ; notranslate">
/etc/init.d/apache2 restart
</pre>
<p>und siehe da auch die Apache Graphen werden gefüllt.</p>
<p>Ich hoffe Plesk läßt die Apache Konfiguration so stehen, aber bisher siehts so aus.</p>
<p>Mal sehen was man damit noch alles anstellen kann.</p>The post <a href="https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/">Server Monitoring mit Munin</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
					<wfw:commentRss>https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>Schau auf die Error_Log</title>
		<link>https://nerdpress.org/2010/10/19/schau-auf-die-error_log/</link>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Tue, 19 Oct 2010 10:51:35 +0000</pubDate>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[suhosin]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=1139</guid>

					<description><![CDATA[<p>Man sollte sich tatsächlich angewöhnen beim Entwickeln immer eine Console offen zu haben und die error_log zu beobachten. tail -f /var/log/apache2/error_log Bekommt man nämlich so einen Fehler in der error_log: ALERT - configured POST variable limit exceeded - dropped variable ... &#8230; bleibt die Seite meistens ohne Fehlerausgabe trotz E_ALL und es passieren komische Dinge. &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2010/10/19/schau-auf-die-error_log/" class="more-link">Continue reading<span class="screen-reader-text"> "Schau auf die Error_Log"</span></a></p>
The post <a href="https://nerdpress.org/2010/10/19/schau-auf-die-error_log/">Schau auf die Error_Log</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>Man sollte sich tatsächlich angewöhnen beim Entwickeln <strong>immer</strong> eine Console offen zu haben und die error_log zu beobachten.</p>
<pre class="brush: bash; title: ; notranslate">
tail -f /var/log/apache2/error_log
</pre>
<p>Bekommt man nämlich so einen Fehler in der error_log:</p>
<pre class="brush: bash; title: ; notranslate">
ALERT - configured POST variable limit exceeded - dropped variable ...
</pre>
<p>&#8230; bleibt die Seite meistens ohne Fehlerausgabe trotz E_ALL und es passieren komische Dinge.<br />
Dann kann man schonmal eine ganze Weile damit verbringen ganz woanders zu suchen.<br />
Mit offenem error_log wäre das nicht passiert ;).</p>
<p><span id="more-1139"></span></p>
<p>Die Lösung war übrigens im suhosin des Apaches zu finden: <em>Ein Hoch auf unseren Admin Daniel</em>.<br />
Einfach in der php.ini oder suhosin.ini die Werte anpassen und man kann wieder riesige Formulare absenden.</p>
<pre class="brush: bash; title: ; notranslate">
&#x5B;suhosin]
suhosin.post.max_vars = 2000
suhosin.request.max_vars = 1000
</pre>
<p>Ach ja und natürlich den Apache neustarten.</p>The post <a href="https://nerdpress.org/2010/10/19/schau-auf-die-error_log/">Schau auf die Error_Log</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Asus N82j, U80, UL30 Series; Touchpad auschalten unter Ubuntu 10.04</title>
		<link>https://nerdpress.org/2010/08/05/asus-n82j-u80-ul30-series-touchpad-auschalten-unter-ubuntu-10-04/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 05 Aug 2010 14:51:03 +0000</pubDate>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=1077</guid>

					<description><![CDATA[<p>Das für mich als Merkhilfe und eventuell Suchende: Wer sein Touchpad unter Ubuntu via Hotkey abschalten möchte und im Besitz eines neueren Asus-Notebooks ist, wird hier endlich fündig: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/418282 (für mich hat folgender Workaround zuverlässig funktioniert): This problem is also valid for the ASUS UL30A. The touchpad is seen as an &#8220;ImPS/2 Logitech Wheel Mouse&#8221;. &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2010/08/05/asus-n82j-u80-ul30-series-touchpad-auschalten-unter-ubuntu-10-04/" class="more-link">Continue reading<span class="screen-reader-text"> "Asus N82j, U80, UL30 Series; Touchpad auschalten unter Ubuntu 10.04"</span></a></p>
The post <a href="https://nerdpress.org/2010/08/05/asus-n82j-u80-ul30-series-touchpad-auschalten-unter-ubuntu-10-04/">Asus N82j, U80, UL30 Series; Touchpad auschalten unter Ubuntu 10.04</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>Das für mich als Merkhilfe und eventuell Suchende: Wer sein Touchpad unter Ubuntu via Hotkey abschalten möchte und im Besitz eines neueren Asus-Notebooks ist, wird hier endlich fündig: <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/418282">https://bugs.launchpad.net/ubuntu/+source/linux/+bug/418282</a> (für mich hat folgender Workaround zuverlässig funktioniert):</p>
<blockquote><p>
This problem is also valid for the ASUS UL30A. The touchpad is seen as an &#8220;ImPS/2 Logitech Wheel Mouse&#8221;. See in dmesg and by the command &#8220;xinput list&#8221;. I am using Ubuntu 9.10.</p>
<p>To disable the touchpad the following command can be used:</p>
<p>   xinput set-int-prop &#8220;ImPS/2 Logitech Wheel Mouse&#8221; &#8220;Device Enabled&#8221; 8 0</p>
<p>To enable use:</p>
<p>   xinput set-int-prop &#8220;ImPS/2 Logitech Wheel Mouse&#8221; &#8220;Device Enabled&#8221; 8 1</p>
<p>To make the <Fn>F9 working I did the following:</p>
<p>1. As the <Fn>F9 does not generate a keycode but an acpi event you cannot assign just a keycode to a script. So I first checked the generated event hotkey code using:<br />
   sudo acpi_listen<br />
and pressed <Fn>F9. This gives 0000006b as event hotkey code.<br />
2. In /etc/acpi/events there is an asus-touchpad event file. This is using the wrong code so I changed it.<br />
3. The script /etc/acpi/assus-touchpad.sh is not correct for this touchpad so I changed it (see attached script)<br />
4. Now send the acpid a SIGHUP signal (or reboot) and the <Fn>F9 button toggles your touchpad an or off.</p></blockquote>
<p>Danach kann man via FN + F9 wieder wie gewohnt das Touchpad an- und abschalten.</p>The post <a href="https://nerdpress.org/2010/08/05/asus-n82j-u80-ul30-series-touchpad-auschalten-unter-ubuntu-10-04/">Asus N82j, U80, UL30 Series; Touchpad auschalten unter Ubuntu 10.04</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Upgrade von Etch auf Lenny</title>
		<link>https://nerdpress.org/2010/02/27/upgrade-von-etch-auf-lenny/</link>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Sat, 27 Feb 2010 16:13:10 +0000</pubDate>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[vServer]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=823</guid>

					<description><![CDATA[<p>Dann habe ich neulich mal meinen vServer upgegradet von Debian Etch auf Lenny, um in den Genuss einer neueren PHP Version zu kommen. Ein paar Problemchen gabs schon aber es hat geklappt! Das lief ab wie folgt: Zunächst einmal Plesk auf neuesten Stand bringen über den Updater von Plesk. Dann das Debian dist upgrade: wie &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2010/02/27/upgrade-von-etch-auf-lenny/" class="more-link">Continue reading<span class="screen-reader-text"> "Upgrade von Etch auf Lenny"</span></a></p>
The post <a href="https://nerdpress.org/2010/02/27/upgrade-von-etch-auf-lenny/">Upgrade von Etch auf Lenny</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>Dann habe ich neulich mal meinen vServer upgegradet von Debian Etch auf Lenny, um in den Genuss einer neueren PHP Version zu kommen.<br />
Ein paar Problemchen gabs schon aber es hat geklappt!<br />
Das lief ab wie folgt:</p>
<p>Zunächst einmal Plesk auf neuesten Stand bringen über den Updater von Plesk.</p>
<p>Dann das Debian dist upgrade:<br />
wie <a href="http://serversupportforum.de/forum/virtuelle-server/30785-server4you-vserver-plus-dist-upgrade-debian-etch-lenny.html//">hier</a> beschrieben:<br />
Die Liste mit den Quell-Paketen ändern:</p>
<pre class="brush: bash; title: ; notranslate">
# new lenny packages.
deb http://ftp2.de.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free

# source packages.
deb-src http://ftp2.de.debian.org/debian/ lenny main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

# volatile sources
deb http://volatile.debian.org/debian-volatile etch/volatile main contrib non-free
</pre>
<p>Dann upgraden<br />
<span id="more-823"></span></p>
<pre class="brush: bash; title: ; notranslate">
apt-get update
apt-get dist-upgrade
</pre>
<p>Das wars schon und da war der Lenny, PHP war auch neu und die Seiten liefen alle noch.<br />
Soweit so gut. Doch nun die Probleme:</p>
<p>FTP tats nicht mehr. Liegt wohl daran das ich noch den Plesk für Etch drauf hatte und das neue ProFTP damit nich kompatibel ist.</p>
<p>Außer dem gibt Plesk einen SSL Error und kann keine Keys mehr beziehen.</p>
<blockquote><p>
Cannot retrieve license key: SSL connect error
</p></blockquote>
<p>Ein bißchen gegooglet und zum Schluß gekommen Plesk neu zu installieren.<br />
Also Plesk deinstalliert.</p>
<pre class="brush: bash; title: ; notranslate">
apt-get remove psa
apt-get remove psa-api
apt-get remove plesk-base
apt-get remove plesk-skins
</pre>
<p>Plesk wieder installiert:</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install psa
</pre>
<p>Plesk gestartet:</p>
<pre class="brush: bash; title: ; notranslate">
/etc/init.d/psa start
</pre>
<p>Da Plesk nun aus lenny Packeten stammt, stimmte das jetzt auch wieder überein und siehe da:<br />
Ftp tuts wieder!</p>
<p>Doch es gibt immer noch den SSL Error.</p>
<p>Dann das hier gefunden:<br />
<a href="http://kb.parallels.com/en/6096">http://kb.parallels.com/en/6096</a><br />
Aha! libCurl ist inkompatibel und muss downgegradet werden</p>
<p>Mal nachgeschaut:</p>
<pre class="brush: bash; title: ; notranslate">
cd /var/cache/apt/archives/
</pre>
<p>Und die Version ist also noch im Cache.<br />
Dann downgraden:</p>
<pre class="brush: bash; title: ; notranslate">
dpkg -i libcurl3_7.15.5-1etch3_i386.deb
</pre>
<p>Hurra es funktioniert!<br />
Der Key wird geupdatet.</p>
<p>Jetzt sagt da PHP Curl aber nö:</p>
<blockquote><p>
Unable to load dynamic library &#8216;/usr/lib/php5/20060613+lfs/curl.so
</p></blockquote>
<p>Also Curl wieder upgegradet:</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install php5-curl
dpkg -i libcurl3_7.18.2-8lenny3_i386.deb
</pre>
<p>Dann ging auch das wieder.</p>
<p>Wahrscheinlich muss ich dieses Hin und Her jetzt jedes Mal machen wenn Plesk einen neuen Key braucht.<br />
Das ist ein wenig nervig, aber hoffen wir mal auf ein Plesk Update, was das behebt.</p>
<p>Abschließend muss ich noch sagen, dass wegen der Plesk Neuinstallation noch ein paar PHP Einstellungen neu gesetzt werden mußten<br />
wie zB safemode für die cli ausmachen usw, aber nix gravierendes.</p>
<p>Natürlich ohne Gewähr und ja, ich hab natürlich fleißig vorher und mittendrin gebackupt. </p>The post <a href="https://nerdpress.org/2010/02/27/upgrade-von-etch-auf-lenny/">Upgrade von Etch auf Lenny</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
