<?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>apocryph.org &#187; ajax</title>
	<atom:link href="http://apocryph.org/tag/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://apocryph.org</link>
	<description>Notes to my future self</description>
	<lastBuildDate>Mon, 09 Aug 2010 16:59:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>I don&apos;t get Ajax Desktops</title>
		<link>http://apocryph.org/2005/12/19/i_dont_get_ajax_desktops/</link>
		<comments>http://apocryph.org/2005/12/19/i_dont_get_ajax_desktops/#comments</comments>
		<pubDate>Mon, 19 Dec 2005 21:47:09 +0000</pubDate>
		<dc:creator>anelson</dc:creator>
				<category><![CDATA[Migrated from Drupal]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[disagree]]></category>
		<category><![CDATA[tech diary]]></category>

		<guid isPermaLink="false">http://apocryph.org/?p=105</guid>
		<description><![CDATA[I&#8217;ve played with Google&#8217;s Ajax Desktop, as well as Netvibes, and I don&#8217;t get what the big deal is. Does anyone else think this is a minor evolution of that canonical 90&#8242;s bubble icon, the search portal?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve played with <a href="http://www.google.com/ig">Google&#8217;s Ajax Desktop</a>, as well as <a href="http://www.netvibes.com/">Netvibes</a>, and I don&#8217;t get what the <a href="http://www.techcrunch.com/2005/12/07/ajax-desktops-wont-stop/">big deal</a> is.</p>
<p>Does anyone else think this is a minor evolution of that canonical 90&#8242;s bubble icon, the search portal?</p>
]]></content:encoded>
			<wfw:commentRss>http://apocryph.org/2005/12/19/i_dont_get_ajax_desktops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX Web-based IMAP Mail: RoundCube</title>
		<link>http://apocryph.org/2005/12/01/ajax_web_based_imap_mail_roundcube/</link>
		<comments>http://apocryph.org/2005/12/01/ajax_web_based_imap_mail_roundcube/#comments</comments>
		<pubDate>Thu, 01 Dec 2005 21:57:19 +0000</pubDate>
		<dc:creator>anelson</dc:creator>
				<category><![CDATA[Migrated from Drupal]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[bonzo]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[roundcube]]></category>
		<category><![CDATA[tech diary]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://apocryph.org/?p=88</guid>
		<description><![CDATA[I&#8217;m trying out RoundCube, an early-stage web-based IMAP mail client with the AJAX interface I&#8217;ve come to expect. I&#8217;m putting 0.1-20051021 on bonzo. After unzipping the tarball, I have to create a new MySQL database for RoundCube, per the INSTALL file in the tarball: $ mysqladmin -u root -p create roundcube $ mysql -u root [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying out <a href="http://www.roundcube.net/">RoundCube</a>, an early-stage web-based IMAP mail client with the AJAX interface I&#8217;ve come to expect.</p>
<p>I&#8217;m putting 0.1-20051021 on <code>bonzo</code>.</p>
<p>After unzipping the tarball, I have to create a new MySQL database for RoundCube, per the <code>INSTALL</code> file in the tarball:</p>
<pre><code>$ mysqladmin -u root -p create roundcube
$ mysql -u root -p
mysql&gt; grant all privileges on roundcube.* to 'roundcube'@'localhost' identified by '[secret]';
Query OK, 0 rows affected (0.13 sec)
mysql&gt; flush privileges;
Query OK, 0 rows affected (0.02 sec)
</code></pre>
<p>Next I edited the DB config, in <code>config/db.inc.php</code>.  The only line that needed changing was:</p>
<pre><code>$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
</code></pre>
<p>I changed it to:</p>
<pre><code>$rcmail_config['db_dsnw'] = 'mysql://roundcube:[secret]@localhost/roundcube';
</code></pre>
<p>General settings are in <code>config/main.inc.php</code>.  My changed lines are:</p>
<pre><code>$rcmail_config['default_host'] = 'ssl://mail.celatrix.com:993';
$rcmail_config['smtp_server'] = 'mail.celatrix.com';
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';
$rcmail_config['smtp_auth_type'] = 'CRAM-MD5';
</code></pre>
<p>I also need to make sure the <code>www</code> user can write <code>temp/</code> and <code>logs/</code>.</p>
<pre><code>chgrp www temp logs
chmod 0775 logs temp
</code></pre>
<p>I went to http://bonzo.celatrix.com/~anelson/roundcube/index.php, and got an Internal Server Error.  From <code>/var/log/httpd-error.log</code>:</p>
<pre><code>/home/anelson/public_html/roundcube/.htaccess: php_flag not allowed here
</code></pre>
<p>Doh.  An <code>.htaccess</code> issue.  Apache by default is very restrictive as to what directives can appear in a <code>.htaccess</code> file; whatever <code>php_flag</code> is, it clearly isn&#8217;t on the list.</p>
<p>I&#8217;m trying to run RoundCube out of my <code>~/public_html</code> folder, so the Apache settings for the <code>UserDir</code> applies.  By default, my <code>/usr/local/etc/apache2/httpd.conf</code> has this to say:</p>
<pre><code>&lt;Directory /home/*/public_html&gt;
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    &lt;Limit GET POST OPTIONS PROPFIND&gt;
        Order allow,deny
        Allow from all
    &lt;/Limit&gt;
    &lt;LimitExcept GET POST OPTIONS PROPFIND&gt;
        Order deny,allow
        Deny from all
    &lt;/LimitExcept&gt;
&lt;/Directory&gt;
</code></pre>
<p>From a post discussion a <a href="http://gallery.menalto.com/node/560">similar issue with Gallery</a>, I determined that <code>Options</code> must be in the <code>AllowOverride</code> list as well, in addition a <code>FileInfo</code> which is already there.  So the revised <code>Directory</code> entry for <code>public_html</code> is:</p>
<pre><code>&lt;Directory /home/*/public_html&gt;
    AllowOverride Options FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    &lt;Limit GET POST OPTIONS PROPFIND&gt;
        Order allow,deny
        Allow from all
    &lt;/Limit&gt;
    &lt;LimitExcept GET POST OPTIONS PROPFIND&gt;
        Order deny,allow
        Deny from all
    &lt;/LimitExcept&gt;
&lt;/Directory&gt;
</code></pre>
<p>One <code>apachectl restart</code> later, and it was on to the next error.</p>
<p>Next, I got this:</p>
<pre><code>Parse error: parse error, unexpected T_VARIABLE in /home/anelson/public_html/roundcube/config/main.inc.php on line 56
</code></pre>
<p>That would be me, forgetting a semicolon on the <code>smtp_pass</code> line in <code>main.inc.php</code>.  I&#8217;ve updated the dump above with the correct trailing semicolon.</p>
<p>Now it&#8217;s:</p>
<pre><code>DB Error in /home/anelson/public_html/roundcube/program/include/rcube_db.inc (129): DB Error: no such table
DB Error in /home/anelson/public_html/roundcube/program/include/rcube_db.inc (204): DB Error: no such table Query: SELECT vars, ip, UNIX_TIMESTAMP(changed) AS changed FROM session WHERE sess_id='ekt27u4asatlcar7lgjjulkcn4'

Fatal error: Call to a member function fetchRow() on a non-object in /home/anelson/public_html/roundcube/program/include/rcube_db.inc on line 196
</code></pre>
<p>Oh, I forgot to actually create the database:</p>
<pre><code> mysql -D roundcube -u roundcube -p &lt; SQL/mysql.initial.sql
</code></pre>
<p>Aha, now I get a login prompt.  Logging in with my <code>ender</code> email account credentials&#8230;waiting&#8230;60 seconds now&#8230;timed out</p>
<p>Hmm.  My mail server, <code>ender</code>, seems to be hosed himself.  Even the console is hung.  No error messages are visible, but clearly something is hosed.  I&#8217;ll reboot I guess&#8230;</p>
<p>Ok, it&#8217;s back up.  No indication what happened; some minor FS corruption which seems repaired without incident.  Trying again&#8230;ha!  It worked.  I have a nice view of my mailboxes.</p>
<p>It&#8217;s kind of slow.  I assume this will improve as RoundCube builds up a cache of mail.</p>
<p>Hmm, it seems ok.  I was hoping for a bit more Gmail-ish functionality (wtf for?  It&#8217;s an <em>alpha</em> for God&#8217;s sake!); it&#8217;s fairly limited atm.  I think SquirrelMail will be better for now, until RoundCube builds out more functionality.</p>
]]></content:encoded>
			<wfw:commentRss>http://apocryph.org/2005/12/01/ajax_web_based_imap_mail_roundcube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
