<?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; apache</title>
	<atom:link href="http://blog.haraldkraft.de/tag/apache/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>
	</channel>
</rss>
