<?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>blog.haraldkraft.de &#187; script</title>
	<atom:link href="http://blog.haraldkraft.de/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.haraldkraft.de</link>
	<description>Blog Project of Harald Kraft</description>
	<lastBuildDate>Thu, 08 Jul 2010 20:32:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Invalid command &#8216;Script&#8217; in Apache configuration</title>
		<link>http://blog.haraldkraft.de/2009/08/invalid-command-script-in-apache-configuration/</link>
		<comments>http://blog.haraldkraft.de/2009/08/invalid-command-script-in-apache-configuration/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 11:14:00 +0000</pubDate>
		<dc:creator>Harald Kraft</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.haraldkraft.de/?p=45</guid>
		<description><![CDATA[While I was trying to allow some tool&#8217;s PHP file to perform the HTTP command PUT, the tool&#8217;s manual said to put the following code in the httpd.conf Apache configuration file: &#60;Directory /foo/bar&#62; Script PUT /some.php &#60;/Directory&#62; And so I did. But when I tried to reload Apache&#8217;s configuration (/etc/init.d/apache2 reload), Apache complained with the [...]]]></description>
			<content:encoded><![CDATA[<p>While I was trying to allow some tool&#8217;s PHP file to perform the HTTP command <em>PUT</em>, the tool&#8217;s manual said to put the following code in the <em>httpd.conf</em> Apache configuration file:<br />
<code>&lt;Directory /foo/bar&gt;<br />
Script PUT /some.php<br />
&lt;/Directory&gt;</code></p>
<p>And so I did. But when I tried to reload Apache&#8217;s configuration (<em>/etc/init.d/apache2 reload</em>), Apache complained with the following message:</p>
<blockquote><p>Invalid command &#8216;Script&#8217;, perhaps misspelled or defined by a module not included in the server configuration<br />
<span style="color: #ff0000;">failed!</span></p></blockquote>
<p><span id="more-45"></span><br />
At this point in time, Google didn&#8217;t have any results for the error string, and this is why I am actually writing this blog entry.</p>
<p>Searching for Apache2&#8242;s directive <strong>Script</strong> got me to <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2h0dHBkLmFwYWNoZS5vcmcvZG9jcy8yLjIvbW9kL21vZF9hY3Rpb25zLmh0bWwjc2NyaXB0">this Apache doc</a> where you can see that the directive <strong>Script</strong> is part of the module <strong>mod_actions</strong>.<br />
As already mentioned in the error message, a module was not included, now I knew that it would probably be the <em>mod_actions</em> module. Enabling the module by symlinking it from <em>mods-enabled</em> to <em>mods-available</em> made the error message disappear and everything working just fine:</p>
<blockquote><p>ln -s /etc/apache2/mods-available/actions.load /etc/apache2/mods-enabled/actions.load<br />
ln -s /etc/apache2/mods-available/actions.conf /etc/apache2/mods-enabled/actions.conf</p></blockquote>
<p>Hope this helps to offer a quick solution for the error message.</p>
<p>Btw, while looking for fixes, I stumpled across <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy5hcGFjaGV3ZWVrLmNvbS9mZWF0dXJlcy9wdXQ=">this page</a>, which offers further information about how to use Apache&#8217;s <strong>Script</strong> directive.</p>
 <img src="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=45" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.haraldkraft.de/2009/08/invalid-command-script-in-apache-configuration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Twitter PHP script</title>
		<link>http://blog.haraldkraft.de/2009/06/twitter-php-script/</link>
		<comments>http://blog.haraldkraft.de/2009/06/twitter-php-script/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 00:19:25 +0000</pubDate>
		<dc:creator>Harald Kraft</dc:creator>
				<category><![CDATA[Life and People]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[parsing]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.haraldkraft.de/?p=19</guid>
		<description><![CDATA[I wrote this PHP script in order to include the latest tweets from my Twitter on my website. It retrieves the RSS feed, parses it and pastes a number of tweets (along with timestamp and link) to HTML. [[ OLD: Before I can / want to release it under some free software license, I would [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote this PHP script in order to include the latest tweets from my Twitter on my <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2hhcmFsZGtyYWZ0LmRl">website</a>. It retrieves the RSS feed, parses it and pastes a number of tweets (along with timestamp and link) to HTML.</p>
<p><em>[[ OLD:<br />
Before I can / want to release it under some free software license, I would appreciate it if some of you PHP nerds could review the code. I am mainly concerned about security issues rather than formatting and coding style. Since I am no pro in PHP coding, I will probably have done some things quite clumsily.</p>
<p>So please point out security problems as well as other major issues. (For example, if anybody knows how to stop parsing after max items were dealt which, please let me know <img src='http://blog.haraldkraft.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).<br />
]]</em></p>
<p><em>[UPDATE 07/08/2009]</em><br />
(HTTP) Links are now made clickable.<br />
<em>[/UPDATE]</em></p>
<p><em>[UPDATE 15/12/2009]</em><br />
The script was <strong>released</strong> under the Creative Commons Attribution 3.0 Unported License today.<br />
Download the PHP code at <a href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2Jsb2cuaGFyYWxka3JhZnQuZGUvd3AtY29udGVudC91cGxvYWRzLzIwMDkvMTIvcGFyc2V0d2l0dGVyLnBocF8udHh0">http://blog.haraldkraft.de/wp-content/uploads/2009/12/parsetwitter.php_.txt</a> and feel free to reuse and tweak my script (along with mentioning my name as suggested in the license information in the code).<br />
<em>[/UPDATE]</em></p>
<p>Email me at <span id="emob-oybt@unenyqxensg.qr-79">blog {at} haraldkraft(.)de</span><script type="text/javascript">
    var mailNode = document.getElementById('emob-oybt@unenyqxensg.qr-79');
    var linkNode = document.createElement('a');
    linkNode.setAttribute('href', "mailto:%62%6C%6F%67%40%68%61%72%61%6C%64%6B%72%61%66%74%2E%64%65");
    tNode = document.createTextNode("blog {at} haraldkraft(.)de");
    linkNode.appendChild(tNode);
    linkNode.setAttribute('id', "emob-oybt@unenyqxensg.qr-79");
    mailNode.parentNode.replaceChild(linkNode, mailNode);
</script> (or comment)</p>
<p><a rel=\"license\" href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnkvMy4wLw=="><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png" /></a><br />This work is licensed under a <a rel=\"license\" href="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvYnkvMy4wLw==">Creative Commons Attribution 3.0 Unported License</a>.</p>
 <img src="http://blog.haraldkraft.de/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=19" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.haraldkraft.de/2009/06/twitter-php-script/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
