<?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>Linux Showroom &#187; Software</title>
	<atom:link href="http://www.linux-showroom.com/topics/software/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linux-showroom.com</link>
	<description>My daily dosis of linux usage</description>
	<lastBuildDate>Sat, 06 Mar 2010 13:48:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Useful shell commands: last</title>
		<link>http://www.linux-showroom.com/2010/02/06/useful-shell-commands-last.html</link>
		<comments>http://www.linux-showroom.com/2010/02/06/useful-shell-commands-last.html#comments</comments>
		<pubDate>Sat, 06 Feb 2010 13:40:11 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[commandline]]></category>
		<category><![CDATA[last]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=68</guid>
		<description><![CDATA[Today I will start a new series for linux/*nix newbies  [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2010/02/06/useful-shell-commands-last.html">Useful shell commands: last</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Today I will start a new series for linux/*nix newbies called <strong>Useful shell commands</strong>. Every now and then I will write about one of the powerful commands you&#8217;ll find on your shell. I will start the series with a command called <strong>last</strong>.</p>
<p># <strong>last</strong></p>
<p>Calling <em>last</em> on your commandline gives you a list of logins. You will see who is <em>still logged in</em> and who was logged in before from what adress.</p>
<p>You can shorten the list of results with <em>last -n XX</em>. XX being the number of results you want to have displayed, e.g. <em>last -n 5</em> for 5 lines.</p>
<p># <strong>last reboot</strong></p>
<p>Calling <em>last reboot</em> lists the reboots since the log file which tracks all logins was created.</p>
<p>The manual page for last &#8211; <em>man last</em> &#8211; will show you more parameters.</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2010/02/06/useful-shell-commands-last.html">Useful shell commands: last</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2010/02/06/useful-shell-commands-last.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php-fpm runlevel start script for OpenSuSE 11.1</title>
		<link>http://www.linux-showroom.com/2009/07/30/php-fpm-runlevel-start-script-for-opensuse-11-1.html</link>
		<comments>http://www.linux-showroom.com/2009/07/30/php-fpm-runlevel-start-script-for-opensuse-11-1.html#comments</comments>
		<pubDate>Thu, 30 Jul 2009 17:44:34 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[OpenSuSE]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[OpenSUSE 11.1]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP-FPM]]></category>
		<category><![CDATA[rc]]></category>
		<category><![CDATA[runlevel]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Startup]]></category>
		<category><![CDATA[Yast]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=56</guid>
		<description><![CDATA[Nowadays OpenSUSE comes with almost all packages I need [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2009/07/30/php-fpm-runlevel-start-script-for-opensuse-11-1.html">php-fpm runlevel start script for OpenSuSE 11.1</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Nowadays OpenSUSE comes with almost all packages I need to run a fast and reliable webserver. As I have written before I use <a href="http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html">nginx and php-fpm</a> for our <a href="http://www.podcast.de">podcast service</a>.</p>
<p>You can get up-to-date packages of <a href="http://nginx.org">nginx</a> through <a href="http://software.opensuse.org/search">OpenSuSE&#8217;s build service</a>. I have not yet found a RPM package of <a href="http://php-fpm.org">php-fpm</a> though. Therefore I compile it myself. This works well and I have the advantage that I can <strong>customize by PHP</strong> package.</p>
<p>But there is also one disadvantage. There is no system runlevel script available this way. So you cannot make use of the rc stuff on OpenSuSE and start PHP at boot time. As I have quiet a few machines to administer I decided to write my own <strong>runlevel script to start php-fpm</strong>. </p>
<p>Looking closer into the stuff that is already delivered with the <em>php-fpm</em> package is a <strong>powerful start script</strong>. I took it as the basis of my script. I had to modify it only in a few places. Big thanks to the author(s)!</p>
<p>It will take a few easy steps to <strong>get php-fpm running</strong> after booting.</p>
<ol>
<li>Download my modified <a href="http://www.linux-showroom.com/script-php-fpm" rel="nofollow">php-fpm script</a> to your server&#8217;s runlevel directory (<em>/etc/rc.d</em>).</li>
<li>Rename the file by removing the file extension (<em>.txt</em>)</li>
<li>Give your superuser (root) rights to execute it.</li>
<li>Open the file <em>php-fpm</em> in your favorite editor (Vim, emacs, joe, &#8230;). </li>
<li>Modify the three lines (php_fpm_BIN=, php_fpm_CONF=, php_fpm_PID=) on top to match your installation directory of php-fpm.</li>
<li>Save and close the file.</li>
<li>Start yast with <em>yast runlevel</em> and switch to expert mode with Alt+x</li>
<li>Activate php-fpm for runlevels 3 and 5 (or whatever suits you). Save your changes with Alt+o. That&#8217;s it!</li>
</ol>
<p>Now your <strong>php-fpm installation starts on boot</strong>. If you ever have to reboot your machine you do not have to think about starting php-fpm manually as the system does it for you.</p>
<p>Let me know if this was helpful for you, if it works and if you have any questions!</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2009/07/30/php-fpm-runlevel-start-script-for-opensuse-11-1.html">php-fpm runlevel start script for OpenSuSE 11.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2009/07/30/php-fpm-runlevel-start-script-for-opensuse-11-1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System upgrade openSUSE 11.0 to openSUSE 11.1 with zypper</title>
		<link>http://www.linux-showroom.com/2008/12/20/system-upgrade-opensuse-110-to-opensuse-111-with-zypper.html</link>
		<comments>http://www.linux-showroom.com/2008/12/20/system-upgrade-opensuse-110-to-opensuse-111-with-zypper.html#comments</comments>
		<pubDate>Sat, 20 Dec 2008 16:47:45 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[OpenSuSE]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[zypper]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=28</guid>
		<description><![CDATA[I had to set up a server. The hoster offers openSUSE 11 [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/12/20/system-upgrade-opensuse-110-to-opensuse-111-with-zypper.html">System upgrade openSUSE 11.0 to openSUSE 11.1 with zypper</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I had to set up a server. The hoster offers openSUSE 11.0 at the moment but no openSUSE 11.1 yet. As I like to go with the latest and greatest I decided to upgrade the system to openSUSE 11.1 after using the hoster&#8217;s installation image for openSUSE 11.0. I searched on the web how a system upgrade should be done this time. (It seems to differ all the time.) I found a zypper command chain. Change the installation reposotories in <em>/etc/zypp/repos.d</em> to the new version and type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">zypper refresh
zypper dist-upgrade</pre></div></div>

<p><script type="text/javascript"><!--
google_ad_client = "pub-7400231638705781";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "BA6600";
google_color_text = "3F3F3F";
google_color_url = "3F3F3F";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>I did excatly that. It did refresh a few packages but as I guessed immediately not enough. I tried over. It did not help. Here is the solution. Delete all subdirectories in /var/cache/zypper and execute the commands above again.</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/12/20/system-upgrade-opensuse-110-to-opensuse-111-with-zypper.html">System upgrade openSUSE 11.0 to openSUSE 11.1 with zypper</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2008/12/20/system-upgrade-opensuse-110-to-opensuse-111-with-zypper.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New software packages bundled with OpenSuSE 11.1</title>
		<link>http://www.linux-showroom.com/2008/12/18/new-software-packages-bundled-with-opensuse-111.html</link>
		<comments>http://www.linux-showroom.com/2008/12/18/new-software-packages-bundled-with-opensuse-111.html#comments</comments>
		<pubDate>Thu, 18 Dec 2008 19:15:14 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[OpenSuSE]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=24</guid>
		<description><![CDATA[The newest version of OpenSuSE got released today. Open [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/12/18/new-software-packages-bundled-with-opensuse-111.html">New software packages bundled with OpenSuSE 11.1</a></p>
]]></description>
			<content:encoded><![CDATA[<p>The newest version of <a href="http://news.opensuse.org/2008/12/18/opensuse-111-released/">OpenSuSE got released today</a>. OpenSuSE 11.1 brings more than 230 new features the press release says. As I keep my systems up to date thanks to smart and all the repositories only a number of these new feature are missing on my OpenSuSE 11.0 installations. The most important reason I quickly upgrade my desktop system is KDE. As I am still using KDE version 3 and the version that comes with OpenSuSE 11.1 is the same I have installed (KDE 3.5.10) this does not convince me to upgrade.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7400231638705781";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "BA6600";
google_color_text = "3F3F3F";
google_color_url = "3F3F3F";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>I did however <a href="http://en.opensuse.org/Featurelist_11.1">discover new software (packages) in OpenSuSE 11.1</a> I have not known before. These packages are Tasque, Tellico, Twinkle, Monsoon, PulseAudio and Derby. I googled these terms and came up with the following.</p>
<p><span id="more-24"></span></p>
<ul>
<li><strong>Tasque</strong> is a simple task management app (TODO list) for the Linux Desktop. The <a href="http://live.gnome.org/Tasque/Screenshots">screenshots</a> remind me of the todo app that comes with the KDE Kontact tool.</li>
<li><strong>Tellico</strong> is a KDE application for organizing your collections. Tellico allows you to enter your collection in a catalogue database.</li>
<li><strong>Twinkle</strong> is a free software/open source VoIP softphone application for Linux. It uses the SIP protocol. It also incorporates a GPL implementation of the ZRTP and SRTP security protocols and MD5 digest authentication.</li>
<li><strong>Monsoon</strong> is a fully featured bittorrent GUI supporting many advanced features such as selective downloading, automatic port forwarding via uPnP and RSS integration.</li>
<li><strong>PulseAudio</strong> is a sound server for POSIX and Win32 systems.</li>
<li><strong>Apache Derby</strong> is an open source relational database implemented entirely in Java.</li>
</ul>
<p>I&#8217;d like to say even before I tried it out openSUSE just got better!</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/12/18/new-software-packages-bundled-with-opensuse-111.html">New software packages bundled with OpenSuSE 11.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2008/12/18/new-software-packages-bundled-with-opensuse-111.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The open source application stack for Windows</title>
		<link>http://www.linux-showroom.com/2008/12/10/the-open-source-application-stack-for-windows.html</link>
		<comments>http://www.linux-showroom.com/2008/12/10/the-open-source-application-stack-for-windows.html#comments</comments>
		<pubDate>Wed, 10 Dec 2008 21:30:47 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[Miro]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[OpenOffice]]></category>
		<category><![CDATA[Scribus]]></category>
		<category><![CDATA[Songbird]]></category>
		<category><![CDATA[The Gimp]]></category>
		<category><![CDATA[Thunderbird]]></category>
		<category><![CDATA[VLC]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=21</guid>
		<description><![CDATA[The bad thing with most new computers is that they come [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/12/10/the-open-source-application-stack-for-windows.html">The open source application stack for Windows</a></p>
]]></description>
			<content:encoded><![CDATA[<p>The bad thing with most new computers is that they come with Windows &#8482; preinstalled. The good thing is those Windows &#8482; installations don&#8217;t bring much (useful) software along. Users have to actively use which software they want to use.</p>
<p><span id="more-21"></span></p>
<p>Today I had to run updates on a new laptop which is given away in my family this year as xmas present. Needless to say I decided to install some software. The presentee is still at a very influential age. I should have installed Ubuntu or OpenSuSE but I ran with Windows to not upset the father. For all the applications though I was luckily enough to find open source software.</p>
<p>I installed <a title="OpenOffice" href="http://www.openoffice.org/">OpenOffice</a> for office stuff, <a title="Scribus" href="http://www.scribus.net/">Scribus</a> for desktop publishing, <a title="Firefox" href="http://www.mozilla-europe.org/de/firefox/">Mozilla Firefox</a> for surfing, <a title="Thunderbird" href="http://www.mozilla-europe.org/de/products/thunderbird/">Thunderbird</a> for mails, <a title="Songbird" href="http://getsongbird.com/">Songbird</a> for music, <a title="Miro" href="http://www.getmiro.com/">Miro</a> and <a title="VLC" href="http://www.videolan.org/vlc/">VLC</a> for videos, <a title="The GIMP" href="http://www.gimp.org/">The Gimp</a> for pictures and painting and last but not least <a title="Inkscape" href="http://www.inkscape.org">Inkscape</a> for (vector) graphics.</p>
<p>The presentee will get a pretty powerful software package with no upfront cost and no hidden fees. As she is not settled with any programs this setup will open the whole world of open source software to her.</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/12/10/the-open-source-application-stack-for-windows.html">The open source application stack for Windows</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2008/12/10/the-open-source-application-stack-for-windows.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache and lighttpd replaced by nginx for PHP application</title>
		<link>http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html</link>
		<comments>http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html#comments</comments>
		<pubDate>Sat, 16 Aug 2008 19:29:00 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[HAproxy]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[PHP-FPM]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[Settings]]></category>
		<category><![CDATA[Squid]]></category>
		<category><![CDATA[stack]]></category>
		<category><![CDATA[Varnish]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/?p=9</guid>
		<description><![CDATA[A while back I wrote an article Switching from Apache H [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html">Apache and lighttpd replaced by nginx for PHP application</a></p>
]]></description>
			<content:encoded><![CDATA[<p>A while back I wrote an article <a href="http://www.linux-showroom.com/2007/11/19/switching-from-apache-http-server-to-lighttpd-installing-lighttpd.html">Switching from Apache HTTP Server to Lighttpd &#8211; Installing Lighttpd</a>. Back then I migrated static stuff to lighttpd but left the dynamic stuff (PHP) with Apache.</p>
<p>I was never really satisfied with the speed of our system under load. I tried and tried. I optimized a lot of stuff in the backend and with the database. Most of the time I found a switch to make the system just a bit faster. Read <a href="http://www.webcoder.de/2008/01/15/retrospective-on-three-years-of-seagull-development.html">Retrospective on three years of Seagull development</a> if you are interested in the whole story.</p>
<p><span id="more-9"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7400231638705781";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "BA6600";
google_color_text = "3F3F3F";
google_color_url = "3F3F3F";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>In the last couple of weeks I ran out of ideas on where to improve next (without the need of rewriting too much code). I remembered using <a href="http://www.squid-cache.org/">Squid</a> years ago. I had a look at the newest version (3.0) and my interest in Squid stopped pretty soon after reading through the documentation. It was just not the software I needed.</p>
<p>I dived into spreading the load to multiple backends using <a href="http://haproxy.1wt.eu/">HAproxy</a> which by the way has a super active community. Check the mailinglist. The maintainer Willy is doing a great job. Learning about HAproxy I stumbled across the webserver <a href="http://wiki.codemongers.com/Main">nginx</a> (pronounced engine x) numerous times. Learning about nginx I stumbled across the reverse proxy <a href="http://varnish.projects.linpro.no/">Varnish</a> which is the proxy solution I hoped Squid would be. Furtherdown the line I ran into PHP-FPM &#8211; the PHP FastCGI Process Manager &#8211; which should not stay unmentioned.</p>
<p>So I read lots of blog posts, mails from mailinglists, documentation, articles, visited several forums and also learned many new things in a few wikis. So after getting the idea I had my stack together: Varnish -> HAproxy -> nginx -> PHP -> MySQL</p>
<p>Time to test it out! Varnish comes in a relatively uptodate package for my favorite distribution OpenSuSE (currently running 10.3 on 6 systems). HAproxy is available in a fresh version. nginx is theoretically available. It cannot install it though because of a package management conflict. So I downloaded the source for the newest stable version (0.6.3 as time of writing) and compiled it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>sysoev.ru<span style="color: #000000; font-weight: bold;">/</span>nginx<span style="color: #000000; font-weight: bold;">/</span>nginx-0.6.32.tar.gz
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>nginx-0.6.32 <span style="color: #660033;">--user</span>=nginx <span style="color: #660033;">--group</span>=nginx --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>I did not need to install any extra packages. Frankly spoken I do have all the packages for compilation of C/C++ installed.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>nginx-0.6.32 nginx</pre></div></div>

<p>I always set a symlink to the currently used package. That way it is easy to replace the package when new versions come out. I can compile and install the new version and just switch the symlink.</p>
<p>Next thing I had to compile was a patched PHP version. So download the sources at <a href="http://www.php.net">php.net</a> and the patches at the <a href="http://php-fpm.anight.org/">PHP-FPM</a> site.</p>
<p>Unpack the PHP source:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xjvf php-5.2.6.tar.bz2</pre></div></div>

<p>Patch the source:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-cd</span> php-5.2.6-fpm-0.5.8.diff.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">patch</span> <span style="color: #660033;">-d</span> php-5.2.6 <span style="color: #660033;">-p1</span></pre></div></div>

<p>Configure PHP (adjust your settings accordingly):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">LDFLAGS</span>=<span style="color: #ff0000;">&quot;-L/usr/lib64&quot;</span> .<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--with-curl</span> <span style="color: #660033;">--disable-debug</span> <span style="color: #660033;">--enable-libxml</span> <span style="color: #660033;">--enable-session</span> <span style="color: #660033;">--with-pcre-regex</span> <span style="color: #660033;">--enable-xml</span> <span style="color: #660033;">--with-bz2</span> <span style="color: #660033;">--with-zlib</span> <span style="color: #660033;">--enable-exif</span> <span style="color: #660033;">--enable-inline-optimization</span> <span style="color: #660033;">--enable-soap</span> <span style="color: #660033;">--enable-sockets</span> <span style="color: #660033;">--with-xmlrpc</span> <span style="color: #660033;">--without-pear</span> <span style="color: #660033;">--with-libdir</span>=lib64 <span style="color: #660033;">--with-mysql</span> <span style="color: #660033;">--with-mysqli</span> <span style="color: #660033;">--enable-mbstring</span> <span style="color: #660033;">--with-mcrypt</span> <span style="color: #660033;">--with-mhash</span> <span style="color: #660033;">--with-mime-magic</span> <span style="color: #660033;">--with-jpeg-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64 <span style="color: #660033;">--with-png-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64 <span style="color: #660033;">--with-gd</span> <span style="color: #660033;">--enable-gd-native-ttf</span> <span style="color: #660033;">--with-ttf</span> <span style="color: #660033;">--with-freetype-dir</span> <span style="color: #660033;">--enable-ftp</span> <span style="color: #660033;">--enable-zend-multibyte</span> <span style="color: #660033;">--with-openssl</span> <span style="color: #660033;">--enable-force-cgi-redirect</span> <span style="color: #660033;">--with-pcre-regex</span> <span style="color: #660033;">--without-sqlite</span> <span style="color: #660033;">--without-mm</span> <span style="color: #660033;">--enable-fastcgi</span> <span style="color: #660033;">--enable-bcmath</span> <span style="color: #660033;">--enable-fpm</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>php5.2.6-fpm</pre></div></div>

<p>Compile and install:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Adjust the PHP-FPM settings to fit your needs. You can find more info on this and related subjects in the <a href="http://php-fpm.anight.org/docs.html">PHP-FPM documentation</a>.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php-fpm.conf</pre></div></div>

<p>Start PHP-FPM:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php-cgi <span style="color: #660033;">--fpm</span></pre></div></div>

<p>Have a look in the log files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>logs<span style="color: #000000; font-weight: bold;">/</span>php-fpm.log</pre></div></div>

<p>Now you can connect through your webserver to fast-cgi processes. I use nginx as webserver (see above). Advantages and disadvantes of fast-cgi vs. mod-based approaches et al have been covered elsewhere. For me this makes perfectly sense and works extremly well.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7400231638705781";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "BA6600";
google_color_text = "3F3F3F";
google_color_url = "3F3F3F";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>After playing around with Varnish for a while I decided I do not need HAProxy ATM. Varnish can do all the decisions I need to make based on HTTP headers. I configured Varnish&#8217;s config file (here: vcl.conf) by reading lots of examples on the net and trial and error.</p>
<p>If I find more time and anyone is interested I post more details on the configuration of nginx and Varnish. But for now I want to publish this post as it has been sitting here for a while already.</p>
<p>PS: If people say content is king they are absolutely right. But never forget in the internet speed is Kaiser!</p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html">Apache and lighttpd replaced by nginx for PHP application</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2008/08/16/apache-and-lighttpd-replaced-by-nginx-for-php-application.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Switching from Apache HTTP Server to Lighttpd &#8211; Installing Lighttpd</title>
		<link>http://www.linux-showroom.com/2007/11/19/switching-from-apache-http-server-to-lighttpd-installing-lighttpd.html</link>
		<comments>http://www.linux-showroom.com/2007/11/19/switching-from-apache-http-server-to-lighttpd-installing-lighttpd.html#comments</comments>
		<pubDate>Sun, 18 Nov 2007 23:51:18 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/2007/11/19/switching-from-apache-http-server-to-lighttpd-installing-lighttpd.html</guid>
		<description><![CDATA[For our main web project we struggle to serve the pages [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2007/11/19/switching-from-apache-http-server-to-lighttpd-installing-lighttpd.html">Switching from Apache HTTP Server to Lighttpd &#8211; Installing Lighttpd</a></p>
]]></description>
			<content:encoded><![CDATA[<p>For our main web project we struggle to serve the pages as fast as we want and as people aspect. Server load is too high most of the time. We did many different kinds of optimization. Starting with rewriting part of the code, squeezing the database, compiling the software we need instead of installing precompiled packages, using all kind of cache strategies (database, template, bytecode), buying servers with more powerful cpus (dual core instead of single core, 64bit instead of 32 bit), stocking up on ram (up to 8 GB RAM now) and now exchanging certain layers of software.</p>
<p>Setting up my first lighttpd server was easy. Configure runs through as wanted with just a few options:</p>
<blockquote><p>LDFLAGS=&#8221;-L/usr/lib64&#8243; ./configure &#8211;prefix=/usr/local/lighttpd-1.4.18 &#8211;with-pcre &#8211;with-bzip2 &#8211;with-rewrite &#8211;with-redirect &#8211;with-zlib &#8211;disable-ipv6</p></blockquote>
<p>I took the few configurations options I needed from the official docs. Everything works as aspected and is pretty straight forward. You can check the syntax with the -t switch:</p>
<blockquote>
<p align="left"> sbin/lighttpd -f lighttpd.config -t</p>
</blockquote>
<p><!--adsense--></p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2007/11/19/switching-from-apache-http-server-to-lighttpd-installing-lighttpd.html">Switching from Apache HTTP Server to Lighttpd &#8211; Installing Lighttpd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2007/11/19/switching-from-apache-http-server-to-lighttpd-installing-lighttpd.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenOffice 2.3 not working on 64-bit cpu</title>
		<link>http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html</link>
		<comments>http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html#comments</comments>
		<pubDate>Wed, 31 Oct 2007 19:53:48 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[office]]></category>
		<category><![CDATA[OpenOffice]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html</guid>
		<description><![CDATA[I upgraded my OpenOffice installation to version 2.3.0. [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html">OpenOffice 2.3 not working on 64-bit cpu</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I upgraded my OpenOffice installation to version 2.3.0.1 for a 64-bit intel cpu. After upgrading the packages the software would reliably hang on saving a document and generating a pdf. I downgraded back to the monolithic i586 version. Everything works just fine and as expected.</p>
<p><!--adsense--></p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html">OpenOffice 2.3 not working on 64-bit cpu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2007/10/31/openoffice-23-not-working-on-64-bit-cpu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Source alternative for Camtasia under Linux</title>
		<link>http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html</link>
		<comments>http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html#comments</comments>
		<pubDate>Thu, 25 Oct 2007 12:55:39 +0000</pubDate>
		<dc:creator>Fabio</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[camtasia]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[Xvidcap]]></category>

		<guid isPermaLink="false">http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html</guid>
		<description><![CDATA[I have been thinking of creating my own screencasts for [...]<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html">Open Source alternative for Camtasia under Linux</a></p>
]]></description>
			<content:encoded><![CDATA[<p>I have been thinking of creating my own screencasts for a while. Today I stumbled upon a screenshot of Camtasia studio which looked very promising. Unfortunately they do not offer a linux version. So I googled around for an open source alternative. The one thing I found is the <a href="http://xvidcap.sourceforge.net" title="Xvidcap">Xvidcap project</a>. Drawback with the software is that has not been updated since October last year.</p>
<p>So I installed Xvidcap</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> xvidcap.x86_64</pre></div></div>

<p>You can record actions in a little window. Not as fancy as Camtasia but will do for the beginning.</p>
<p><!--adsense--></p>
<p><br /><br />
This post originated from the <a href="http://www.linux-showroom.com/feed/">Linux Showroom feed</a>. Please check out <a href="http://www.linux-showroom.com">Linux Showroom</a> for more posts.<br/><br/><a href="http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html">Open Source alternative for Camtasia under Linux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux-showroom.com/2007/10/25/open-source-alternative-for-camtasia-under-linux.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
