<?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>Cristian Livadaru's blog &#187; Server</title>
	<atom:link href="http://cristian.livadaru.net/category/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://cristian.livadaru.net</link>
	<description>... think again ...</description>
	<lastBuildDate>Sat, 28 Aug 2010 19:47:23 +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>Use Adhearsion to check Asterisk</title>
		<link>http://cristian.livadaru.net/2009/11/03/use-adhearsion-to-check-asterisk/</link>
		<comments>http://cristian.livadaru.net/2009/11/03/use-adhearsion-to-check-asterisk/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 12:10:03 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[Adhearsion]]></category>
		<category><![CDATA[Monit]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Nagios]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/?p=648</guid>
		<description><![CDATA[If you have a business depending on asterisk you need to be sure that everything is running. You could use Nagios or Monit to check if asterisk is running, but is it also working? What about your AGI Server? Is it doing what it&#8217;s supposed to do? The best way to find out if this [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a business depending on asterisk you need to be sure that everything is running. You could use <a href="http://www.nagios.org/">Nagios</a> or <a href="http://mmonit.com/monit/">Monit</a> to check if asterisk is running, but is it also working? What about your AGI Server? Is it doing what it&#8217;s supposed to do?</p>
<p>The best way to find out if this works would be to call and see if the call is accepted and if you get something back from your AGI server and you can do this with automatically with <a href="http://adhearsion.com/">Adhearsion</a>!</p>
<p>What you will need is a wav file containing a DTMF sequence. You can create one with Adobe Audition for example (aka Cooledit before Adobe took over). The Trial version is enough to create the DTMF. Use a 300ms pause at least the other settings didn’t really work for me. Also don&#8217;t forget to set your Asterisk server to dtmfmod=inband.</p>
<p>I created a new adhearsion project and used the Simon game as start of and modified it to look like this:</p>

<div class="wp_syntax"><table><tr><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
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;">methods_for <span style="color:#ff3333; font-weight:bold;">:dialplan</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  <span style="color:#9966CC; font-weight:bold;">def</span> check_call
    CheckCall.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF; font-weight:bold;">self</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">start</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">class</span> CheckCall
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> initialize<span style="color:#006600; font-weight:bold;">&#40;</span>call<span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#0066ff; font-weight:bold;">@call</span> = call
    <span style="color:#0066ff; font-weight:bold;">@number</span>=<span style="color:#996600;">'12345'</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> start
    collect_attempt
    verify_attempt
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> collect_attempt
    <span style="color:#0066ff; font-weight:bold;">@attempt</span> = <span style="color:#0066ff; font-weight:bold;">@call</span>.<span style="color:#9900CC;">input</span> <span style="color:#0066ff; font-weight:bold;">@number</span>.<span style="color:#9900CC;">length</span>,
      <span style="color:#ff3333; font-weight:bold;">:timeout</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">10</span>.<span style="color:#9900CC;">seconds</span>    
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> verify_attempt
    <span style="color:#9966CC; font-weight:bold;">if</span> attempt_correct? 
		<span style="color:#008000; font-style:italic;"># do something here</span>
    <span style="color:#9966CC; font-weight:bold;">else</span>
		<span style="color:#008000; font-style:italic;"># do something else</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> attempt_correct?
    <span style="color:#0066ff; font-weight:bold;">@attempt</span> == <span style="color:#0066ff; font-weight:bold;">@number</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">end</span></pre></td></tr></table></div>

<p>What this does is check if the called server sent the DTMF sequence 12345 and if not it would do something.<br/><br />
You cold for example use growl and/or prowl for notification or use some <a href="http://lcx.at/en/products/server-monitoring/">SMS service for notification</a> like <a href="http://lcx.at/en/">lcx.at</a> (I know, shameless self promotion).</p>
<p>Also don&#8217;t forget to activate drb in your adhersion project, do this in startup.rb</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">config.<span style="color:#9900CC;">enable_asterisk</span>
config.<span style="color:#9900CC;">asterisk</span>.<span style="color:#9900CC;">enable_ami</span> <span style="color:#ff3333; font-weight:bold;">:host</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;localhost&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:username</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;amiuser&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:password</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;amipassowrd&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:events</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span>
&nbsp;
config.<span style="color:#9900CC;">enable_drb</span> <span style="color:#ff3333; font-weight:bold;">:host</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;0.0.0.0&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:deny</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;0.0.0.0&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:allow</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#996600;">&quot;127.0.0.1&quot;</span>, <span style="color:#996600;">&quot;213.123.118.123&quot;</span><span style="color:#006600; font-weight:bold;">&#93;</span></pre></div></div>

<p>Ok now all we need is the script that triggers the call. This could look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'drb'</span>
<span style="color:#0066ff; font-weight:bold;">@adhearsion</span> = DRbObject.<span style="color:#9900CC;">new_with_uri</span> <span style="color:#996600;">&quot;druby://localhost:9050&quot;</span>
result = <span style="color:#0066ff; font-weight:bold;">@adhearsion</span>.<span style="color:#9900CC;">originate</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#ff3333; font-weight:bold;">:channel</span>   <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;SIP/....&quot;</span>, 
                                 <span style="color:#ff3333; font-weight:bold;">:context</span>   <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;checkcall&quot;</span>, 
                                 <span style="color:#ff3333; font-weight:bold;">:exten</span> 	<span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'4000'</span>,
                                 <span style="color:#ff3333; font-weight:bold;">:priority</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">1</span>,
                                 <span style="color:#ff3333; font-weight:bold;">:callerid</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;43123456789&quot;</span>,
                                 <span style="color:#ff3333; font-weight:bold;">:async</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">'true'</span>,                                     
                                 <span style="color:#ff3333; font-weight:bold;">:variable</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;call_launcher=true|sleep_time=3600&quot;</span> <span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

<p>So, this is it. I know this isn&#8217;t really a copy &#038; paste howto, some things are missing but I don&#8217;t want to repeat things that can be read in the adhearsion documentation.<br />
Oh, what I forgot to mention, I use a separate server which runs Asterisk to do the checks, the checks are NOT done form the same server I am checking, but I think this should be obvious.<br />
If you need a VPS with this Setup, or need someone to verify your VoIP Servers, feel free to <a href="http://lcx.at/en/contact-us/">contact me</a>! </p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2009/11/03/use-adhearsion-to-check-asterisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The oldest hard-disk</title>
		<link>http://cristian.livadaru.net/2009/05/10/the-oldest-hard-disk/</link>
		<comments>http://cristian.livadaru.net/2009/05/10/the-oldest-hard-disk/#comments</comments>
		<pubDate>Sun, 10 May 2009 06:21:00 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[harddisk]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/?p=630</guid>
		<description><![CDATA[Seems like I have one of the oldest, if not the oldest, hard disk in the world in one of my servers Didn&#8217;t know they had SATA 136 years ago.]]></description>
			<content:encoded><![CDATA[<p>Seems like I have one of the oldest, if not the oldest, hard disk in the world in one of my servers <img src='http://cristian.livadaru.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Didn&#8217;t know they had SATA 136 years ago. <a class="thickbox" href="http://cristian.livadaru.net/wp-content/uploads/2009/05/old_harddisk.png"><img src="http://cristian.livadaru.net/wp-content/uploads/2009/05/old_harddisk-300x46.png" alt="old_harddisk" title="old_harddisk" width="300" height="46" class="alignnone size-medium wp-image-631" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2009/05/10/the-oldest-hard-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[HowTo] Installing Ruby Enterprise Edition and Passenger on Debian Etch</title>
		<link>http://cristian.livadaru.net/2009/01/12/howto-installing-ruby-enterprise-edition-and-passenger-on-debian-etch/</link>
		<comments>http://cristian.livadaru.net/2009/01/12/howto-installing-ruby-enterprise-edition-and-passenger-on-debian-etch/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 14:22:46 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[debuan]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/?p=593</guid>
		<description><![CDATA[Install some stuff we will need apt-get install build-essential apache2 ruby1.8 zlib1g-dev libssl-dev mysql-server mysql-common libmysqlclient15-dev libmysqlclient15off apache2-prefork-dev Create a link for ruby else the installer won&#8217;t work ln -s /usr/bin/ruby1.8 /usr/bin/ruby get Ruby Enterprise edition (http://www.rubyenterpriseedition.com/download.html) tar xzvf ruby-enterprise-X.X.X.tar.gz ./ruby-enterprise-X.X.X/installer Delete the Ruby link and create new links rm /usr/bin/ruby ln -s /opt/ruby-enterprise-1.8.6-20081215/bin/rake /usr/bin/rake [...]]]></description>
			<content:encoded><![CDATA[<p>Install some stuff we will need</p>

<div class="wp_syntax"><div class="code"><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 apache2 ruby1.8 zlib1g-dev libssl-dev mysql-server mysql-common libmysqlclient15-dev libmysqlclient15off apache2-prefork-dev</pre></div></div>

<p>Create a link for ruby else the installer won&#8217;t work</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <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>ruby1.8 <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>ruby</pre></div></div>

<p>get Ruby Enterprise edition (http://www.rubyenterpriseedition.com/download.html)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xzvf ruby-enterprise-X.X.X.tar.gz
.<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-X.X.X<span style="color: #000000; font-weight: bold;">/</span>installer</pre></div></div>

<p>Delete the Ruby link and create new links</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">rm</span> <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>ruby
<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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rake <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>rake
<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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem <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>gem 
<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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rails <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>rails
<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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <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>ruby</pre></div></div>

<p>Install Passenger</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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>passenger-install-apache2-module</pre></div></div>

<p>if you have this error</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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>passenger-2.0.6
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby <span style="color: #660033;">-S</span> rake clean apache2
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ruby: No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory <span style="color: #660033;">--</span> rake <span style="color: #7a0874; font-weight: bold;">&#40;</span>LoadError<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>then it looks like the Rake GEM was not installed, just install it now. and don&#8217;t forget to create the symlink in /usr/bin !</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>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gem <span style="color: #c20cb9; font-weight: bold;">install</span> rake</pre></div></div>

<p>Add this to /etc/apache2/apache2.conf</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">LoadModule</span> passenger_module /opt/ruby-enterprise-1.8.6-<span style="color: #ff0000;">20081215</span>/lib/ruby/gems/<span style="color: #ff0000;">1.8</span>/gems/passenger-2.0.6/ext/apache2/mod_passenger.so
PassengerRoot /opt/ruby-enterprise-1.8.6-<span style="color: #ff0000;">20081215</span>/lib/ruby/gems/<span style="color: #ff0000;">1.8</span>/gems/passenger-2.0.6
PassengerRuby /opt/ruby-enterprise-1.8.6-<span style="color: #ff0000;">20081215</span>/bin/ruby</pre></div></div>

<p>That&#8217;s it ! Now you can configure your vhosts.</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">VirtualHost</span> 192.168.0.1:<span style="color: #ff0000;">80</span>&gt;
  <span style="color: #00007f;">ServerName</span> foo.com
  <span style="color: #00007f;">DocumentRoot</span> /var/rails/
&nbsp;
  RailsBaseURI /project1
  RailsBaseURI /project2
  RailsBaseURI /project3
&nbsp;
  <span style="color: #00007f;">Alias</span> /docs <span style="color: #7f007f;">&quot;/opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/passenger-2.0.6/doc/Users guide.html&quot;</span>
&lt;/<span style="color: #000000; font-weight:bold;">VirtualHost</span>&gt;</pre></div></div>

<p>An finaly, the capistrano config in deploy.rb</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">set <span style="color:#ff3333; font-weight:bold;">:application</span>, <span style="color:#996600;">&quot;project1&quot;</span>
set <span style="color:#ff3333; font-weight:bold;">:repository</span>,  <span style="color:#996600;">&quot;https://svn.foo.com/project1&quot;</span>
set <span style="color:#ff3333; font-weight:bold;">:user</span>, <span style="color:#996600;">'root'</span>
set <span style="color:#ff3333; font-weight:bold;">:use_sudo</span>, <span style="color:#0000FF; font-weight:bold;">false</span>
<span style="color:#008000; font-style:italic;"># If you aren't deploying to /u/apps/#{application} on the target</span>
<span style="color:#008000; font-style:italic;"># servers (which is the default), you can specify the actual location</span>
<span style="color:#008000; font-style:italic;"># via the :deploy_to variable:</span>
set <span style="color:#ff3333; font-weight:bold;">:deploy_to</span>, <span style="color:#996600;">&quot;/var/rails/#{application}&quot;</span>
&nbsp;
after <span style="color:#996600;">&quot;deploy:update_code&quot;</span>, <span style="color:#996600;">&quot;deploy:chown&quot;</span>
&nbsp;
role <span style="color:#ff3333; font-weight:bold;">:app</span>, <span style="color:#996600;">&quot;foo.com&quot;</span>
role <span style="color:#ff3333; font-weight:bold;">:web</span>, <span style="color:#996600;">&quot;foo.com&quot;</span>
role <span style="color:#ff3333; font-weight:bold;">:db</span>,  <span style="color:#996600;">&quot;foo.com&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:primary</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">true</span>
&nbsp;
namespace <span style="color:#ff3333; font-weight:bold;">:deploy</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  desc <span style="color:#996600;">&quot;Change owner&quot;</span>
  task <span style="color:#ff3333; font-weight:bold;">:chown</span>, <span style="color:#ff3333; font-weight:bold;">:roles</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:app</span> <span style="color:#9966CC; font-weight:bold;">do</span>
    run <span style="color:#996600;">&quot;chown www-data:www-data -R #{latest_release}&quot;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
  desc <span style="color:#996600;">&quot;Restart Application&quot;</span>
  task <span style="color:#ff3333; font-weight:bold;">:restart</span>, <span style="color:#ff3333; font-weight:bold;">:roles</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:app</span> <span style="color:#9966CC; font-weight:bold;">do</span>
    run <span style="color:#996600;">&quot;touch #{current_path}/tmp/restart.txt&quot;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>in case you have this error:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">script<span style="color: #000000; font-weight: bold;">/</span>console production
Loading production environment <span style="color: #7a0874; font-weight: bold;">&#40;</span>Rails 2.1.0<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>irb<span style="color: #000000; font-weight: bold;">/</span>completion.rb:<span style="color: #000000;">10</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>require<span style="color: #ff0000;">': no such file to load -- readline (LoadError)
        from /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/1.8/irb/completion.rb:10
        from /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/1.8/irb/init.rb:252:in `require'</span>
        from <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>irb<span style="color: #000000; font-weight: bold;">/</span>init.rb:<span style="color: #000000;">252</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>load_modules<span style="color: #ff0000;">'
        from /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/1.8/irb/init.rb:250:in `each'</span>
        from <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>irb<span style="color: #000000; font-weight: bold;">/</span>init.rb:<span style="color: #000000;">250</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>load_modules<span style="color: #ff0000;">'
        from /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/1.8/irb/init.rb:21:in `setup'</span>
        from <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>irb.rb:<span style="color: #000000;">54</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>start<span style="color: #ff0000;">'
        from /usr/bin/irb:13</span></pre></div></div>

<p>Then some things where missing during install. Let&#8217;s install that and compile readling.</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>root<span style="color: #000000; font-weight: bold;">/</span>ruby-enterprise-1.8.6-<span style="color: #000000;">20081215</span><span style="color: #000000; font-weight: bold;">/</span>source<span style="color: #000000; font-weight: bold;">/</span>ext<span style="color: #000000; font-weight: bold;">/</span>readline
&nbsp;
ruby extconf.rb
checking <span style="color: #000000; font-weight: bold;">for</span> tgetnum<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">in</span> -lncurses... no
checking <span style="color: #000000; font-weight: bold;">for</span> tgetnum<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">in</span> -ltermcap... no
checking <span style="color: #000000; font-weight: bold;">for</span> tgetnum<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">in</span> -lcurses... no
checking <span style="color: #000000; font-weight: bold;">for</span> readline<span style="color: #000000; font-weight: bold;">/</span>readline.h... no
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libncurses5-dev libreadline5-dev</pre></div></div>

<p>Check once again if everything is installed</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ruby extconf.rb
.
.
creating Makefile</pre></div></div>

<p>and now compile</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: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2009/01/12/howto-installing-ruby-enterprise-edition-and-passenger-on-debian-etch/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Push mail for iPhone with Cyrus and z-push</title>
		<link>http://cristian.livadaru.net/2008/10/16/push-mail-for-iphone-with-cyrus-and-z-push/</link>
		<comments>http://cristian.livadaru.net/2008/10/16/push-mail-for-iphone-with-cyrus-and-z-push/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 11:32:06 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Computer]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2008/10/16/push-mail-for-iphone-with-cyrus-and-z-push/</guid>
		<description><![CDATA[Some days ago I came across z-push a very interesting open source project. I decided to give it a try and see how it works with my iPhone. I really didn&#8217;t expect to be up and running in only 5 minutes! So I won&#8217;t write anything here about the installation, just read the manual and [...]]]></description>
			<content:encoded><![CDATA[<p>Some days ago I came across <a href="http://z-push.sourceforge.net/soswp/" title="z-push">z-push</a> a very interesting open source project. I decided to give it a try and see how it works with my iPhone.<br />
I really didn&#8217;t expect to be up and running in only 5 minutes! So I won&#8217;t write anything here about the installation, just read the manual and everything should be clear.<br />
But there are two things I have to mention if you are using Cyrus.</p>
<ul>
<li>Synced mails will be marked as read! The solution for this is in <a href="http://z-push.sourceforge.net/phpbb/viewtopic.php?f=7&amp;t=92&amp;st=0&amp;sk=t&amp;sd=a&amp;start=20#p1507" title="synced mails marked as read">this post in the z-push</a> forum</li>
<li>Sync might not work due to encoding problems (iPhone will say that there is no connection to the server). The solution for this is in <a href="http://z-push.sourceforge.net/phpbb/viewtopic.php?f=7&amp;t=207#p973" title="sync with cyrus">this post in the z-push</a> forum.</li>
</ul>
<p>After solving these two issues everything worked perfect! The only problem that remains, and this is nothing z-push can solve, is the battery usage of the iPhone. Be warned! Your battery will be empty after 2 days in some cases even after 1 day. This really sucks, I have to admit, this is where BlackBerry will get a point.</p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2008/10/16/push-mail-for-iphone-with-cyrus-and-z-push/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How libnss-mysql stole my evening</title>
		<link>http://cristian.livadaru.net/2008/06/13/how-libnss-mysql-stole-my-evening/</link>
		<comments>http://cristian.livadaru.net/2008/06/13/how-libnss-mysql-stole-my-evening/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 05:29:34 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[DTC]]></category>
		<category><![CDATA[GPLHost]]></category>
		<category><![CDATA[Lenny]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/?p=472</guid>
		<description><![CDATA[After installing a new VPS I thought I would go with Debian Lenny, although it&#8217;s not &#8220;stable&#8221; yet. The installation was quick and easy, no problems here. Then a control panel was needed, here of course I went with DTC the great GPL control panel from gplhost. After everything was up an running I noticed [...]]]></description>
			<content:encoded><![CDATA[<p>After installing a new VPS I thought I would go with Debian Lenny, although it&#8217;s not &#8220;stable&#8221; yet. The installation was quick and easy, no problems here. Then a control panel was needed, here of course I went with <a href="http://gplhost.com/software-dtc.html">DTC</a> the great GPL control panel from <a href="http://gplhost.com/">gplhost</a>. After everything was up an running I noticed postfix was crashing.<br />
<code>warning: process /usr/lib/postfix/bounce pid 23776 killed by signal 6<br />
warning: /usr/lib/postfix/bounce: bad command startup -- throttling<br />
warning: process /usr/lib/postfix/smtpd pid 4848 killed by signal 6<br />
warning: /usr/lib/postfix/smtpd: bad command startup -- throttling<br />
</code></p>
<p>As usual, when you have no idea what it is, start searching. Funny enough, the first search result on google was a topic on gplhost froums, where I actually answered! Unfortunately my answer was related to a different question of that thread, but I still think it&#8217;s a bit funny. So as dsadmin was writing, it seems to be a mysql connection problem. The workaround described there (removing the mysql stuff from nsswitch.conf) does help, but it&#8217;s just a workaround and not a solution. It seems like libnss-mysql is broken in Debian Lenny and probably in Ubuntu also. A recompile didn&#8217;t help.</p>
<p>So, here comes Damien (also from gplhost) with the idea to install libnss-mysql-bg instead of libnss-mysql. After some modifications to the dtc control file (without them debian removes dtc because of dependency to libnss-mysql) I could remove libnss-mysql and install libnss-mysql-bg instead. Now all I had to do is run the DTC installer one more time so it can make all necessary modification to the libnss-mysql-bg config files (yes, DTC works with both!) and my problems where all solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2008/06/13/how-libnss-mysql-stole-my-evening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You get what you pay for</title>
		<link>http://cristian.livadaru.net/2008/06/09/you-get-what-you-pay-for/</link>
		<comments>http://cristian.livadaru.net/2008/06/09/you-get-what-you-pay-for/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 07:18:40 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[InterNet]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Hacked]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/?p=471</guid>
		<description><![CDATA[Some time ago I got an hosting account at a cheap company (I won&#8217;t mention any names). All was good and fine until the trouble started. 1. No detailed access logs There is no way to see who logged in when over ftp. The only thing that is logged is the access over the web [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I got an hosting account at a cheap company (I won&#8217;t mention any names). All was good and fine until the trouble started.</p>
<p><strong>1. No detailed access logs</strong></p>
<p>There is no way to see who logged in when over ftp. The only thing that is logged is the access over the web interface. This is not enough! I just found out that several index.html and index.php files where modified between april and may. They all where &#8220;infected&#8221; with some extra javascript code. Funny enough, somewhen during this time there was a modification to the FTP server of that provider. All passwords where modified and you had to change the password over the webinterface for all accounts. Strange isn&#8217;t it. There was no official statement about anything getting hacked. </p>
<p><strong>2. Useless webstats</strong></p>
<p>One of my sites hosted there had in a day about 200Gig traffic. Although they promise you about 5000 Gig traffic per month, all my sites where locked down due to bandwidth exceeding. Support told me this:</p>
<blockquote><p>All ***** accounts are allowed to use 167 GB of transfer per day. If you site goes over this limit it will be taken offline until the next day. </p></blockquote>
<p> I tried to find anything about this on their website and find no trace about this limitation. Anyway, the reason for the huge traffic amount was of course someone with bad intentions. It is weird since there is no real website on that account. It was used for exchanging larger files (legal content, no piracy) and nothing that would really be of interest to someone. I couldn&#8217;t find out what was downloaded and from where to cause such huge traffic, the support was of no help and <strong>ALL MY SITES WHERE OFFLINE</strong> for one day. Really all of them! Not just the one causing the traffic. </p>
<p>There where some other minor issues why I don&#8217;t like this provider, but they I can&#8217;t remember now and anyway, like I mentioned, they where minor issues. The two big issues I mentioned above is the reason why I will cancel my account. </p>
<p> </p>
<p>oh yes &#8230; one of the minor issues is they don&#8217;t support sFTP or FTP with SSL, just plain unencrypted FTP. Not very nice.</p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2008/06/09/you-get-what-you-pay-for/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DoS attack</title>
		<link>http://cristian.livadaru.net/2008/02/12/dos-attack-2/</link>
		<comments>http://cristian.livadaru.net/2008/02/12/dos-attack-2/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 12:37:14 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[DoS]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2008/02/12/dos-attack-2/</guid>
		<description><![CDATA[Since yesterday I am facing a DoS attack on one of my IP&#8217;s The server is being hit by UDP packets on port 80. I could solve some of the issues created by this high load and server are running, but the attack is still going on as I write this with 20Mbit and creating [...]]]></description>
			<content:encoded><![CDATA[<p>Since yesterday I am facing a DoS attack on one of my IP&#8217;s<br />
The server is being hit by UDP packets on port 80. I could solve some of the issues created by this high load and server are running, but the attack is still going on as I write this with 20Mbit and creating traffic of about 9 GB/hour. </p>
<p><a href="/wp-content/uploads/cris/2008/dos_1.png" rel="lightbox"  ><img src="/wp-content/uploads/cris/2008/.thumbs/th_dos_1.png" alt="dos_1.png" title="dos_1.png" align="left" border="0" /></a><br />
<a href="/wp-content/uploads/cris/2008/dos_2.png" rel="lightbox"  ><img src="/wp-content/uploads/cris/2008/.thumbs/th_dos_2.png" alt="dos_2.png" title="dos_2.png"  border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2008/02/12/dos-attack-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Install splunk&gt;_ on Debian</title>
		<link>http://cristian.livadaru.net/2007/07/21/howto-install-splunk_-on-debian/</link>
		<comments>http://cristian.livadaru.net/2007/07/21/howto-install-splunk_-on-debian/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 08:09:42 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2007/07/21/howto-install-splunk_-on-debian/</guid>
		<description><![CDATA[* Download the RPM from http://www.splunk.com * create a deb package with alien * install the deb package (dpkg -i .. ) * cd /opt/splunk/bin * ./splunk start If you get errors like this: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory Then install libstdc++6 * apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>* Download the RPM from http://www.splunk.com<br />
* create a deb package with alien<br />
* install the deb package (dpkg -i .. )<br />
* cd /opt/splunk/bin<br />
* ./splunk start</p>
<p>If you get errors like this: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory</p>
<p>Then install libstdc++6</p>
<p>* apt-get install libstdc++6 </p>
<p>It&#8217;s that simple <img src='http://cristian.livadaru.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/debian" rel="tag">debian</a>, <a href="http://www.technorati.com/tag/linux" rel="tag">linux</a>, <a href="http://www.technorati.com/tag/howto" rel="tag">howto</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2007/07/21/howto-install-splunk_-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo install openfire (former wildfire) on Debian</title>
		<link>http://cristian.livadaru.net/2007/06/19/howto-install-openfire-former-wildfire-on-debian/</link>
		<comments>http://cristian.livadaru.net/2007/06/19/howto-install-openfire-former-wildfire-on-debian/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 16:18:05 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2007/06/19/howto-install-openfire-former-wildfire-on-debian/</guid>
		<description><![CDATA[Note: This has been done on a Debian Sarge installation but it should work on Etch also, I will report if it does once I have done it, sometime this week. I found this post on howtoforge and it helped me alot. First you need Java JRE, lucky me I had a deb package on [...]]]></description>
			<content:encoded><![CDATA[<p>Note: This has been done on a Debian Sarge installation but it should work on Etch also, I will report if it does once I have done it, sometime this week.<br />
I found this <a href="http://www.howtoforge.com/forums/showpost.php?p=24163&#038;postcount=3">post on howtoforge</a> and it helped me alot. </p>
<p>First you need Java JRE, lucky me I had a deb package on my server from some other tests so I didn&#8217;t need to create a new JRE deb package.<br />
Follow <a href="http://wiki.serios.net/wiki/Debian_Java_JRE/JDK_installation">this howto to create a debian</a> package so you can install JRE the debian way. Once you installed the JRE you can continue with openfire.</p>
<p>Download openfire from http://www.igniterealtime.org/downloads/index.jsp<br />
download the tgz file, the rpm installation with alien didn&#8217;t work for me on a AMD64, will probably work for i386.<br />
unpack it move it to /opt</p>
<p>tar -xzvf openfire_3_0_0.tar.gz<br />
mv openfire /opt</p>
<p>You don&#8217;t need to install any mysql java connector as mentioned on howtoforge, openfire now comes with everything you need.<br />
Create a new database and create the tables with the provided file.<br />
for example: mysql -u <user> -p < /opt/openfire/resources/database/openfire_mysql.sql</p>
<p>Make sure openfire.xml is writeable:<br />
# chmod 777 /opt/openfire/conf/openfire.xml</p>
<p>Now setup openfire over the webinterface: http://localhost:9090 or http://127.0.0.1:9090<br />
or use whatever server it is running on instead of localhost.</p>
<p>Note: if you have something like this in your /etc/hosts file </p>
<p>127.0.0.1      foobar localhost localhost.localdomain</p>
<p>it won't work since it will try to connect with dbuser@foobar instead of dbuser@localhost which won't work!<br />
change you /etc/hosts so that localhost is first! </p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/linux" rel="tag">linux</a>, <a href="http://www.technorati.com/tag/howto" rel="tag">howto</a>, <a href="http://www.technorati.com/tag/jabber" rel="tag">jabber</a>, <a href="http://www.technorati.com/tag/openfire" rel="tag">openfire</a>, <a href="http://www.technorati.com/tag/debian" rel="tag">debian</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2007/06/19/howto-install-openfire-former-wildfire-on-debian/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[HowTo] Installing eAccelerator on Debian etch</title>
		<link>http://cristian.livadaru.net/2007/05/25/howto-installing-eaccelerator-on-debian-etch/</link>
		<comments>http://cristian.livadaru.net/2007/05/25/howto-installing-eaccelerator-on-debian-etch/#comments</comments>
		<pubDate>Fri, 25 May 2007 12:10:06 +0000</pubDate>
		<dc:creator>Cristian Livadaru</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://cristian.livadaru.net/2007/05/25/howto-installing-eaccelerator-on-debian-etch/</guid>
		<description><![CDATA[This works for php4 and php5, apache1.3 and 2! first get php5-dev (or php4-dev, depending on what you use) apt-get install php5-dev get eaccelerator from here and unpack it. cd eaccelerator-0.9.5 phpize ./configure make make install create the eaccelerator cache directories mkdir /tmp/eaccelerator chmod 0777 /tmp/eaccelerator and add this to your php.ini (in my case: [...]]]></description>
			<content:encoded><![CDATA[<p>This works for php4 and php5, apache1.3 and 2! </p>
<p>first get php5-dev (or php4-dev, depending on what you use)<br />
apt-get install php5-dev </p>
<p>get eaccelerator from <a href="http://bart.eaccelerator.net/source/0.9.5/eaccelerator-0.9.5.tar.bz2">here</a> and unpack it.<br />
cd eaccelerator-0.9.5<br />
phpize<br />
./configure<br />
make<br />
make install </p>
<p>create the eaccelerator cache directories<br />
mkdir /tmp/eaccelerator<br />
chmod 0777 /tmp/eaccelerator</p>
<p>and add this to your php.ini (in my case: /etc/php5/apache2/php.ini )</p>
<p>extension=eaccelerator.so<br />
eaccelerator.shm_size=64<br />
eaccelerator.cache_dir=/tmp/eaccelerator<br />
eaccelerator.enable=1<br />
eaccelerator.optimizer=1<br />
eaccelerator.check_mtime=1<br />
eaccelerator.debug=0<br />
eaccelerator.filter=<br />
eaccelerator.shm_max=0<br />
eaccelerator.shm_ttl=0<br />
eaccelerator.shm_prune_period=0<br />
eaccelerator.shm_only=0<br />
eaccelerator.compress=1<br />
eaccelerator.compress_level=9<br />
eaccelerator.allowed_admin_path=/path/to/control.php</p>
<p>adjust the memory to whatever you like.<br />
Copy the control.php to whatever path you like (must be some htdocs accessible path) and set the path in eaccelerator.allowed_admin_path= &#8230;<br />
edit the file and user/password.<br />
now restart apache and you are done! go to the link where control.php is and check if you can login and if it works.<br />
<!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">Technorati Tags: <a href="http://www.technorati.com/tag/debian" rel="tag">debian</a>, <a href="http://www.technorati.com/tag/eaccelerator" rel="tag">eaccelerator</a>, <a href="http://www.technorati.com/tag/server" rel="tag">server</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://cristian.livadaru.net/2007/05/25/howto-installing-eaccelerator-on-debian-etch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

