<?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>edoxy.net/weblog</title>
	<atom:link href="http://www.edoxy.net/weblog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.edoxy.net/weblog</link>
	<description></description>
	<lastBuildDate>Wed, 18 Aug 2010 19:13:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MySQL backup script</title>
		<link>http://www.edoxy.net/weblog/2010/08/mysql-backup-script/</link>
		<comments>http://www.edoxy.net/weblog/2010/08/mysql-backup-script/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 19:13:44 +0000</pubDate>
		<dc:creator>edo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.edoxy.net/weblog/?p=181</guid>
		<description><![CDATA[Slightly modified MySQL backup script. This one uses mysqlhotcopy. It only locks the tables for 1 or 2 seconds (every two hours in cron). Then it copies the database MyISAM files. These files then are being archived and compressed, and copied to NAS using SMB. Advantage of this new principle is that MySQL is only [...]]]></description>
			<content:encoded><![CDATA[<p>Slightly modified MySQL backup script. This one uses mysqlhotcopy. It only locks the tables for 1 or 2 seconds (every two hours in cron). Then it copies the database MyISAM files. These files then are being archived and compressed, and copied to NAS using SMB. </p>
<p>Advantage of this new principle is that MySQL is only occupied by this process for two seconds. It does not need to generate a .sql file with SQL statements representing the content in the database. After two seconds the MySQL database server can continue with whatever it was doing, while 1 CPU core is being used by the tar process to pack and archive it all. Script:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p181code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1812"><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
</pre></td><td class="code" id="p181code2"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #007800;">SHELL</span>=<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span>
<span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<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>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql
&nbsp;
<span style="color: #666666; font-style: italic;">#variables</span>
<span style="color: #007800;">DBNAME</span>=...
<span style="color: #007800;">DBPASS</span>=...
<span style="color: #007800;">DBUSER</span>=...
<span style="color: #007800;">SMBUSER</span>=...
<span style="color: #007800;">SMBPASS</span>=...
<span style="color: #007800;">SMBHOST</span>=...
<span style="color: #007800;">SMBPATH</span>=...
<span style="color: #007800;">backupdir</span>=...
&nbsp;
<span style="color: #666666; font-style: italic;">#database backup</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-fr</span> <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$DBNAME</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqlhotcopy <span style="color: #660033;">--allowold</span> <span style="color: #660033;">-user</span>=<span style="color: #007800;">$DBUSER</span> <span style="color: #660033;">-password</span>=<span style="color: #007800;">$DBPASS</span> <span style="color: #007800;">$DBNAME</span> <span style="color: #007800;">$backupdir</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Compress and archive this copy of the database</span>
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-C</span> <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-cjf</span> <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$DBNAME</span>-1.tar.bz2 <span style="color: #007800;">$DBNAME</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#mount backup directory</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span>backup
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> cifs <span style="color: #660033;">-o</span> <span style="color: #007800;">username</span>=<span style="color: #007800;">$SMBUSER</span>,<span style="color: #007800;">password</span>=<span style="color: #007800;">$SMBPASS</span> <span style="color: #000000; font-weight: bold;">//</span><span style="color: #007800;">$SMBHOST</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$SMBPATH</span> <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span>backup
&nbsp;
<span style="color: #666666; font-style: italic;">#recycle files</span>
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">i</span>=<span style="color: #000000;">99</span>;i<span style="color: #000000; font-weight: bold;">&gt;</span>=<span style="color: #000000;">1</span>;i-=1<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$i</span>
<span style="color: #007800;">j</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #007800;">$i</span> + 1 <span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$DBNAME</span>-<span style="color: #007800;">$i</span>.tar.bz2 <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$DBNAME</span>-<span style="color: #007800;">$j</span>.tar.bz2
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#copy backup</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$DBNAME</span>-1.tar.bz2 <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$DBNAME</span>-1.tar.bz2
&nbsp;
<span style="color: #666666; font-style: italic;">#unmount and clean</span>
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span>backup
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-fr</span> <span style="color: #007800;">$backupdir</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$DBNAME</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.edoxy.net/weblog/2010/08/mysql-backup-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>http benchmark</title>
		<link>http://www.edoxy.net/weblog/2010/08/http-benchmark/</link>
		<comments>http://www.edoxy.net/weblog/2010/08/http-benchmark/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 15:40:06 +0000</pubDate>
		<dc:creator>edo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.edoxy.net/weblog/?p=177</guid>
		<description><![CDATA[To stress test our servers we&#8217;re benchmarking them. By monitoring both the webservers and database we can tune our setup and see where the performance bottleneck is located. To properly test the website we need to take a &#8220;snapshot&#8221; from the requests that are performed on the webservers. To do that, we make a log [...]]]></description>
			<content:encoded><![CDATA[<p>To stress test our servers we&#8217;re benchmarking them. By monitoring both the webservers and database we can tune our setup and see where the performance bottleneck is located.</p>
<p>To properly test the website we need to take a &#8220;snapshot&#8221; from the requests that are performed on the webservers. To do that, we make a log on the frontend server with the logformat:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p177code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1776"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p177code6"><pre class="bash" style="font-family:monospace;">log_format  request <span style="color: #ff0000;">'$request'</span></pre></td></tr></table></div>

<p>Now log all requests for a certain timespam, until we have an accurate set of requests. The logfile needs to be parsed with a small perl, bash or php script. See below. This file will output all request URL&#8217;s to url.txt. Since we have two frontends the script creates two lines for every url, pointing to two different domains.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p177code7'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1777"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code" id="p177code7"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
        <span style="color: #000088;">$logfile</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;./myp2p.access.log&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$logfile</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$logfile</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$servers</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;fe1.myp2p.eu&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;fe2.myp2p.eu&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$logfile</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$line</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/preg_match"><span style="color: #990000;">preg_match</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/GET (.*\.php.*) HTTP/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$line</span><span style="color: #339933;">,</span><span style="color: #000088;">$regs</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                        <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$servers</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$server</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
                                <span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;http://&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$server</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$regs</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
                        <span style="color: #009900;">&#125;</span>
                        <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
                <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #666666; font-style: italic;">#echo $i . &quot; items gevonden\n&quot;;
</span>        <a href="http://www.php.net/file_put_contents"><span style="color: #990000;">file_put_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;url.txt&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$output</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>With the http_load benchmark tool we can now load this url file, and randomly visit them, using a couple of different methods. For example, we can benchmark for 30 seconds with 100 requests/second, and see what that asks from our servers:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p177code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1778"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p177code8"><pre class="bash" style="font-family:monospace;">http_load <span style="color: #660033;">-rate</span> 100 <span style="color: #660033;">-seconds</span> <span style="color: #000000;">30</span> url.txt</pre></td></tr></table></div>

<p>On 16mbit traffic we are experiencing 130 hits served by one frontend every second (php files, images, css files, etc). On peaks we have about 1000mbit traffic, meaning that on such points we would have around 8000 hits per second on one frontend server. To simulate this behaviour we need to perform 16000 hits per second on both two frontends.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoxy.net/weblog/2010/08/http-benchmark/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Complete backend installation: new kernel, lighttpd, memcached, php5, munin-node, etc</title>
		<link>http://www.edoxy.net/weblog/2010/07/complete-backend-installation-new-kernel-lighttpd-memcached-php5-munin-node-etc/</link>
		<comments>http://www.edoxy.net/weblog/2010/07/complete-backend-installation-new-kernel-lighttpd-memcached-php5-munin-node-etc/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 12:25:28 +0000</pubDate>
		<dc:creator>edo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[lighttpd]]></category>

		<guid isPermaLink="false">http://www.edoxy.net/weblog/?p=166</guid>
		<description><![CDATA[Make sure you have a fresh default installation of debian 505 running. Also make sure you have ssh running. New kernel ?View Code BASH1 2 3 4 5 6 7 cd /usr/src/ wget http://.../linux-headers-2.6.34.1-myp2p_2.6.34.1-myp2p-10.00.Custom_amd64.deb wget http://.../linux-image-2.6.34.1-myp2p_2.6.34.1-myp2p-10.00.Custom_amd64.deb dpkg -i linux-image-*.deb dpkg -i linux-headers-*.deb update-initramfs -k 2.6.34.1-myp2p -c pico /boot/grub/menu.list Now make sure that the file system [...]]]></description>
			<content:encoded><![CDATA[<p>Make sure you have a fresh default installation of debian 505 running. Also make sure you have ssh running.</p>
<p><strong>New kernel</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code20'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16620"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p166code20"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>...<span style="color: #000000; font-weight: bold;">/</span>linux-headers-2.6.34.1-myp2p_2.6.34.1-myp2p-10.00.Custom_amd64.deb
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>...<span style="color: #000000; font-weight: bold;">/</span>linux-image-2.6.34.1-myp2p_2.6.34.1-myp2p-10.00.Custom_amd64.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> linux-image-<span style="color: #000000; font-weight: bold;">*</span>.deb
<span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> linux-headers-<span style="color: #000000; font-weight: bold;">*</span>.deb
update-initramfs <span style="color: #660033;">-k</span> 2.6.34.1-myp2p <span style="color: #660033;">-c</span>
pico <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>menu.list</pre></td></tr></table></div>

<p>Now make sure that the file system is correct and that there is a initrd line in the new kernel entries.</p>
<p><strong>Time and date</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code21'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16621"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p166code21"><pre class="bash" style="font-family:monospace;">dpkg-reconfigure tzdata
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ntpdate
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>...<span style="color: #000000; font-weight: bold;">/</span>ntpdate
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x ntpdate
.<span style="color: #000000; font-weight: bold;">/</span>ntpdate
crontab <span style="color: #660033;">-e</span>
add: <span style="color: #000000;">25</span> <span style="color: #000000;">6</span>   <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span>     <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>ntpdate</pre></td></tr></table></div>

<p><strong>Lighttpd</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code22'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16622"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code" id="p166code22"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.lighttpd.net<span style="color: #000000; font-weight: bold;">/</span>lighttpd<span style="color: #000000; font-weight: bold;">/</span>releases-1.4.x<span style="color: #000000; font-weight: bold;">/</span>lighttpd-<span style="color: #000000; font-weight: bold;">&lt;</span>version<span style="color: #000000; font-weight: bold;">&gt;</span>.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> xzf lighttpd-<span style="color: #000000; font-weight: bold;">&lt;</span>version<span style="color: #000000; font-weight: bold;">&gt;</span>.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> lighttpd-<span style="color: #000000; font-weight: bold;">&lt;</span>version<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> zlib1g zlib1g-dev libpcre3 libpcre3-dev <span style="color: #c20cb9; font-weight: bold;">make</span> build-essential
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--without-bzip2</span>
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lighttpd
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>lighttpd
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>...<span style="color: #000000; font-weight: bold;">/</span>lighttpd.conf
pico lighttpd.conf <span style="color: #7a0874; font-weight: bold;">&#40;</span>edit <span style="color: #000000; font-weight: bold;">if</span> needed<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>...<span style="color: #000000; font-weight: bold;">/</span>lighttpd
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x lighttpd</pre></td></tr></table></div>

<p><strong>PHP &#038; APC</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code23'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16623"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p166code23"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-cgi php5-memcache php5-dev php5-gd php5-mysql
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> memcached</pre></td></tr></table></div>

<p>configure php to use memcache as session file host with:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code24'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16624"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p166code24"><pre class="bash" style="font-family:monospace;">session.save_handler = memcache
session.save_path=<span style="color: #ff0000;">&quot;tcp://10.0.0.67:11211?persistent=1&amp;amp;weight=1&amp;amp;timeout=1&amp;amp;retry_interval=15&quot;</span></pre></td></tr></table></div>

<p>in</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code25'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16625"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p166code25"><pre class="bash" style="font-family:monospace;">pico <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</pre></td></tr></table></div>

<p>install APC:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code26'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16626"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p166code26"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php-pear
pecl <span style="color: #c20cb9; font-weight: bold;">install</span> apc
pico <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>conf.d<span style="color: #000000; font-weight: bold;">/</span>apc.ini</pre></td></tr></table></div>

<p>and add to this file something like:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code27'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16627"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p166code27"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">extension</span>=apc.so
apc.enabled=<span style="color: #000000;">1</span>
apc.shm_size=<span style="color: #000000;">30</span></pre></td></tr></table></div>

<p>Now start lighttpd:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code28'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16628"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p166code28"><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>
<span style="color: #7a0874; font-weight: bold;">cd</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>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>...<span style="color: #000000; font-weight: bold;">/</span>index.html
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>...<span style="color: #000000; font-weight: bold;">/</span>phpinfo.txt
<span style="color: #c20cb9; font-weight: bold;">mv</span> phpinfo.txt phpinfo.php
<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>myp2p<span style="color: #000000; font-weight: bold;">/</span>public_html
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>lighttpd</pre></td></tr></table></div>

<p><strong>Misc</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code29'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16629"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p166code29"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> postfix <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">install</span> with <span style="color: #ff0000;">&quot;no configuration&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>postfix<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>...<span style="color: #000000; font-weight: bold;">/</span>main.cf
pico main.cf
pico <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts <span style="color: #7a0874; font-weight: bold;">&#40;</span>add the line <span style="color: #ff0000;">&quot;77.247.179.66   myp2p.eu&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-fr</span> sysctl.conf
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>...<span style="color: #000000; font-weight: bold;">/</span>sysctl.conf
sysctl <span style="color: #660033;">-p</span></pre></td></tr></table></div>

<p><strong>Website sync</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p166code30'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p16630"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p166code30"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>myp2p<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>...<span style="color: #000000; font-weight: bold;">/</span>sync.sh
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x sync.sh
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> rsync
<span style="color: #c20cb9; font-weight: bold;">su</span> myp2p <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;ssh-keygen -t rsa&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Copy this key <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>myp2p<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_rsa.pub<span style="color: #7a0874; font-weight: bold;">&#41;</span> to the core server<span style="color: #7a0874; font-weight: bold;">&#41;</span>
.<span style="color: #000000; font-weight: bold;">/</span>sync.sh
crontab <span style="color: #660033;">-e</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>add the line <span style="color: #ff0000;">&quot;*/5 *  * * *     /home/myp2p/sync.sh&quot;</span> and the line <span style="color: #ff0000;">&quot;* *    * * *     find /home/myp2p/public_html/unicache/* -mmin +10 -exec rm -fr {} \;&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.edoxy.net/weblog/2010/07/complete-backend-installation-new-kernel-lighttpd-memcached-php5-munin-node-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian Etch mirror</title>
		<link>http://www.edoxy.net/weblog/2010/06/debian-etch-mirror/</link>
		<comments>http://www.edoxy.net/weblog/2010/06/debian-etch-mirror/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 13:43:04 +0000</pubDate>
		<dc:creator>edo</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.edoxy.net/weblog/?p=158</guid>
		<description><![CDATA[Since Februari 12 2010, Etch has become oldstable. Packages are no longer updated. So time to use the archive apt mirror: ?View Code BASH1 2 deb http://archive.debian.org/debian/ etch main deb-src http://archive.debian.org/debian/ etch main]]></description>
			<content:encoded><![CDATA[<p>Since Februari 12 2010, Etch has become oldstable. Packages are no longer updated. So time to use the archive apt mirror:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p158code32'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p15832"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p158code32"><pre class="bash" style="font-family:monospace;">deb http:<span style="color: #000000; font-weight: bold;">//</span>archive.debian.org<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span> etch main
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>archive.debian.org<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span> etch main</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.edoxy.net/weblog/2010/06/debian-etch-mirror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nelson Mandela</title>
		<link>http://www.edoxy.net/weblog/2010/06/nelson-mandela/</link>
		<comments>http://www.edoxy.net/weblog/2010/06/nelson-mandela/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 22:15:57 +0000</pubDate>
		<dc:creator>edo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.edoxy.net/weblog/?p=152</guid>
		<description><![CDATA[Photoshop drawing of Nelson:]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">Photoshop drawing of Nelson:<br />
<a href="http://www.edoxy.net/weblog/wp-content/uploads/2010/06/mandela.png"><img class="aligncenter size-large wp-image-153" title="mandela" src="http://www.edoxy.net/weblog/wp-content/uploads/2010/06/mandela-755x1024.png" alt="mandela" width="453" height="614" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoxy.net/weblog/2010/06/nelson-mandela/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyP2P World Cup 2010 banner design</title>
		<link>http://www.edoxy.net/weblog/2010/05/myp2p-world-cup-2010-banner-design/</link>
		<comments>http://www.edoxy.net/weblog/2010/05/myp2p-world-cup-2010-banner-design/#comments</comments>
		<pubDate>Tue, 18 May 2010 20:22:35 +0000</pubDate>
		<dc:creator>edo</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.edoxy.net/weblog/?p=142</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.edoxy.net/weblog/wp-content/uploads/2010/05/myp2p_worldcup2010.png"><img class="aligncenter size-large wp-image-143" title="myp2p_worldcup2010" src="http://www.edoxy.net/weblog/wp-content/uploads/2010/05/myp2p_worldcup2010-1024x228.png" alt="myp2p_worldcup2010" width="573" height="127" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoxy.net/weblog/2010/05/myp2p-world-cup-2010-banner-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mPossible photoshoot &amp; results</title>
		<link>http://www.edoxy.net/weblog/2010/05/mpossible-photoshoot-results/</link>
		<comments>http://www.edoxy.net/weblog/2010/05/mpossible-photoshoot-results/#comments</comments>
		<pubDate>Sun, 16 May 2010 20:20:48 +0000</pubDate>
		<dc:creator>edo</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[mPossible]]></category>

		<guid isPermaLink="false">http://www.edoxy.net/weblog/?p=138</guid>
		<description><![CDATA[For the mPossible project we had a photoshoot for promotional goals. Some pretty good results. Big thanks to Rebecca.]]></description>
			<content:encoded><![CDATA[<p>For the mPossible project we had a photoshoot for promotional goals. Some pretty good results. Big thanks to Rebecca.</p>
<p><a href="http://www.edoxy.net/weblog/wp-content/uploads/2010/05/DSC_0094.JPG"><img class="aligncenter size-large wp-image-146" title="DSC_0094" src="http://www.edoxy.net/weblog/wp-content/uploads/2010/05/DSC_0094-1024x685.jpg" alt="DSC_0094" width="368" height="247" /></a><br />
<a href="http://www.edoxy.net/weblog/wp-content/uploads/2010/05/DSC_0138_edited.jpg"><img class="aligncenter size-medium wp-image-139" title="DSC_0138_edited" src="http://www.edoxy.net/weblog/wp-content/uploads/2010/05/DSC_0138_edited-300x229.jpg" alt="DSC_0138_edited" width="300" height="229" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoxy.net/weblog/2010/05/mpossible-photoshoot-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alsa upgrade to 1.0.23</title>
		<link>http://www.edoxy.net/weblog/2010/05/alsa-upgrade-to-1-0-23/</link>
		<comments>http://www.edoxy.net/weblog/2010/05/alsa-upgrade-to-1-0-23/#comments</comments>
		<pubDate>Sun, 16 May 2010 18:20:10 +0000</pubDate>
		<dc:creator>edo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mPossible]]></category>

		<guid isPermaLink="false">http://www.edoxy.net/weblog/?p=136</guid>
		<description><![CDATA[Quick note on upgrading Alsa on the mPossible. This solved our issues with the relatively new VIA sound card chip on our new Asus motherboard. Download the following 3 source packages: ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.23.tar.bz2 ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.23.tar.bz2 ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.23.tar.bz2 Extract, configure, compile, install with: ?View Code BASH1 2 3 ./configure make make install You might need debian packages: ?View Code [...]]]></description>
			<content:encoded><![CDATA[<p>Quick note on upgrading Alsa on the mPossible. This solved our issues with the relatively new VIA sound card chip on our new Asus motherboard.</p>
<p>Download the following 3 source packages:</p>
<p>ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.23.tar.bz2<br />
ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.23.tar.bz2<br />
ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.23.tar.bz2</p>
<p>Extract, configure, compile, install with:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p136code35'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p13635"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p136code35"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></td></tr></table></div>

<p>You might need debian packages:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p136code36'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p13636"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p136code36"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential ncurses-dev <span style="color: #c20cb9; font-weight: bold;">gettext</span> xmlto libasound2-dev linux-headers-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`</span> libncursesw5-dev</pre></td></tr></table></div>

<p>Reboot, and set all output levels with a program like alsamixer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoxy.net/weblog/2010/05/alsa-upgrade-to-1-0-23/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reduce iowait of php5-cgi processes writing to session files</title>
		<link>http://www.edoxy.net/weblog/2010/03/reduce-iowait-of-php5-cgi-processes-writing-to-session-files/</link>
		<comments>http://www.edoxy.net/weblog/2010/03/reduce-iowait-of-php5-cgi-processes-writing-to-session-files/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 14:14:49 +0000</pubDate>
		<dc:creator>edo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[lighttpd]]></category>

		<guid isPermaLink="false">http://www.edoxy.net/weblog/?p=131</guid>
		<description><![CDATA[One of our servers has been dealing with huge peaks of iowait. After some investigation i noticed that this is (obviously) caused by a disk writing. The iostat program gave me huge Blk_wrtn/s numbers for my first partition device. I wrote a very poor but usefull php command line application that detects processes that are [...]]]></description>
			<content:encoded><![CDATA[<p>One of our servers has been dealing with huge peaks of iowait. After some investigation i noticed that this is (obviously) caused by a disk writing. The iostat program gave me huge Blk_wrtn/s numbers for my first partition device. I wrote a very poor but usefull php command line application that detects processes that are in the D-state, and then checks all the opened file descriptors of this process. This php script showed a lot of write actions to the php session directory.</p>
<p>So to avoid this, I implemented memcached into php. You can configure the php processes to store their session files in memcached. Install memcache, give it some memory to work with (512M here, but depending on the size of your site) and edit the php.ini with:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p131code38'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p13138"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p131code38"><pre class="bash" style="font-family:monospace;">session.save_handler = memcache
session.save_path=<span style="color: #ff0000;">&quot;tcp://127.0.0.1:11211?persistent=1&amp;amp;weight=1&amp;amp;timeout=1&amp;amp;retry_interval=15&quot;</span></pre></td></tr></table></div>

<p>On high load this will reduce the iowait CPU time significantly.</p>
<p><a href="http://www.edoxy.net/weblog/wp-content/uploads/2010/03/iowait-debug.zip">Iowait debug script</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoxy.net/weblog/2010/03/reduce-iowait-of-php5-cgi-processes-writing-to-session-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eBox: html/css box with imaged corners and gradient overlay</title>
		<link>http://www.edoxy.net/weblog/2010/03/ebox-htmlcss-box-with-imaged-corners-and-gradient-overlay/</link>
		<comments>http://www.edoxy.net/weblog/2010/03/ebox-htmlcss-box-with-imaged-corners-and-gradient-overlay/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 23:08:39 +0000</pubDate>
		<dc:creator>edo</dc:creator>
				<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://www.edoxy.net/weblog/?p=125</guid>
		<description><![CDATA[Creating a box with rounded corners using css always is quite a hassle, so i decided to figure it out properly once and for good. Using absolutely positioned elements you can create corners, and all elements between those corners. The tricky part is to let the border parts between the corners have a 100% width [...]]]></description>
			<content:encoded><![CDATA[<p>Creating a box with rounded corners using css always is quite a hassle, so i decided to figure it out properly once and for good. Using absolutely positioned elements you can create corners, and all elements between those corners. The tricky part is to let the border parts between the corners have a 100% width or height, but letting them not overlap with the corners, using a margin.</p>
<p>To be cross-browser friendly, it&#8217;s important to declare the doctype. IE7 will give wrong output if no doctype declared.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p125code40'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12540"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p125code40"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</pre></td></tr></table></div>

<p>Check out the eBox that i made at <a href="http://www.edoxy.net/ebox/ebox.html">http://www.edoxy.net/ebox/ebox.html</a>. Download the pack, also for PSD&#8217;s on the imaged border and overlay gradient.</p>
<p>Be aware of the fact that the overlay covers the complete box, including the radius corners. If the box is not large enough, you will see the overlay at those corners. Make sure that the overlay is completely transparant at the top and at the bottom.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.edoxy.net/weblog/2010/03/ebox-htmlcss-box-with-imaged-corners-and-gradient-overlay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
