<?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>vServer | Nerdpress.org</title>
	<atom:link href="https://nerdpress.org/category/admin/vserver/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>
	</channel>
</rss>
