<?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>TheHippo &#187; Ubuntu</title>
	<atom:link href="http://blog.thehippo.de/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thehippo.de</link>
	<description>if (i=1) throw null;</description>
	<lastBuildDate>Wed, 02 Mar 2011 18:06:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing Windows AFTER you installed Ubuntu</title>
		<link>http://blog.thehippo.de/2010/09/general/installing-windows-after-you-installed-ubuntu/</link>
		<comments>http://blog.thehippo.de/2010/09/general/installing-windows-after-you-installed-ubuntu/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 16:12:55 +0000</pubDate>
		<dc:creator>Hippo</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tools and Software]]></category>
		<category><![CDATA[bootmanager]]></category>
		<category><![CDATA[gparted]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.thehippo.de/?p=317</guid>
		<description><![CDATA[I'm a big fan of the Linux operating system, but sometimes you really need a Windows to run software that isn't available for Linux or where isn't any related program.
Therefore you could try WINE (which emulates the Windows API within you Linux system), you could install a virtual windows using a virtual machine like ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a big fan of the Linux operating system, but sometimes you really need a Windows to run software that isn&#8217;t available for Linux or where isn&#8217;t any related program.<br />
Therefore you could try <a title="Wine" href="http://www.winehq.org/" target="_blank">WINE</a> (which emulates the Windows API within you Linux system), you could install a virtual windows using a virtual machine like <a title="Virtual Box" href="http://www.virtualbox.org/" target="_blank">Virtual Box</a> (which emulates a whole PC within you Linux system) or you could install a native Windows operating system side by side to you Linux. If you need the whole performance you hardware could give you, you need to install Windows on your hard drive next to you Linux installation.<br />
Since the Windows boot loader is very restrictive regarding to having multiple operating systems the easiest way is to first install Windows and then later install your Linux system, which brings <a href="http://www.gnu.org/software/grub/">GRUB</a> (or something similar) as a boot loader.<br />
I first installed Ubuntu on my PC and wanted to install Windows later, so I hard to do it the hardest way:<br />
<span id="more-317"></span><br />
(There is absolutely no guarantee that  this works for you, but this is how I did it. This instructions only work for fresh installations of Ubuntu 9.10 or later, because earlier version of Ubuntu use an older version of the GRUB boot loader.)</p>
<p>You need:</p>
<ul>
<li>Enough space on hard drive</li>
<li>Windows installation CD/DVD</li>
<li>Linux/Ubuntu Live-CD/DVD (!!)</li>
<li>Some time you like to waste on a Windows installation process</li>
</ul>
<p>Instructions:</p>
<ul>
<li>Make sure you have enough free space on you hard disc.</li>
<li>If you hadn&#8217;t install <a title="GParted" href="http://gparted.sourceforge.net/" target="_blank">GParted</a>, do it now.</li>
<li>Make space for the Windows partition on you hard drive and create a new NTFS partition. The overview from GParted should somehow look similar to this (/dev/sda2 is my NTFS partition):
<p><div id="attachment_321" class="wp-caption aligncenter" style="width: 510px"><a href="http://blog.thehippo.de/wp-content/uploads/2010/09/screenshot1.png"><img class="size-full wp-image-321  " title="GParted - partitions on hard drive" src="http://blog.thehippo.de/wp-content/uploads/2010/09/screenshot1.png" alt="GParted - partitions on hard drive" width="500" height="122" /></a><p class="wp-caption-text">GParted - partitions on hard drive</p></div></li>
<li>Reboot you system, install Windows on the <strong>NEW</strong> partition on your hard drive (It is quite important to choose the right one, otherwise you Linux system could get lost). After the installation there is (currently) no way to boot you Linux system, since Windows has overwritten the Linux boot loader.</li>
<li>Insert you Ubuntu/Linux Live CD / DVD and boot a Live system.</li>
<li>Mount you Linux partition into you Live system. (Easiest way is: On main menu: &#8220;Places&#8221; -&gt; &#8220;Name/size of Filesystem&#8221;</li>
<li>Open a console/terminal</li>
<li>Check if everything is correctly mounted and get the ID of you Linux partition. Enter:
<pre>mount</pre>
<p>which should give you a line like this</p>
<pre>/dev/sda2 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=devkit)</pre>
<p>Now run:</p>
<pre>ls /media/0d104aff-ec8c-44c8-b811-92b993823444/boot</pre>
<p>Replace <code>0d104aff-ec8c-44c8-b811-92b993823444</code> with the ID given by the <code>mount</code> command earlier. (Tip: Use &lt;Tab&gt;-Key to get autocompletion.)<br />
The result should be very close to this:</p>
<pre>config-2.6.18-3-686      initrd.img-2.6.18-3-686.bak  System.map-2.6.18-3-686
grub                     lost+found                   vmlinuz-2.6.18-3-686
initrd.img-2.6.18-3-686  memtest86+.bin</pre>
</li>
<li>Overwrite the master boot record and replace the Windows boot loader with GRUB: (again insert the correct ID for the partition and make sure you perform this on the right hard drive!)
<pre>sudo grub-install --root-directory=/media/0d104aff-ec8c-44c8-b811-92b993823444 /dev/sda</pre>
</li>
<li>Grub automatically detects all the installed operating system. After a reboot you should be able to chose which operating system you want to boot.</li>
<li>Done.</li>
</ul>
<p>Tip: If you do not see the grub menu during boot, press and hold the Shift key before the boot process starts.</p>
<ul></ul>
<p class="wp-flattr-button"></p> <p><a href="http://blog.thehippo.de/?flattrss_redirect&amp;id=317&amp;md5=4ab4980ca49abb7d518cc380d9d08d2a" title="Flattr" target="_blank"><img src="http://blog.thehippo.de/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.thehippo.de/2010/09/general/installing-windows-after-you-installed-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu: getting notifications from the console</title>
		<link>http://blog.thehippo.de/2010/08/tools-and-software/ubuntu-getting-notifications-from-the-console/</link>
		<comments>http://blog.thehippo.de/2010/08/tools-and-software/ubuntu-getting-notifications-from-the-console/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 18:10:24 +0000</pubDate>
		<dc:creator>Hippo</dc:creator>
				<category><![CDATA[Tools and Software]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[notify]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.thehippo.de/?p=302</guid>
		<description><![CDATA[Sometimes you run a task from the console which takes a while. (E.g.: compiling some programs, downloading something from the internet or installing updates.) Often you do not wait until this task finishes and just toggle to the next window. Would it be nice if you would get some kind of notification, when the task has ...]]></description>
			<content:encoded><![CDATA[<p>Sometimes you run a task from the console which takes a while. (E.g.: compiling some programs, downloading something from the internet or installing updates.) Often you do not wait until this task finishes and just toggle to the next window. Would it be nice if you would get some kind of notification, when the task has finished? I found the following solution, which uses the Ubuntu notification system:</p>
<ul>
<li>Edit the <em>.bashrc</em> file from you home directory and append the following lines:
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw3">alias</span> <span class="re2">alert_helper=</span><span class="st0">&#8216;history|tail -n1|sed -e &quot;s/^<span class="es0">\s</span>*[0-9]<span class="es0">\+</span><span class="es0">\s</span>*//&quot; -e &quot;s/;<span class="es0">\s</span>*alert$//&quot;&#8217;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">alias</span> <span class="re2">alert=</span><span class="st0">&#8216;notify-send -i /usr/share/icons/gnome/32&#215;32/apps/gnome-terminal.png &quot;[$?] $(alert_helper)&quot;&#8217;</span></div>
</li>
</ol>
</div>
</li>
<li>Install the <em>libnotify-bin</em> package
<pre>sudo apt-get install libnotify-bin</pre>
</li>
<li>If you do not want to restart execute the next command in a console:
<pre>source ~/.bashrc</pre>
</li>
</ul>
<p>Now you have a new command available on your console: <em>alert</em><br />
If you do something time consuming now add the additional <em>alert</em> after the last command and you will get a nice notification:<br />
<div id="attachment_312" class="wp-caption aligncenter" style="width: 360px"><a href="http://blog.thehippo.de/wp-content/uploads/2010/08/notification.png"><img class="size-full wp-image-312" title="notification" src="http://blog.thehippo.de/wp-content/uploads/2010/08/notification.png" alt="notification" width="350" height="151" /></a><p class="wp-caption-text">notification from the console</p></div></p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.thehippo.de/2010/08/tools-and-software/ubuntu-getting-notifications-from-the-console/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Using Skype with web cam</title>
		<link>http://blog.thehippo.de/2010/07/tools-and-software/ubuntu-using-skype-with-web-cam/</link>
		<comments>http://blog.thehippo.de/2010/07/tools-and-software/ubuntu-using-skype-with-web-cam/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 12:32:42 +0000</pubDate>
		<dc:creator>Hippo</dc:creator>
				<category><![CDATA[Tools and Software]]></category>
		<category><![CDATA[Cheese]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>
		<category><![CDATA[v4l]]></category>
		<category><![CDATA[Video4Linux]]></category>
		<category><![CDATA[web cam]]></category>

		<guid isPermaLink="false">http://blog.thehippo.de/?p=291</guid>
		<description><![CDATA[Back in the days where I used Windows having video and audio conversations with Skype was really easy. Just plug in all the devices and configure the volume of the microphone and you are done.

Today I tried the same with my Ubuntu 10.04 installation and I encountered a few problems. This is how I got my ...]]></description>
			<content:encoded><![CDATA[<p>Back in the days where I used Windows having video and audio conversations with <a title="Skype" href="http://www.skype.com" target="_blank">Skype</a> was really easy. Just plug in all the devices and configure the volume of the microphone and you are done.</p>
<p>Today I tried the same with my <a title="Ubuntu" href="http://www.ubuntu.com" target="_blank">Ubuntu</a> 10.04 installation and I encountered a few problems. This is how I got my webcam working with Skype:<span id="more-291"></span></p>
<ul>
<li>Check if your web cam is working in general. The program <a title="Cheese" href="http://projects.gnome.org/cheese/" target="_blank">Cheese</a> is quite suitable for this task.</li>
<li>Test if Skype works with you cam. Open the options dialogue, go to &#8220;Video&#8221; and click test. If you see yourself, everything is fine <img src='http://blog.thehippo.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>Otherwise create a shell script with the following content:
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="re3">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">LD_PRELOAD=</span>/usr/lib/libv4l/v4l1compat.so &nbsp;/usr/bin/skype</div>
</li>
</ol>
</div>
<p>This script forces Skype to use the <a title="Video 4 Linux" href="http://linuxtv.org/v4lwiki/" target="_blank">Video4Linux</a> drivers instead of the native ones.</li>
<li>If you got this error like this:<br />
<blockquote><p>X Error, request 132, minor 18, error code 8 BadMatch (invalid parameter attributes)</p></blockquote>
<p>Modify you script this way:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="re3">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">export</span> <span class="re2">XLIB_SKIP_ARGB_VISUALS=</span><span class="nu0">1</span> skype</div>
</li>
<li class="li1">
<div class="de1"><span class="re2">LD_PRELOAD=</span>/usr/lib/libv4l/v4l1compat.so &nbsp;/usr/bin/skype</div>
</li>
</ol>
</div>
</li>
<li>Whenever you start Skype and want to use your web cam use this script to start Skype.</li>
</ul>
<p>P.S.: If you are on a 64bit system you probably need to do this:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="re3">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re2">LD_PRELOAD=</span>/usr/lib64/libv4l/v4l1compat.so &nbsp;/usr/bin/skype</div>
</li>
</ol>
</div>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.thehippo.de/2010/07/tools-and-software/ubuntu-using-skype-with-web-cam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to run VMware Server under Ubuntu 10.04 LTS</title>
		<link>http://blog.thehippo.de/2010/06/server/vmware-server-ubuntu-10-04/</link>
		<comments>http://blog.thehippo.de/2010/06/server/vmware-server-ubuntu-10-04/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 10:10:16 +0000</pubDate>
		<dc:creator>Hippo</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Tools and Software]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 10.04]]></category>
		<category><![CDATA[virtual server]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmware server]]></category>

		<guid isPermaLink="false">http://blog.thehippo.de/?p=258</guid>
		<description><![CDATA[A while ago I used VMware server to running a few virtual instances for testing purposes. Everything worked really flawless. Yesterday I wanted to have some virtual server on my home computer again and encountered many problem with the current version of VMware Server on my Ubuntu 10.04 LTS.
There where some problems with the ...]]></description>
			<content:encoded><![CDATA[<p>A while ago I used <a title="VMware server" href="http://www.vmware.com/products/server/" target="_blank">VMware server</a> to running a few virtual instances for testing purposes. Everything worked really flawless. Yesterday I wanted to have some virtual server on my home computer again and encountered many problem with the current version of VMware Server on my Ubuntu 10.04 LTS.<br />
There where some problems with the installation, some to get the VMware console running and also a few the keyboard input on the console.</p>
<p>It took a while to get everything running and I pulled all the information I needed from many different sites. So pulled them all together in this blog entry:<span id="more-258"></span></p>
<ol>
<li>Register at the VMware page. Download the package for VMware server as *.tar.gz. Extract the archive.</li>
<li>Current VMware products do not support the Linux kernel 2.6.32. Therefor you need a patch for the installation archive. Download the patch from the following link and extract it in the parent folder of you VMware download: <a href="http://codebin.cotescu.com/vmware/vmware-server-2.0.x-kernel-2.6.3x-install.sh" target="_blank">VMware patch for Linux kernel 2.6.32</a>. More information could found on <a title="VMware and Linux kernel 2.6.32" href="http://communities.vmware.com/message/1401588#1401588" target="_blank">this page</a> and pages linked on this page.</li>
<li>Run the script with super-user rights. It is quite simple to install. Most of the times you could just hit enter for every question of the installer. At one point the installer ask for a system user which runs the Vmware instances. If you leave it at the default choice, root will be the user. Make sure you have password to log in as root user. (You can set a root password by running the following command on a terminal:<br />
<blockquote><p>sudo passwd root</p></blockquote>
</li>
<li>If you are running a new Ubuntu system you might have get a <a title="Firefox" href="http://www.mozilla-europe.org/en/firefox/" target="_blank">Firefox</a> version &gt;= 3.6. In these versions the VMware console plugin for the browser won&#8217;t work, so download a older version of Firefox from <a title="Older Firefox version download" href="http://www.mozilla.com/en-US/firefox/all-older.html" target="_blank">this page</a> (3.5.9 should be highest working version number).<br />
Extract it somewhere and run it:</p>
<blockquote><p>./firefox -no-remote -P</p></blockquote>
<p>You might create a new Firefox profile (<em>-P</em>) and make sure a new instance of the Firefox is starting (<em>-no-remote</em>)</li>
<li>On a few guest operating systems you might have some trouble with some of the arrow keys of you keyboard. To get them working run this command from a terminal:<br />
<blockquote><p>sudo echo &#8220;xkeymap.nokeycodeMap = true&#8221; &gt;&gt;  /etc/vmware/config</p></blockquote>
<p>You need to run this on the computer where you want to start the VMware console. More Informations could be found <a title="Arrow keys in VMware console" href="http://ubuntuforums.org/showthread.php?t=1116511" target="_blank">here</a>.</li>
<li>Browse to you VMware administration panel (<a title="VMware adminstration panel" href="http://localhost:8222" target="_blank">http://localhost:8222</a> or <a title="VMware adminstration panel" href="https://localhost:8333" target="_blank">https://localhost:8333</a>). Create and start a virtual machine. Install the browser plug-in. Launch the console.</li>
</ol>
<div id="attachment_270" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.thehippo.de/wp-content/uploads/2010/06/screenshot1.png"><img class="size-large wp-image-270" title="VMware admin &amp; console" src="http://blog.thehippo.de/wp-content/uploads/2010/06/screenshot1-1024x566.png" alt="VMware admin &amp; console" width="600" height="331" /></a><p class="wp-caption-text">VMware admin &amp; console</p></div>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.thehippo.de/2010/06/server/vmware-server-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crashing virtual servers II</title>
		<link>http://blog.thehippo.de/2009/08/server/crashing-virtual-servers-2/</link>
		<comments>http://blog.thehippo.de/2009/08/server/crashing-virtual-servers-2/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 15:48:32 +0000</pubDate>
		<dc:creator>Hippo</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.thehippo.de/?p=54</guid>
		<description><![CDATA[In my last post I wrote about some problems that I had with my virtual server that freezes under heavy load. The improvements I suggested worked really nice but the server still sometimes freezes - not often as before but it still happened. So I "googled" around and also asked at ServerFault.com.

It seems that ...]]></description>
			<content:encoded><![CDATA[<p>In my last <a title="Crashing Virtual Servers" href="http://blog.thehippo.de/2009/08/server/crashing-virtual-servers/" target="_blank">post</a> I wrote about some problems that I had with my virtual server that freezes under heavy load. The improvements I suggested worked really nice but the server still sometimes freezes &#8211; not often as before but it still happened. So I &#8220;googled&#8221; around and also asked at <a title="Serverfault question" href="http://serverfault.com/questions/54943/virtual-server-freeze-apache" target="_blank">ServerFault.com</a>.</p>
<p>It seems that keeping up the the apache mpm_prefork and mod_php will not be the solution anymore. Most sites suggested to use mpm_worker instead, because it uses less memory (and my problem was, that my Apache consumed all my memory). On the other hand there could be some problems with thread-safety, but I liked to give it a try. PHP will not me used as an Apache module any more. Instead we will run PHP as a <a title="FastCGI" href="http://en.wikipedia.org/wiki/FastCGI" target="_blank">FastCGI</a> script.<span id="more-54"></span></p>
<p>A short step by step tutorial for switching from mpm_prefork to mpm_worker with using PHP.</p>
<ul>
<li>Open a terminal session as a root user.
<pre>apt-get install apache2-mpm-worker libapache2-mod-fcgid php5-cgi</pre>
<p>apt will complain about a few things and will remove some of the previous installed packages. After installation make sure that mod_fcgid is enabled.</li>
<li>Edit you /etc/apache2/apache2.conf or /etc/apache2/httpd.conf or any config file that will be parsed by apache and add this:
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw1">AddHandler</span> fcgid-<span class="kw1">script</span> .php</div>
</li>
<li class="li1">
<div class="de1">FCGIWrapper /usr/lib/cgi-bin/php5 .php</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">Options</span> ExecCGI <span class="kw2">FollowSymlinks</span> Indexes</div>
</li>
</ol>
</div>
</li>
<li>Now enter you /etc/apache2/sites-available directory and edit all the the files there. Every file should contain at least one &#8220;VirtualHost&#8221; node. Within these &#8220;VirtualHost&#8221; nodes there should be one or two &#8220;Directory&#8221; nodes. If not already there add a new line starting with &#8220;Options&#8221; and add &#8220;Indexes&#8221; and &#8220;ExecCGI&#8221; as parameters on these lines. It should be look like this one:
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw1">Options</span> Indexes <span class="kw2">FollowSymLinks</span> MultiViews ExecCGI</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">AllowOverride</span> AuthConfig</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">Order</span> <span class="kw1">allow</span>,<span class="kw1">deny</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">allow</span> <span class="kw1">from</span> <span class="kw1">all</span></div>
</li>
</ol>
</div>
</li>
<li>Restart apache:
<pre>/etc/init.d/apache2 restart</pre>
</li>
</ul>
<p>Hopefully now everything should work as before. If you had enabled eAccelerator or any other byte code cache system or if you had mode some modifications on you php.ini you now have to copy them to your &#8220;new&#8221; php.ini located at /etc/php5/cgi/php.ini</p>
<p>A few things wont work as before, e.g. when use user authentication by PHP and not by htaccess. There are also a few issues I read about, but nothing which affect my sites.</p>
<p>As a result I would say spending this hours messing around with Apache and mod_fcgid was a good investment. My server now need only 90 MB Ram when idle, it was 250 MB Ram before. Even under load memory consumption stays lower as before. I hope this will be the last tweak for I longer time.</p>
<p>Using PHP as a FastCGI script gives you a lot of new options. So if you have a lot of time to spent or very worried about the security of you web server you could use the Apache module <a title="suexec" href="http://httpd.apache.org/docs/1.3/suexec.html" target="_blank">suexec</a> which then could execute the script as a special user and not as the default web server user www-data. It could even use multiple user for each virtual host / directory.</p>
<p>Interesting links:</p>
<ul>
<li><a href="http://brian.moonspot.net/2008/02/13/apache-worker-and-php/" target="_blank">http://brian.moonspot.net/2008/02/13/apache-worker-and-php/</a></li>
<li><a href="http://www.ibm.com/developerworks/linux/library/l-tune-lamp-2.html" target="_blank">http://www.ibm.com/developerworks/linux/library/l-tune-lamp-2.html</a> Tuning Apache and PHP</li>
<li><a href="http://www.ibm.com/developerworks/library/l-tune-lamp-3.html" target="_blank">http://www.ibm.com/developerworks/library/l-tune-lamp-3.html</a> Tuning MySQL</li>
<li><a href="http://ivan.gudangbaca.com/installing_apache2_and_php5_using_mod_fcgid" target="_blank">http://ivan.gudangbaca.com/installing_apache2_and_php5_using_mod_fcgid</a> More detailed instruction how to install mpm_worker and PHP via mod_fcgid</li>
</ul>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.thehippo.de/2009/08/server/crashing-virtual-servers-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>eAccelerator on Ubuntu</title>
		<link>http://blog.thehippo.de/2009/08/server/eaccelerator-on-ubuntu/</link>
		<comments>http://blog.thehippo.de/2009/08/server/eaccelerator-on-ubuntu/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 17:34:43 +0000</pubDate>
		<dc:creator>Hippo</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[eAccelerator]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.thehippo.de/?p=19</guid>
		<description><![CDATA[On the last blog I wrote for was an article which described who to install eAccelerator on a Ubuntu server. As this blog entry had a lot of visits I decided to put it on this blog again:

PHP is not the fastest scripting language, that truly a fact. Except from optimizing the scripts there ...]]></description>
			<content:encoded><![CDATA[<p>On the last blog I wrote for was an article which described who to install eAccelerator on a <a title="Ubuntu" href="http://www.ubuntu.com" target="_blank">Ubuntu</a> server. As this blog entry had a lot of visits I decided to put it on this blog again:</p>
<p><a title="PHP" href="http://www.php.net" target="_blank">PHP</a> is not the fastest scripting language, that truly a fact. Except from optimizing the scripts there a few possibilities to speed everything up. One is to install a byte code optimizer and cache on your server. They cache the byte code created by the PHP parser and try to optimise it. So every time some one requests for a page on your server the script does not have to be parsed again. This brings a speedup of 120 &#8211; 250% depending on you script. There are several byte code caching program available, the one I like most is <a title="eAccelerator" href="http://www.eaccelerator.net/" target="_blank">eAccelerator</a>. Sadly eAccelerator is not available through the Ubuntu repositories so you have install them yourself. Here is a short description how to archive this!<br />
<span id="more-19"></span>Everything is done from the terminal as a root user.</p>
<ul>
<li>Prepare you system for compiling a PHP extension:
<pre>apt-get install build-essential php5-dev</pre>
</li>
<li>Choosing a folder for build process. I used &#8220;/usr/local/src/&#8221;</li>
<li>Getting the sources from the eAccelerator site:
<pre>wget <a class="linkification-ext" title="Linkification: http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.zip" href="http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.zip">http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.zip</a></pre>
</li>
<li>Extract and delete the archive
<pre>unzip eaccelerator-0.9.5.3.zip &amp;&amp; rm eaccelerator-0.9.5.3.zip</pre>
</li>
<li>Enter the folder
<pre>cd eaccelerator-0.9.5.3</pre>
</li>
<li>Prepare as a new PHP extension and compilation
<pre>phpize
./configure --enable-eaccelerator=shared</pre>
</li>
<li>Compile and install
<pre>make
make install</pre>
<p>The install process prints out a folder where eAccelerator has been installed. Remember or copy it, you will need this later.</li>
<li>Enabling eAcceletor: Editing your &#8220;php.ini&#8221; or create a new ini file in you conf.d directory of PHP. (You can find them here: &#8220;/etc/php5/&#8221;.) Insert the following:
<pre>zend_extension                  = "/usr/lib/php5/20060613+lfs/eaccelerator.so"
eaccelerator.shm_size           = "0"
eaccelerator.cache_dir          = "/var/cache/eaccelerator"
eaccelerator.enable             = "1"
eaccelerator.optimizer          = "1"
eaccelerator.check_mtime        = "1"
eaccelerator.debug              = "0"
eaccelerator.filter             = ""
eaccelerator.shm_max            = "0"
eaccelerator.shm_ttl            = "0"
eaccelerator.shm_prune_period   = "0"
eaccelerator.shm_only           = "0"
eaccelerator.compress           = "1"
eaccelerator.compress_level     = "7"
eaccelerator.allowed_admin_path = "/var/www/eaccelerator"</pre>
<p>In the first line enter the path printed out during the install. In the last line you could enter a directory for the eAccelerator admin tool, if you want to use it.</li>
<li>Create the cache directory:
<pre>mkdir /var/cache/eaccelerator
chown www-data.www-data /var/cache/eaccelerator</pre>
</li>
<li>Restart you Apache!
<pre>/etc/init.d/apache2 restart</pre>
</li>
</ul>
<p>There are a lot of setting in the ini file. The whole list and the description of them could be found here:  <a title="eAccelerator Ini-settings" href="http://eaccelerator.net/wiki/Settings" target="_blank">Ini-settings</a>.</p>
<p>To check if everything is working open up a page on the server that contains the &#8220;phpinfo();&#8221; command. There should be some thing like this:</p>
<div id="attachment_32" class="wp-caption aligncenter" style="width: 617px"><img class="size-full wp-image-32" title="eAccelerator" src="http://blog.thehippo.de/wp-content/uploads/2009/08/eacclerator.jpg" alt="eAccelerator" width="607" height="98" /><p class="wp-caption-text">eAccelerator</p></div>
<p>Enjoy the speed!</p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://blog.thehippo.de/2009/08/server/eaccelerator-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.297 seconds -->

