<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: How can I run a web server on OS X without admin access?</title>
	<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access/</link>
	<description>Comments on Ask MetaFilter post How can I run a web server on OS X without admin access?</description>
	<pubDate>Wed, 20 Feb 2008 15:45:53 -0800</pubDate>
	<lastBuildDate>Wed, 20 Feb 2008 15:45:53 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How can I run a web server on OS X without admin access?</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access</link>	
		<description>How can I run a web server on OS X without admin access? &lt;br /&gt;&lt;br /&gt; You&apos;ll just have to trust me on the reasons, but I want to to run a fully-functioning web server (or at least, one which can do dynamic pages in Perl or PHP) on OS X (Leopard) machines, without having the administrator password.&lt;br&gt;
&lt;br&gt;
Having it on a USB stick seems the most likely approach -- a web server is an application after all, and I won&apos;t be able to install new applications without the admin password, but I will be able to run an application from a stick.&lt;br&gt;
&lt;br&gt;
This guy says he&apos;s done it, but annoyingly, not how, and hasn&apos;t made the details available: &lt;a href=&quot;http://www.developmentseed.org/blog/2007/aug/03/getting-web-server-run-usb-drive&quot;&gt;http://www.developmentseed.org/blog/2007/aug/03/getting-web-server-run-usb-drive&lt;/a&gt;, and this guy says he&apos;s got a beta version with limited functionality but wants me to pay for it sight unseen: &lt;a href=&quot;http://www.server2go-web.de/features/mac.html&quot;&gt;http://www.server2go-web.de/features/mac.html&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
I reckon I&apos;m probably clueful enough to attempt my own tweaks to MAMPP given a few starting hints. Would it be incredibly difficult?&lt;br&gt;
&lt;br&gt;
Any other solutions or suggestions gratefully received of course.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.84165</guid>
		<pubDate>Wed, 20 Feb 2008 15:31:05 -0800</pubDate>
		<dc:creator>AmbroseChapel</dc:creator>
		
			<category>mac</category>
		
			<category>osx</category>
		
			<category>webserver</category>
		
			<category>apache</category>
		
			<category>php</category>
		
			<category>perl</category>
		
			<category>usbstick</category>
		
	</item> <item>
		<title>By: qvtqht</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1245785</link>	
		<description>I don&apos;t think you&apos;ll be able to run anything on port 80 (or any low ports) without admin access.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1245785</guid>
		<pubDate>Wed, 20 Feb 2008 15:45:53 -0800</pubDate>
		<dc:creator>qvtqht</dc:creator>
	</item><item>
		<title>By: flabdablet</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1245787</link>	
		<description>As long as you&apos;re not attempting to make it bind to a &lt;a href=&quot;http://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html&quot;&gt;privileged port&lt;/a&gt;, there should be no particular difficulty.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1245787</guid>
		<pubDate>Wed, 20 Feb 2008 15:47:37 -0800</pubDate>
		<dc:creator>flabdablet</dc:creator>
	</item><item>
		<title>By: Zed_Lopez</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1245802</link>	
		<description>What they said. Running it on the web default, port 80 (or any port under 1024) -- not possible. &lt;br&gt;
