<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: mod_sqltemplate: A distraction from work</title>
	<atom:link href="http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/</link>
	<description></description>
	<lastBuildDate>Thu, 22 Dec 2011 18:53:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ba</title>
		<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/comment-page-1/#comment-503</link>
		<dc:creator>Ba</dc:creator>
		<pubDate>Thu, 10 Mar 2011 14:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.dmi.me.uk/blog/?p=86#comment-503</guid>
		<description>hi Dave your mod_sqltemplate is fantastic il love it so much no i&#039;am trying to use it in my project but i have a probleme hi does&#039;nt work in my computer i dont known why: 
i have ubuntu system and installed lamp-server meaning apache2 php and mysql. help me please.</description>
		<content:encoded><![CDATA[<p>hi Dave your mod_sqltemplate is fantastic il love it so much no i&#8217;am trying to use it in my project but i have a probleme hi does&#8217;nt work in my computer i dont known why:<br />
i have ubuntu system and installed lamp-server meaning apache2 php and mysql. help me please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G. Schuster</title>
		<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/comment-page-1/#comment-313</link>
		<dc:creator>G. Schuster</dc:creator>
		<pubDate>Sat, 21 Nov 2009 20:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dmi.me.uk/blog/?p=86#comment-313</guid>
		<description>Just to let you know - I digged into this a little further.
As there&#039;s no &quot;real&quot; dynamic configuration I at least managed to automate the Apache reloads.
My test setup now uses mod_perl for &quot;dynamic&quot; configuration and &quot;incrontab&quot; to watch the filesystem for a touched file.
Everytime I change my DB I only have to touch() the watched file and - magic - Apache reloads.
It&#039;s surely not perfect but until mod_sqltemplate has the perfect solution it&#039;s suitable :)</description>
		<content:encoded><![CDATA[<p>Just to let you know &#8211; I digged into this a little further.<br />
As there&#8217;s no &#8220;real&#8221; dynamic configuration I at least managed to automate the Apache reloads.<br />
My test setup now uses mod_perl for &#8220;dynamic&#8221; configuration and &#8220;incrontab&#8221; to watch the filesystem for a touched file.<br />
Everytime I change my DB I only have to touch() the watched file and &#8211; magic &#8211; Apache reloads.<br />
It&#8217;s surely not perfect but until mod_sqltemplate has the perfect solution it&#8217;s suitable <img src='http://www.dmi.me.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/comment-page-1/#comment-311</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 17 Nov 2009 00:12:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.dmi.me.uk/blog/?p=86#comment-311</guid>
		<description>Apache isn&#039;t coded in a way to allow that. The only way to reprocess the config is to get it to reload it. There&#039;s also the complication in the case of mod_sqltemplate that database configuration could be *anywhere*, not just in a virtual host. You could even use it to control inclusion of modules, or other global directives if you really wanted. Virtual hosts are the most common use case for this sort of thing, but all sorts of other applications are possible. There really is no other sane way to do it, I&#039;m afraid :-)

In short, the only way you can have Apache that doesn&#039;t need a reload is to have one for which the configuration never changes ;-)</description>
		<content:encoded><![CDATA[<p>Apache isn&#8217;t coded in a way to allow that. The only way to reprocess the config is to get it to reload it. There&#8217;s also the complication in the case of mod_sqltemplate that database configuration could be *anywhere*, not just in a virtual host. You could even use it to control inclusion of modules, or other global directives if you really wanted. Virtual hosts are the most common use case for this sort of thing, but all sorts of other applications are possible. There really is no other sane way to do it, I&#8217;m afraid <img src='http://www.dmi.me.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>In short, the only way you can have Apache that doesn&#8217;t need a reload is to have one for which the configuration never changes <img src='http://www.dmi.me.uk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G. Schuster</title>
		<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/comment-page-1/#comment-310</link>
		<dc:creator>G. Schuster</dc:creator>
		<pubDate>Tue, 17 Nov 2009 00:03:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.dmi.me.uk/blog/?p=86#comment-310</guid>
		<description>Well, my &quot;need&quot; is to hav - at best - an Apache that doesn&#039;t need a reload at all.
But as my tests within the last hours showed this seems to remain a dream.
I think I&#039;m going the easiest way for now - generate the config files from a DB with a small Perl daemon polling for updated files and then reloading the config.
To cut the long story short: I&#039;m still interessted in mod_sqltemplate so keep up the work :)</description>
		<content:encoded><![CDATA[<p>Well, my &#8220;need&#8221; is to hav &#8211; at best &#8211; an Apache that doesn&#8217;t need a reload at all.<br />
But as my tests within the last hours showed this seems to remain a dream.<br />
I think I&#8217;m going the easiest way for now &#8211; generate the config files from a DB with a small Perl daemon polling for updated files and then reloading the config.<br />
To cut the long story short: I&#8217;m still interessted in mod_sqltemplate so keep up the work <img src='http://www.dmi.me.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/comment-page-1/#comment-309</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 16 Nov 2009 22:52:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.dmi.me.uk/blog/?p=86#comment-309</guid>
		<description>&lt;blockquote cite=&quot;G. Schuster&quot;&gt;I hope I didn’t offend you with my statement about activity – if so I’m sorry and apologize.&lt;/blockquote&gt;

Not at all! I know progress hasn&#039;t exactly been lightning-fast, but there are a lot of demands on my time.

&lt;blockquote cite=&quot;G. Schuster&quot;&gt;The config option sounds like a good idea.
Without internal reloads storing configs in a DB wouldn’t make real sense to me.&lt;/blockquote&gt;

My main reason for storing in a database was to reduce repetition. I figured that the configuration would be changing relatively infrequently, and that I would always know when the changes happened, I wouldn&#039;t mind reloading the config myself.

If you find that mod_perl and the &lt;perl&gt; config sections meet your needs, then great! I&#039;m not convinced by it myself, and I don&#039;t always want mod_perl in servers that I configure. Having said that, everyone&#039;s needs are different...&lt;/perl&gt;</description>
		<content:encoded><![CDATA[<blockquote cite="G. Schuster"><p>I hope I didn’t offend you with my statement about activity – if so I’m sorry and apologize.</p></blockquote>
<p>Not at all! I know progress hasn&#8217;t exactly been lightning-fast, but there are a lot of demands on my time.</p>
<blockquote cite="G. Schuster"><p>The config option sounds like a good idea.<br />
Without internal reloads storing configs in a DB wouldn’t make real sense to me.</p></blockquote>
<p>My main reason for storing in a database was to reduce repetition. I figured that the configuration would be changing relatively infrequently, and that I would always know when the changes happened, I wouldn&#8217;t mind reloading the config myself.</p>
<p>If you find that mod_perl and the
<perl> config sections meet your needs, then great! I&#8217;m not convinced by it myself, and I don&#8217;t always want mod_perl in servers that I configure. Having said that, everyone&#8217;s needs are different&#8230;</perl>
]]></content:encoded>
	</item>
	<item>
		<title>By: G. Schuster</title>
		<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/comment-page-1/#comment-308</link>
		<dc:creator>G. Schuster</dc:creator>
		<pubDate>Mon, 16 Nov 2009 22:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.dmi.me.uk/blog/?p=86#comment-308</guid>
		<description>I hope I didn&#039;t offend you with my statement about activity - if so I&#039;m sorry and apologize.

The config option sounds like a good idea.
Without internal reloads storing configs in a DB wouldn&#039;t make real sense to me.

As the topic urged me on finding more details I&#039;ve come up with mod_perl.
Especially the Apache2::PerlSection module is interessting as it enables one to define whole config sections in pure perl.
The examples also list dynamically configured vhosts - so maybe you can get some inspirations from it.
See the docs at cpan: &lt;a href=&quot;http://search.cpan.org/~gozer/mod_perl-2.0.4/docs/api/Apache2/PerlSections.pod&quot; rel=&quot;nofollow&quot;&gt;Apache2::PerlSections&lt;/a&gt;
I&#039;m going to play with it the next days as my Perl skills are far better than my C skills...maybe that&#039;s already the soultion to my current problem so I don&#039;t have to put you under stress :)</description>
		<content:encoded><![CDATA[<p>I hope I didn&#8217;t offend you with my statement about activity &#8211; if so I&#8217;m sorry and apologize.</p>
<p>The config option sounds like a good idea.<br />
Without internal reloads storing configs in a DB wouldn&#8217;t make real sense to me.</p>
<p>As the topic urged me on finding more details I&#8217;ve come up with mod_perl.<br />
Especially the Apache2::PerlSection module is interessting as it enables one to define whole config sections in pure perl.<br />
The examples also list dynamically configured vhosts &#8211; so maybe you can get some inspirations from it.<br />
See the docs at cpan: <a href="http://search.cpan.org/~gozer/mod_perl-2.0.4/docs/api/Apache2/PerlSections.pod" rel="nofollow">Apache2::PerlSections</a><br />
I&#8217;m going to play with it the next days as my Perl skills are far better than my C skills&#8230;maybe that&#8217;s already the soultion to my current problem so I don&#8217;t have to put you under stress <img src='http://www.dmi.me.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/comment-page-1/#comment-307</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 16 Nov 2009 21:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.dmi.me.uk/blog/?p=86#comment-307</guid>
		<description>&lt;blockquote cite=&quot;G. Schuster&quot;&gt;I’ve seen there’s been an update 04.11.2009 but dates don’t always indicate “real” activity&lt;/blockquote&gt;

Heh, very true. I&#039;ve been working on it a little this evening, but work is going to be extremely busy this week.

&lt;blockquote cite=&quot;G. Schuster&quot;&gt;Manual reloads are exactly the thing I hoped to abandon with an SQL based vhost-config.
Just thinking out loud…but shouldn’t it be possible to internally poll the database for a “changed” flag and then automatically do a reload?&lt;/blockquote&gt;

I&#039;ve had that suggested, and the best way forward would seem to be a pair of configuration options. The first would be an interval to check for updates, and the second would specify a table (or tables) that should have their update times polled. If the update time is greater than the last poll time, internally force a config reload.</description>
		<content:encoded><![CDATA[<blockquote cite="G. Schuster"><p>I’ve seen there’s been an update 04.11.2009 but dates don’t always indicate “real” activity</p></blockquote>
<p>Heh, very true. I&#8217;ve been working on it a little this evening, but work is going to be extremely busy this week.</p>
<blockquote cite="G. Schuster"><p>Manual reloads are exactly the thing I hoped to abandon with an SQL based vhost-config.<br />
Just thinking out loud…but shouldn’t it be possible to internally poll the database for a “changed” flag and then automatically do a reload?</p></blockquote>
<p>I&#8217;ve had that suggested, and the best way forward would seem to be a pair of configuration options. The first would be an interval to check for updates, and the second would specify a table (or tables) that should have their update times polled. If the update time is greater than the last poll time, internally force a config reload.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G. Schuster</title>
		<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/comment-page-1/#comment-306</link>
		<dc:creator>G. Schuster</dc:creator>
		<pubDate>Mon, 16 Nov 2009 19:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.dmi.me.uk/blog/?p=86#comment-306</guid>
		<description>I&#039;ve seen there&#039;s been an update 04.11.2009 but dates don&#039;t always indicate &quot;real&quot; activity ;)

Manual reloads are exactly the thing I hoped to abandon with an SQL based vhost-config.
Just thinking out loud...but shouldn&#039;t it be possible to internally poll the database for a &quot;changed&quot; flag and then automatically do a reload?
I&#039;ll try to get my hands dirty on that, but don&#039;t expect any results as I&#039;ve never really worked with C.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve seen there&#8217;s been an update 04.11.2009 but dates don&#8217;t always indicate &#8220;real&#8221; activity <img src='http://www.dmi.me.uk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Manual reloads are exactly the thing I hoped to abandon with an SQL based vhost-config.<br />
Just thinking out loud&#8230;but shouldn&#8217;t it be possible to internally poll the database for a &#8220;changed&#8221; flag and then automatically do a reload?<br />
I&#8217;ll try to get my hands dirty on that, but don&#8217;t expect any results as I&#8217;ve never really worked with C.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/comment-page-1/#comment-305</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 16 Nov 2009 12:35:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.dmi.me.uk/blog/?p=86#comment-305</guid>
		<description>Wow, has it really been a year? The project is undergoing some work (see &lt;a href=&quot;http://www.dmi.me.uk/code/apache/mod_sqltemplate/&quot; rel=&quot;nofollow&quot;&gt;http://www.dmi.me.uk/code/apache/mod_sqltemplate/&lt;/a&gt;) to fix the database access under various conditions, which I hope to have working shortly.

It does require forcing Apache to reload its configuration after every DB change (i.e. a graceful restart rather than a full restart) as there is no other way of forcing the affected sections to be re-processed properly.

Once I&#039;ve got the database subsystem sorted, I&#039;ll be releasing 0.1 stable.</description>
		<content:encoded><![CDATA[<p>Wow, has it really been a year? The project is undergoing some work (see <a href="http://www.dmi.me.uk/code/apache/mod_sqltemplate/" rel="nofollow">http://www.dmi.me.uk/code/apache/mod_sqltemplate/</a>) to fix the database access under various conditions, which I hope to have working shortly.</p>
<p>It does require forcing Apache to reload its configuration after every DB change (i.e. a graceful restart rather than a full restart) as there is no other way of forcing the affected sections to be re-processed properly.</p>
<p>Once I&#8217;ve got the database subsystem sorted, I&#8217;ll be releasing 0.1 stable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G. Schuster</title>
		<link>http://www.dmi.me.uk/blog/2008/09/10/mod_sqltemplate-a-distraction-from-work/comment-page-1/#comment-304</link>
		<dc:creator>G. Schuster</dc:creator>
		<pubDate>Mon, 16 Nov 2009 11:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dmi.me.uk/blog/?p=86#comment-304</guid>
		<description>One year since the last comment...is this project still active?
I&#039;m really interessted in the module as there&#039;s no real alternative for storing the vhosts in a database.
What I haven&#039;t found in the docs so far - does it require me to restart Apache after each DB change?

Is there any chance to get the mod to a stable version soon?
I&#039;d be happy to aid the development with comments and ideas if you&#039;re interessted.
You can find my contact details on my website @ www [dot] actra [dot] de</description>
		<content:encoded><![CDATA[<p>One year since the last comment&#8230;is this project still active?<br />
I&#8217;m really interessted in the module as there&#8217;s no real alternative for storing the vhosts in a database.<br />
What I haven&#8217;t found in the docs so far &#8211; does it require me to restart Apache after each DB change?</p>
<p>Is there any chance to get the mod to a stable version soon?<br />
I&#8217;d be happy to aid the development with comments and ideas if you&#8217;re interessted.<br />
You can find my contact details on my website @ www [dot] actra [dot] de</p>
]]></content:encoded>
	</item>
</channel>
</rss>

