<?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>Markus Zeller Blog &#187; script</title>
	<atom:link href="http://www.markuszeller.com/tag/script/feed" rel="self" type="application/rss+xml" />
	<link>http://www.markuszeller.com</link>
	<description>Life is just a game</description>
	<lastBuildDate>Sat, 31 Dec 2011 22:09:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apache, Perl and Shebang</title>
		<link>http://www.markuszeller.com/apache-perl-and-shebang</link>
		<comments>http://www.markuszeller.com/apache-perl-and-shebang#comments</comments>
		<pubDate>Wed, 26 Nov 2008 13:41:37 +0000</pubDate>
		<dc:creator>Markus Zeller</dc:creator>
				<category><![CDATA[Coole Mac OS X Tricks]]></category>
		<category><![CDATA[Coole Windows Tricks]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[pc]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.markuszeller.com/?p=368</guid>
		<description><![CDATA[If you are a devoloper and especially for web, then it could be very comfortable to have a local installed Webserver, primarily Apache2.  With a Mac it is absolutely no big deal, because you just go to the Preferences. In &#8230; <a href="http://www.markuszeller.com/apache-perl-and-shebang">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_369" class="wp-caption alignright" style="width: 350px"><img class="size-full wp-image-369" title="Web Server" src="http://www.markuszeller.com/wp-content/uploads/apache.jpg" alt="Web Server on Mac" width="340" height="278" /><p class="wp-caption-text">Web Server on Mac</p></div>
<p>If you are a devoloper and especially for web, then it could be very comfortable to have a local installed Webserver, primarily <a title="Apache" href="http://apache.org/">Apache2</a>. </p>
<p>With a Mac it is absolutely no big deal, because you just go to the Preferences. In the Internet pane you will find a icon named Sharing and within there you can find some sharing services which can be activated by a single click.</p>
<p>For the web service, just enable &#8220;Web Sharing&#8221;. Right next to it you will get told, how this webserver is available. It shows you the URL which you can use and give away. It does contain your current IP address, so that people within and outside your network may see it. You may disable that in the firewall and just use &#8220;localhost&#8221; or its pendant IP 127.0.0.1.</p>
<p><a title="Perl" href="http://www.perl.org/">Perl</a>, <a title="PHP" href="http://php.net/">PHP</a>, <a title="mySQL" href="http://mysql.com/">mySQL</a> and some more things are commonly used for web developing are already included and do work immediately.</p>
<p>If you are a perl programmer you will be familar with the shebang line, which normally points to the perl compiler commonly located on unix-like systems at /usr/bin/perl.</p>
<p>When using Windows, it is a good choice to use <a title="Xampp" href="http://www.apachefriends.org/en/xampp-windows.html">xampp</a>, because it includes all those things in one package which is already preconfigured on a Mac.</p>
<p>But on Windows you although have to do some tricky things, because it has a completely different file structure. If your shebang does not point to the exact path of the perl compiler you will certainly receive a nasty and unwanted <em>&#8220;Couldn&#8217;t create child process: 720003: script.pl&#8221;</em>.</p>
<p>Let us say, you have already an Apache2 running, then open its httpd.conf. Locate the line with &#8220;ScriptInterpreterSource registry&#8221;. If there is a &#8220;#&#8221; before it, then remove it! Next, locate any perl script on your system. Actually doubleclick it and link the extension to be always opened with &#8220;c:/xampp/perl/bin/perl.exe&#8221; or wherever your perl is installed. Reboot, and any script should be able to run without changing the shebang line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markuszeller.com/apache-perl-and-shebang/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