&lt;br&gt;
Running it on any unused port of your choosing &amp;gt;= 1024 -- no big thing.&lt;br&gt;
&lt;br&gt;
Anyone accessing it will have to use, e.g., http://www.example.com:8080/rogueserver/index.html&lt;br&gt;
&lt;br&gt;
And if you transferred all the same files you&apos;d have on the USB drive to the hard drive, it would work the same -- the installer wants admin rights to write to put it in parts of the filesystem ordinary users can&apos;t write to, but the web server can run just as well under a user directory. (This is assuming you can write to some user directory and that Mac OS X isn&apos;t up to something bizarre that&apos;s at odds with UNIX norms.)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1245802</guid>
		<pubDate>Wed, 20 Feb 2008 15:56:31 -0800</pubDate>
		<dc:creator>Zed_Lopez</dc:creator>
	</item><item>
		<title>By: singingfish</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1245829</link>	
		<description>You probably want &lt;a href=&quot;http://theexciter.com/articles/installing-lighttpd-on-osx&quot;&gt;lighttpd&lt;/a&gt; or &lt;a href=&quot;http://nginx.net/&quot;&gt;nginx&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1245829</guid>
		<pubDate>Wed, 20 Feb 2008 16:25:12 -0800</pubDate>
		<dc:creator>singingfish</dc:creator>
	</item><item>
		<title>By: Mwongozi</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1245991</link>	
		<description>&lt;a href=&quot;http://sourceforge.net/projects/mamp&quot;&gt;MAMP&lt;/a&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1245991</guid>
		<pubDate>Wed, 20 Feb 2008 19:47:51 -0800</pubDate>
		<dc:creator>Mwongozi</dc:creator>
	</item><item>
		<title>By: AmbroseChapel</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1246022</link>	
		<description>Mwongozi -- MAMP, which I mentioned in the OP, is not able to run off a USB key, and it&apos;s not possible to install or run it without admin access. So, not a very helpful answer.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1246022</guid>
		<pubDate>Wed, 20 Feb 2008 20:15:17 -0800</pubDate>
		<dc:creator>AmbroseChapel</dc:creator>
	</item><item>
		<title>By: AmbroseChapel</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1246029</link>	
		<description>Everyone else, thank you for your help ... more detail please? &lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Zed_Lopez&lt;/strong&gt;, are you saying &quot;just install MAMP on a computer where you do have access, then move its folders wholesale to the key, move the key to the non-admin computer and start it up&quot;? I guess I could try it, but from my first link (developmentseed), it seems like the developers took quite a bit of time getting it to &quot;play nice&quot;. &lt;br&gt;
&lt;br&gt;
I&apos;m asking this question because to me, that seems very unlikely to work. &lt;br&gt;
&lt;br&gt;
Same for &lt;strong&gt;singingfish&lt;/strong&gt;, are you suggesting the same thing? Install on a computer where I can &lt;em&gt;su root&lt;/em&gt;, copy to USB drive, run on a computer where I can&apos;t?&lt;br&gt;
&lt;br&gt;
Or can I install them somehow directly to the key?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1246029</guid>
		<pubDate>Wed, 20 Feb 2008 20:25:33 -0800</pubDate>
		<dc:creator>AmbroseChapel</dc:creator>
	</item><item>
		<title>By: AmbroseChapel</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1246043</link>	
		<description>I&apos;ve done a bit of looking at MAMP, lighthttpd and nginx, and they all need admin access to run, even on a local install. So even if I could install to a USB drive, it doesn&apos;t look like I could run the server. &lt;br&gt;
&lt;br&gt;
Or is that just a matter of housekeeping stuff like where it writes its log files? If I can redirect its logs to a world-writeable location, might it run when started as a non-admin user?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1246043</guid>
		<pubDate>Wed, 20 Feb 2008 20:47:15 -0800</pubDate>
		<dc:creator>AmbroseChapel</dc:creator>
	</item><item>
		<title>By: singingfish</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1246184</link>	
		<description>well with lighttpd you&apos;ll be doing:&lt;br&gt;
