<?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>jeremykendall.net &#187; ubuntu</title>
	<atom:link href="http://www.jeremykendall.net/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeremykendall.net</link>
	<description>{web developer, entrepreneur }</description>
	<lastBuildDate>Fri, 23 Jul 2010 19:18:30 +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>Two More Apache Tweaks Required After Ubuntu 10.04 Upgrade</title>
		<link>http://www.jeremykendall.net/2010/05/03/two-more-apache-tweaks-required-after-ubuntu-10-04-upgrade/</link>
		<comments>http://www.jeremykendall.net/2010/05/03/two-more-apache-tweaks-required-after-ubuntu-10-04-upgrade/#comments</comments>
		<pubDate>Mon, 03 May 2010 13:30:41 +0000</pubDate>
		<dc:creator>Jeremy Kendall</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.jeremykendall.net/?p=296</guid>
		<description><![CDATA[While I was troubleshooting why Apache stopped serving php apps from my home directory, I ran into two more annoyances that required attention.  I figured I&#8217;d share them as well in case you run into them yourself.
Here&#8217;s what I saw when I reloaded Apache:

jkendall@san-diego:/etc/apache2$ sudo /etc/init.d/apache2 reload
  * Reloading web server config apache2
apache2: [...]]]></description>
			<content:encoded><![CDATA[<p>While I was troubleshooting why <a href="http://www.jeremykendall.net/2010/04/30/upgrading-to-ubuntu-10-04-breaks-serving-php-from-home-directories/">Apache stopped serving php apps from my home directory</a>, I ran into two more annoyances that required attention.  I figured I&#8217;d share them as well in case you run into them yourself.</p>
<p>Here&#8217;s what I saw when I reloaded Apache:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">jkendall@san-diego:/etc/apache2$ sudo /etc/init.d/apache2 reload
  * Reloading web server config apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Fri Apr 30 13:47:38 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
                                                                                    [ OK ]</pre></div></div>

<p>As you can see, Apache reloaded fine, but I don&#8217;t like seeing anything other than <code>[ OK ]</code> when I&#8217;m reloading my web server.  Let&#8217;s tackle these one at a time.</p>
<p><strong>Could not reliably determine the server&#8217;s fully qualified domain name</strong></p>
<p>Why is Apache all of a sudden complaining about what&#8217;s worked for so long?  I&#8217;m not sure exactly, but thankfully the fix was simple and easy.  Simply adding &#8220;<code>ServerName localhost</code>&#8221; to <code>/etc/apache2/httpd.conf</code> took care of the first complaint (Big thanks to Mohamed Aslam for <a href="http://mohamedaslam.com/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu/">his clear instructions</a> on how to get this fixed.).</p>
<p><strong>NameVirtualHost *:80 has no VirtualHosts</strong></p>
<p>The problem boiled down to having <code>NameVirtualHost</code> defined in more than one place.  In my case, <code>NameVirtualHost</code> was defined both in <code>/ect/apache2/ports.conf</code> and <code>/etc/apache2/sites-available/default</code>.  Commenting out the <code>NameVirtualHost *:80</code> line in <code>/etc/apache2/sites-available/default</code> did the trick (Thanks to the guys in <a href="http://serverfault.com/questions/1405/apache2-startup-warning-namevirtualhost-80-has-no-virtualhosts">this Server Fault thread</a>, especially to <a href="http://serverfault.com/users/942/ivan">Ivan</a>, for providing the necessary clues to track this one down.).</p>
<p>After making the above changes, reloading Apache didn&#8217;t throw any more warnings. w00t!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeremykendall.net/2010/05/03/two-more-apache-tweaks-required-after-ubuntu-10-04-upgrade/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Upgrading to Ubuntu 10.04 Breaks Serving php from Home Directories</title>
		<link>http://www.jeremykendall.net/2010/04/30/upgrading-to-ubuntu-10-04-breaks-serving-php-from-home-directories/</link>
		<comments>http://www.jeremykendall.net/2010/04/30/upgrading-to-ubuntu-10-04-breaks-serving-php-from-home-directories/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 16:45:31 +0000</pubDate>
		<dc:creator>Jeremy Kendall</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.jeremykendall.net/?p=288</guid>
		<description><![CDATA[I upgraded to Ubuntu 10.04 this morning and immediately noticed I could no longer serve php applications from my home directory.  When I tried to visit one of my projects, http://test.local for example, Firefox opened a download dialog with a message similar to &#8220;You have chosen to open index.phtml . . .&#8221;
After quite a [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded to <a href="http://ubuntu.com">Ubuntu 10.04</a> this morning and immediately noticed I could no longer serve php applications from my home directory.  When I tried to visit one of my projects, http://test.local for example, Firefox opened a download dialog with a message similar to &#8220;You have chosen to open index.phtml . . .&#8221;</p>
<p>After quite a bit of googling and forum searching, I went to Twitter asking for help.  Many thanks to <a href="http://twitter.com/sypherNL">@sypherNL</a> for helping me resolve this one.</p>
<p>It seems that something has changed in /etc/apache2/mods-enabled/php5.conf.  If you&#8217;re experiencing this same issue, check your php5.conf and see if it matches mine.</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">IfModule</span> mod_php5.c&gt;
    &lt;<span style="color: #000000; font-weight:bold;">FilesMatch</span> <span style="color: #7f007f;">&quot;<span style="color: #000099; font-weight: bold;">\.</span>ph(p3?|tml)$&quot;</span>&gt;
        <span style="color: #00007f;">SetHandler</span> application/x-httpd-php
    &lt;/<span style="color: #000000; font-weight:bold;">FilesMatch</span>&gt;
    &lt;<span style="color: #000000; font-weight:bold;">FilesMatch</span> <span style="color: #7f007f;">&quot;<span style="color: #000099; font-weight: bold;">\.</span>phps$&quot;</span>&gt;
        <span style="color: #00007f;">SetHandler</span> application/x-httpd-php-source
    &lt;/<span style="color: #000000; font-weight:bold;">FilesMatch</span>&gt;
    <span style="color: #adadad; font-style: italic;"># To re-enable php in user directories comment the following lines</span>
    <span style="color: #adadad; font-style: italic;"># (from &lt;IfModule ...&gt; to &lt;/IfModule&gt;.) Do NOT set it to On as it</span>
    <span style="color: #adadad; font-style: italic;"># prevents .htaccess files from disabling it.</span>
    &lt;<span style="color: #000000; font-weight:bold;">IfModule</span> mod_userdir.c&gt;
        &lt;<span style="color: #000000; font-weight:bold;">Directory</span> /home/*/public_html&gt;
            <span style="color: #00007f;">php_admin_value</span> engine <span style="color: #0000ff;">Off</span>
        &lt;/<span style="color: #000000; font-weight:bold;">Directory</span>&gt;
    &lt;/<span style="color: #000000; font-weight:bold;">IfModule</span>&gt;
&lt;/<span style="color: #000000; font-weight:bold;">IfModule</span>&gt;</pre></div></div>

<p>If your php5.conf file looks like the one above, simply comment out the</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">IfModule</span> mod_userdir.c&gt;</pre></div></div>

<p> lines as instructed.  Once that&#8217;s done, restart apache with the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">sudo /etc/init.d/apache2 reload</pre></div></div>

<p>Clear your browser&#8217;s cache and try to visit your site again.  I didn&#8217;t think the fix took at first, but after clearing cache everything worked just fine.</p>
<p><strong>Related Links</strong></p>
<ul>
<li>Thanks again to <a href="http://twitter.com/sypherNL">@sypherNL</a> for showing me how to resolve this one.</li>
<li>Also see Marco Rodrigues&#8217; post <a href="http://marco.tondela.org/2010/03/your-public_html-with-php5-isnt-working-in-ubuntu-lucid/">Your public_html with PHP5 isn’t working in Ubuntu 10.04 Lucid?</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jeremykendall.net/2010/04/30/upgrading-to-ubuntu-10-04-breaks-serving-php-from-home-directories/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>From Zero to Zend Framework Project in 10 Minutes</title>
		<link>http://www.jeremykendall.net/2010/04/17/from-zero-to-zend-framework-project-in-10-minutes/</link>
		<comments>http://www.jeremykendall.net/2010/04/17/from-zero-to-zend-framework-project-in-10-minutes/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 19:18:46 +0000</pubDate>
		<dc:creator>Jeremy Kendall</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[zend tool]]></category>

		<guid isPermaLink="false">http://www.jeremykendall.net/?p=243</guid>
		<description><![CDATA[I first started working with the Zend Framework in July of 2007.  The framework has come a long way since then, and one of my favorite new components is Zend Tool.  Until Zend Tool came on the scene, my least favorite part of any Zend Framework project was getting the project up and [...]]]></description>
			<content:encoded><![CDATA[<p>I first started working with the <a href="http://framework.zend.com">Zend Framework</a> in July of 2007.  The framework has come a long way since then, and one of my favorite new components is <a href="http://framework.zend.com/manual/en/zend.tool.html">Zend Tool</a>.  Until Zend Tool came on the scene, my least favorite part of any Zend Framework project was getting the project up and running, from zero to &#8220;Hello World,&#8221; if you will.  I always left out some important piece of configuration, screwed up the directory structure, or made some other equally foolish, simple mistake that kept me chasing my tail until I finally got everything set up just right.  No longer! Zend Tool does all of that work for me, allowing me to get to work on the meat of my project right away.</p>
<p>Of course, you can&#8217;t use Zend Tool until you&#8217;ve got the framework installed.  Once the framework is installed, there are very specific steps required to fire up Zend Tool.  Once Zend Tool builds the project for you, you&#8217;re going to need a <a href="http://httpd.apache.org/docs/2.0/vhosts/">virtual host</a> set up so that you can actually run the thing. No problem, right?  Well, maybe not.</p>
<p>It can be really challenging for the new guy to get from zero to a Zend Framework project without wanting to chunk his computer out the window (<a href="http://www.urbandictionary.com/define.php?term=headdesk&amp;defid=2569861">headdesk</a> anyone?).  I know it was that way for me.  In the interest of saving his sanity and helping the new gal get going, I&#8217;ve tried to put all the necessary steps together in one place.</p>
<p>Here&#8217;s what we&#8217;re going to do:</p>
<ul>
<li>Install the Zend Framework</li>
<li>Get Zend Tool up and running</li>
<li>Create a new Zend Framework project</li>
<li>Get an virtual host up and running</li>
<li>Celebrate victory!</li>
</ul>
<p><strong>Disclaimer</strong></p>
<p>While I&#8217;m going try to stay true to my &#8220;Zero to Zend Framework Project&#8221; thesis, I am making a few assumptions.  This tutorial is written for <a href="http://www.ubuntu.com/">Ubuntu</a>, <a href="http://php.net/">PHP 5</a>, and <a href="http://httpd.apache.org/">Apache</a>. While I&#8217;d love to be able to address Windows, Mac, and other *nix distros, I can only share what I know.  I&#8217;m also assuming PHP 5 (PHP 5.2.4 at minimum) and Apache are both installed and functioning correctly, and Apache&#8217;s <a href="http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html">mod_rewrite</a> module is up and running.  If that&#8217;s not the case, please refer to the resources section at the end of this post to find instructions on getting everything ready to go.</p>
<p><strong>Installing the Zend Framework</strong></p>
<p>Installing the Zend Framework is as easy as downloading a .zip or .tar.gz file (your choice) and extracting the contents onto your machine.</p>
<ul>
<li>Create a directory named phplib in your home folder.</li>
<li>Head over to <a href="http://framework.zend.com/download/latest">Zend Framework: Downloads</a> and download Zend Framework &lt;version_num&gt; Full.</li>
<li>Double click on the downloaded file, choose &#8220;Extract,&#8221; navigate to the phplib directory, and click &#8220;Extract.&#8221;</li>
</ul>
<p>As of this writing, the most recent version of the Zend Framework is 1.10.3, so the full path to my Zend Framework installation would be</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">/home/jkendall/phplib/ZendFramework-1.10.3</pre></div></div>

<p><strong>IMPORTANT</strong>: Make sure that you downloaded Zend Framework &lt;version_num&gt; Full.  That will be important later.</p>
<p><strong>TIP</strong>: As new versions of the framework are released, I like to be able to switch between them easily.  I always make a <a href="http://en.wikipedia.org/wiki/Symbolic_link">soft link (symbolic link, symlink)</a> to the latest release and name it Zend.  You can either right-click on the ZendFramework-1.10.3 folder and select &#8220;Make Link&#8221; (make sure to name the link &#8220;Zend&#8221;), or create a soft link from the command line like so:</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">~/phplib/ZendFramework-1.10.3$ ln -s ZendFramework-1.10.3 Zend</pre></div></div>

<p>When a new version of the framework is released, I install the new version to its own folder and switch the soft link to target the directory containing the latest release.  That can come in handy down the road.</p>
<p><strong>Get Zend Tool running</strong></p>
<p>There are a <a href="http://framework.zend.com/manual/en/zend.tool.usage.cli.html">few different ways to get Zend Tool running</a>, perhaps better than mine, but I like to create a <a href="http://www.sucka.net/2009/09/ubuntu-command-line-tip-1-%E2%80%93-aliases/">bash alias</a> for zf.sh (For information on how to get bash aliases working, see this <a href="http://www.sucka.net/2009/09/ubuntu-command-line-tip-1-%E2%80%93-aliases/">bash aliases tutorial</a>.).  My alias looks like <code>alias zf='/usr/share/phplib/Zend/bin/zf.sh'</code>.</p>
<p>Whichever method you use, make sure to test your alias by calling <code>zf --help</code> from the command line.</p>
<p><strong>Creating a new Zend Framework Project</strong></p>
<p>Now we&#8217;re getting to the good stuff.  First, head back to your home directory and create a new directory called public_html.  This is where you&#8217;re going to store your Zend Framework project (and any future web projects, for that matter).</p>
<p>Next, cd into the public_html directory and execute the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">~/public_html$ zf create project ZeroToZF</pre></div></div>

<p>That&#8217;s all there is to it!  You&#8217;ve got your project structure in place, a default IndexController and ErrorController, your application config, the necessary view scripts, etc (See the <a href="http://framework.zend.com/manual/en/zend.application.quick-start.html">Zend Application Quick Start</a> for full rundown of what got created.).</p>
<p><strong>IMPORTANT</strong>: While the full project structure is now in place, the Zend Framework <strong>is not included in your project for you</strong>.  Deciding how the framework should be included in the project is up to the developer.  I like to copy the library out of the Zend Framework install folder into the application&#8217;s library folder.  In our example, I would copy</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">/home/jkendall/phplib/ZendFramework-1.10.3/library/Zend</pre></div></div>

<p>into</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">/home/jkendall/public_html/ZeroToZF/library</pre></div></div>

<p>When done properly, the full path to Zend/Log.php in your application should be</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">/home/&lt;username&gt;/public_html/ZeroToZF/library/Zend/Log.php</pre></div></div>

<p>Sweet!  We&#8217;re almost there.</p>
<p><strong>Creating a Virtual Host</strong></p>
<p>There are a decent number of steps here, but executing them is straightforward, so bear with me.  Also, a lot of these steps need to be executed from the command line.  <a href="http://idioms.thefreedictionary.com/Forewarned+is+forearmed">Forewarned is forearmed</a> and all that.</p>
<p>If you have not done so already, open the terminal application (Applications -&gt; Accessories -&gt; Terminal) and cd into <code>/etc/apache2/sites-available</code>.  Here you&#8217;ll find virtual host definitions.  Most likely you&#8217;ll see a file named default (or possibly 000-default).  Peek at that if you&#8217;d like to see an example of a virtual host, but what we&#8217;re going to put together is a lot simpler.</p>
<p><strong>IMPORTANT</strong>: Since <code>/etc</code> and its subfolders are owned by root, you&#8217;ll need to run all of the following commands as root.  We&#8217;ll be using both the <a href="https://help.ubuntu.com/community/RootSudo#sudo">sudo</a> and the <a href="https://help.ubuntu.com/community/RootSudo#Graphical sudo">gksudo</a> commands to do that.</p>
<p>After using the command line to cd into <code>/etc/apache2/sites-available</code>, execute the following command to create your own vhost file:</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">/etc/apache2/sites-available$ gksudo gedit ZeroToZf.local</pre></div></div>

<p>The file extension isn&#8217;t important, a lot of people use .conf, but I like to use .local for sites hosted locally.</p>
<p>Once you&#8217;ve got gedit open, the file&#8217;s contents should look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">&lt;VirtualHost *:80&gt;
        ServerName zerotozf.local
        DocumentRoot /home/jkendall/public_html/ZeroToZF/public
&lt;/VirtualHost&gt;</pre></div></div>

<p>Of course, jkendall should be replaced by your username.</p>
<p>Next we need to make your new virtual host file available to Apache.  You can do that by executing</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">/etc/apache2/sites-available$ sudo a2ensite ZeroToZF.local</pre></div></div>

<p>If everything worked properly, you should see the following message:</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">Enabling site ZeroToZF.local.
Run '/etc/init.d/apache2 reload' to activate new configuration!</pre></div></div>

<p>Next, edit your <code>/etc/hosts</code> file by adding <code>zerotozf.local</code> like so:</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">/etc/apache2/sites-available$ gksudo gedit /etc/hosts</pre></div></div>

<p>Add the following line below the entry for localhost</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">127.0.0.1 zerotozf.local</pre></div></div>

<p><strong>NOTE</strong>: When adding a host to /etc/hosts, the case of the hostname is not important.  I like to add hostnames in lowercase, but you can add it as ZeroToZF.local if you like.</p>
<p>Save the file, close gedit, and execute</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">/etc/apache2/sites-available$ sudo /etc/init.d/apache2 reload</pre></div></div>

<p>You should see the message</p>

<div class="wp_syntax"><div class="code"><pre class="code" style="font-family:monospace;">* Reloading web server config apache2                                          [ OK ]</pre></div></div>

<p>Open up your browser and visit <a href="http://zerotozf.local">http://zerotozf.local</a>.  You should see the Zend Framework welcome screen.</p>
<p>Congrats!  You did it!</p>
<p><strong>Next Steps</strong></p>
<p>Now that you&#8217;ve got your first project up and running, you&#8217;re probably going to want to actually do something with it.  I&#8217;d highly recommend heading over to <a href="http://akrabat.com/">Rob Allen&#8217;s site</a> for his excellent <a href="http://akrabat.com/zend-framework-tutorial/">Getting Started with Zend Framework</a> tutorial.  It&#8217;s the same tutorial I followed when I first started with the framework (an earlier version, of course), and I&#8217;ve referred back to it many times since.</p>
<p><strong>Wrapping Up</strong></p>
<p>Getting started with the Zend Framework was a challenging proposition for me.  Just getting to the point where I could start working on a project was sometimes maddening as a result of all the steps involved, many of which had nothing to do with the framework, at least not directly.  I&#8217;ve tried, hopefully successfully, to lay out all the steps you might need to get from zero to a Zend Framework project in (about) 10 minutes.</p>
<p>Working with the Zend Framework has been a rich and rewarding experience for me.  I&#8217;ve learned <em>almost</em> everything I know about best practices, object oriented programming, *nix, and Apache (to name just a few) as a direct or indirect result of the Zend Framework.  I wouldn&#8217;t have been able to do that without the help of the Zend Framework community.  I won&#8217;t name names, as I&#8217;m sure to unintentionally leave out some great folks, so I&#8217;ll throw you a link to the <a href="http://n4.nabble.com/Zend-Framework-Community-f634137.html">Zend Framework Community Forum</a>.  Head over there when you&#8217;ve got a Zend Framework problem you just can&#8217;t solve on your own.  You&#8217;ll meet some great folks and learn a lot in the process.  They&#8217;ve saved my bacon more than once.</p>
<p>If I&#8217;ve left out any steps or made some egregious error, please let me know in the comments.  I&#8217;ll be grateful and post updates and corrections as soon as possible.</p>
<p><strong>Resources</strong></p>
<ul>
<li>How to <a href="https://help.ubuntu.com/9.10/serverguide/C/php5.html">install PHP in Ubuntu</a></li>
<li>How to <a href="https://help.ubuntu.com/9.10/serverguide/C/httpd.html">install Apache in Ubuntu</a></li>
<li><a href="http://www.ghacks.net/2009/12/05/enable-mod_rewrite-in-a-ubuntu-server/">Enabling mod_rewrite</a></li>
<li>A great <a href="http://www.sucka.net/2009/09/ubuntu-command-line-tip-1-%E2%80%93-aliases/">bash aliases</a> tutorial for Ubuntu</li>
<li>Setting up <a href="http://www.armando.ws/2009/05/how-to-set-up-zend_tool-on-windows/comment-page-1/">Zend Tool on Windows</a></li>
<li>The <a href="http://n4.nabble.com/Zend-Framework-Community-f634137.html">Zend Framework Community Forum</a> on Nabble</li>
<li><a href="http://akrabat.com/zend-framework-tutorial/">Getting Started with Zend Framework</a> by Rob Allen</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jeremykendall.net/2010/04/17/from-zero-to-zend-framework-project-in-10-minutes/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Mail Notification 5.0 with SSL in Ubuntu</title>
		<link>http://www.jeremykendall.net/2008/02/14/mail-notification-50-with-ssl-in-ubuntu/</link>
		<comments>http://www.jeremykendall.net/2008/02/14/mail-notification-50-with-ssl-in-ubuntu/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 22:24:22 +0000</pubDate>
		<dc:creator>Jeremy Kendall</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://dev.jeremykendall.net/wp/?p=8</guid>
		<description><![CDATA[The Problem
We recently began using SSL to connect to IMAP at work.  Prior to switching to SSL I had been using the excellent Mail Notification to let me know if I had any messages in my inbox.   As soon as we switched over to SSL, Mail Notification quit alerting me to the [...]]]></description>
			<content:encoded><![CDATA[<p><b>The Problem</b></p>
<p>We recently began using SSL to connect to IMAP at work.  Prior to switching to SSL I had been using the excellent <a href="http://www.nongnu.org/mailnotify/">Mail Notification</a> to let me know if I had any messages in my inbox.   As soon as we switched over to SSL, Mail Notification quit alerting me to the presence of new email.</p>
<p>I figured that all I had to do was change my preferences in Mail Notification and select SSL.  Turns out I was right, except I couldn&#8217;t select SSL &#8211; all of the &#8220;SSL/TSL&#8221; options were grayed out.  Why in the world would that be?  After some research I discovered that:</p>
<ul>
<li>SSL isn&#8217;t available if the package was built without SSL support (makes sense)</li>
<li>The OpenSSL license conflicts with the Debian license</li>
</ul>
<p>Mail Notification <i>is</i> available in the Ubuntu repository, but without SSL support.  Bummer.</p>
<p><b>Build it Yourself</b></p>
<p>The resolution is to build Mail Notification with SSL support enabled, but I quickly discovered that building Mail Notification was not as easy as I thought it would be.  Although the installation is well documented in the INSTALL file, I still ran into a lot of problems with dependencies.</p>
<p><b>Dependencies Required</b></p>
<p>After a lot of troubleshooting and not a little frustration, I came up with a list of dependencies that I needed installed in order to configure and make Mail Notification 5.0 on Ubuntu Gutsy:</p>
<ul>
<li>build-essential</li>
<li>gnome-core-devel</li>
<li>libnotify-dev</li>
<li>libgnome2-dev</li>
<li>libgmime-2.0-2-dev</li>
<li>libssl-dev</li>
</ul>
<p>I used the Synaptic Package Manager to install each of these dependencies.  Read on if you&#8217;re looking to troubleshoot a specific error that you&#8217;re running into.</p>
<p><b>Errors and Troubleshooting</b></p>
<p>The first time I ran</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ ./configure</pre></div></div>

<p> I got this error:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.</pre></div></div>

<p>Installing <b>build-essential</b> took care of the C compiler issue, but I found a new one the next time I ran configure:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Error: checking for GNOME... no
configure: error: unable to find the GNOME libraries</pre></div></div>

<p>This one drove me a little batty.  What does it mean it can&#8217;t find the GNOME libraries?  I&#8217;m running GNOME for Pete&#8217;s sake!  After a decent amount of hair pulling and a seemingly endless amount of Googling, I finally found that <b>gnome-core-devel</b>, <b>libnotify-dev</b>, and <b>libgnome2-dev</b> resolved the</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">unable to find the GNOME libraries</pre></div></div>

<p> error.</p>
<p>Next up was the GMIME error:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">checking for GMIME... configure: error: Package requirements (gmime-2.0 &gt;= 2.1.0) were not met:
&nbsp;
No package 'gmime-2.0' found</pre></div></div>

<p>At least by now I was making it most of the way through the</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">configure</pre></div></div>

<p> process.  I found that installing <b>libgmime-2.0-2-dev</b> resolved the issue, finally allowing me to complete the configuration.</p>
<p>Of course, the whole point was to build Mail Notify with SSL support.  What do you think I found when configure finally ran all of the way through?  Down at the bottom of the options list, I saw this:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">--enable-ssl                 no (OpenSSL not found)</pre></div></div>

<p>By now, I had started seeing a pattern: look up the dependencies, find their dev libraries, install their dev libraries, and voila, on to the next issue.  With that in mind, I installed <b>libssl-dev</b> and ran</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ ./configure</pre></div></div>

<p> one last time.  Mail Notify configured without errors and with SSL support.  A quick</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">make</pre></div></div>

<p> and</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">make install</pre></div></div>

<p> later and I had a Mail Notify 5.0 installation complete with SSL support.</p>
<p><b>Other Options</b></p>
<p>There seem to be a lot of different ways to skin this particular cat.  The solution above is what worked for me, your mileage may vary.  You may find it useful to refer to the discussion in this <a href="https://bugs.launchpad.net/ubuntu/+source/mail-notification/+bug/44335">related bug report</a> for background.  </p>
<p>For another way to resolve this issue, you might try &#8220;<a href="http://www.howtoforge.com/repackage_deb_packages_debian_ubuntu">How to make a small change to a Debian tool and repackage it.</a>&#8221;  I didn&#8217;t find this article until after I had resolved the issue myself, but it looks like it might be a lot simpler.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jeremykendall.net/2008/02/14/mail-notification-50-with-ssl-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