&lt;br&gt;
$ export $LOCATION= ~/lighty # or /Volumes/myusbstick/lighty or whatever&lt;br&gt;
~/Desktop/lighttpd-1.4.18$ mkdir $LOCATION&lt;br&gt;
~/Desktop/lighttpd-1.4.18$ ./configure --prefix=$LOCATION&lt;br&gt;
~/Desktop/lighttpd-1.4.18$ make&lt;br&gt;
~/Desktop/lighttpd-1.4.18$ make install&lt;br&gt;
~/Desktop/lighttpd-1.4.18$ cd $LOCATION&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
save the following  as lighty.conf in $LOCATION &lt;br&gt;
&lt;br&gt;
server.modules = (&lt;br&gt;
    &quot;mod_access&quot;,&lt;br&gt;
    &quot;mod_fastcgi&quot;,&lt;br&gt;
    &quot;mod_accesslog&quot;&lt;br&gt;
)&lt;br&gt;
server.document-root = &quot;/tmp&quot;&lt;br&gt;
&lt;br&gt;
server.errorlog    = &quot;/tmp/error.log&quot;&lt;br&gt;
accesslog.filename = &quot;/tmp/access.log&quot;&lt;br&gt;
&lt;br&gt;
server.bind = &quot;127.0.0.1&quot;&lt;br&gt;
server.port = 1025&lt;br&gt;
&lt;br&gt;
$LOCATION/$ ./sbin/lighttpd -f lighty.conf&lt;br&gt;
&lt;br&gt;
actually I&apos;m getting some dynamic library error with a fresh compile, but I do have an earlier version of lighttpd running as a normal user (lighttpd-1.4.13) on the same machine, so it is possible.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1246184</guid>
		<pubDate>Thu, 21 Feb 2008 02:14:18 -0800</pubDate>
		<dc:creator>singingfish</dc:creator>
	</item><item>
		<title>By: AmbroseChapel</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1246209</link>	
		<description>That&apos;s great, &lt;strong&gt;singingfish&lt;/strong&gt;. Thanks so much for all the detail. I&apos;m getting the same kind of error myself with the current version. It definitely looks like it&apos;s possible anyway.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1246209</guid>
		<pubDate>Thu, 21 Feb 2008 03:55:54 -0800</pubDate>
		<dc:creator>AmbroseChapel</dc:creator>
	</item><item>
		<title>By: Zed_Lopez</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1246524</link>	
		<description>&lt;i&gt;Zed_Lopez, are you saying &quot;just install MAMP on a computer where you do have access, then move its folders wholesale to the key, move the key to the non-admin computer and start it up&quot;?&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
Sadly, no. I was just saying that if you had it running on a USB drive, it&apos;d be easy to get from there to running it on the hard drive. But getting it into a state where it could run from either could be difficult if all you had to work with was an installer that assumed admin access.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1246524</guid>
		<pubDate>Thu, 21 Feb 2008 10:33:17 -0800</pubDate>
		<dc:creator>Zed_Lopez</dc:creator>
	</item><item>
		<title>By: singingfish</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1246710</link>	
		<description>well I had a go with a similar process with nginx and it was faster to compile.  I tweaked the sample config file so that it was running on port 1024 and tada I got the &quot;Welcome to nginx&quot; message.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1246710</guid>
		<pubDate>Thu, 21 Feb 2008 12:50:44 -0800</pubDate>
		<dc:creator>singingfish</dc:creator>
	</item><item>
		<title>By: AmbroseChapel</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1247053</link>	
		<description>And I&apos;ve done the same. I now have nginx running off a thumb drive, all installed from a non-admin account. Proof of concept, although I can see there&apos;s lots of tweaking ahead. &lt;br&gt;
&lt;br&gt;
Thanks for your help.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1247053</guid>
		<pubDate>Thu, 21 Feb 2008 16:46:47 -0800</pubDate>
		<dc:creator>AmbroseChapel</dc:creator>
	</item><item>
		<title>By: AmbroseChapel</title>
		<link>http://ask.metafilter.com/84165/How-can-I-run-a-web-server-on-OS-X-without-admin-access#1247260</link>	
		<description>In the end I went with &lt;strong&gt;lighttpd&lt;/strong&gt;, because it was easier to get both Perl and PHP support working, after judicious editing of the config file -- &lt;strong&gt;nginx &lt;/strong&gt;doesn&apos;t do Perl CGI out of the box at all, you have to write wrappers for it.&lt;br&gt;
&lt;br&gt;
I&apos;m still not sure I can run this particular install on the particular Mac where I need it, because the install on the USB drive was created on Panther, and some of the configuration may well be different on Leopard, but I&apos;m confident I can re-create the process on Leopard and have a working server on a stick.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84165-1247260</guid>
		<pubDate>Thu, 21 Feb 2008 20:35:44 -0800</pubDate>
		<dc:creator>AmbroseChapel</dc:creator>
	</item>
	</channel>
</rss>
