<?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: running scripts on godaddy acount...</title>
	<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount/</link>
	<description>Comments on Ask MetaFilter post running scripts on godaddy acount...</description>
	<pubDate>Thu, 01 Jun 2006 00:13:37 -0800</pubDate>
	<lastBuildDate>Thu, 01 Jun 2006 00:13:37 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: running scripts on godaddy acount...</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount</link>	
		<description>Trying to run python and cgi scripts on a non-dedicated godaddy account. (ie, I dont have shell access). But my ftp program can transmit &apos;raw&apos; commands to the server. I uploaded a cgi script called &quot;pythontest.cgi&quot; (all this in the context of trying to install moinmoin on my godaddy account). I got the pythontest.cgi script from the moinmoin instructions on installing it. 
I do have python, supposedly, on my account (its in usr/bin/python). I&apos;m supposed to be able to run CGI scripts from the cgi folder (which is where it is now). I uploaded it in ASCII (as opposed to binary) as they told me to. Godaddy support hasnt been very useful beyond this point. 
My question is: how in the world do I execute &quot;pythontest.cgi&quot;? I tried putting it in the address bar as a url (with full path) in mozilla. Got an internal server error. 
Any ideas? Has anyone run scripts off a godaddy account? Has anyone installed a wiki on a non-dedicated godaddy account? 
Thanks...</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2006:site.39284</guid>
		<pubDate>Thu, 01 Jun 2006 00:12:06 -0800</pubDate>
		<dc:creator>jak68</dc:creator>
		
			<category>godaddy</category>
		
			<category>wiki</category>
		
			<category>scripts</category>
		
	</item> <item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606651</link>	
		<description>You have to give the script execute permission. Do you get shell access with GoDaddy? Log into your shell and do:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;chmod a+rx pythontest.cgi&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606651</guid>
		<pubDate>Thu, 01 Jun 2006 00:13:37 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606653</link>	
		<description>Oh, you don&apos;t have shell access. Can you give it execute permission with your FTP client? And why are you using GoDaddy for hosting? They&apos;re the worst host in the world. Go with someone good like Dreamhost or Hosting Matters or TextDrive (all available at quite cheap prices, with shell access and competent tech support).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606653</guid>
		<pubDate>Thu, 01 Jun 2006 00:14:59 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: kindall</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606656</link>	
		<description>Yeah, you need to give it execute permission with your FTP client, probably. &quot;Internal server error&quot; is usually a permission issue.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606656</guid>
		<pubDate>Thu, 01 Jun 2006 00:26:39 -0800</pubDate>
		<dc:creator>kindall</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606657</link>	
		<description>And yes, the way you execute it is by visiting the URL to it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606657</guid>
		<pubDate>Thu, 01 Jun 2006 00:26:48 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: gdf</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606669</link>	
		<description>I used &lt;a src=&quot;http://www.pmwiki.org/&quot;&gt;pmwiki&lt;/a&gt; on GoDaddy.  I untar&apos;ed the tarball locally, then uploaded the whole directory tree to my account (using Transmit on Mac OS X).  There are some inconveniences but it does work.  &lt;br&gt;
&lt;br&gt;
Pmwiki is pure PHP which is all I have on my account since it is the lowest cost deal GoDaddy offers.  Their tech support is usually rather clueless although they really do try.  The wiki is private or I&apos;d post a URL.  It works fine.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606669</guid>
		<pubDate>Thu, 01 Jun 2006 00:54:27 -0800</pubDate>
		<dc:creator>gdf</dc:creator>
	</item><item>
		<title>By: jak68</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606671</link>	
		<description>hi all - yes, i did &apos;chmod&apos; via the ftp program, so it does have execute permission. Anything else you can think of that might be wrong? &lt;br&gt;
&lt;br&gt;
I imagine a php wiki might work better; moinmoin happens to be python...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606671</guid>
		<pubDate>Thu, 01 Jun 2006 01:01:52 -0800</pubDate>
		<dc:creator>jak68</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606683</link>	
		<description>Open your local copy of the python cgi file and look at the shebang line (&lt;code&gt;#!&lt;/code&gt;) does it point to the correct location of python on your server? It should look like &lt;code&gt;#!/usr/bin/python&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606683</guid>
		<pubDate>Thu, 01 Jun 2006 01:30:23 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606684</link>	
		<description>(In a text editor, in case that wasn&apos;t obvious.)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606684</guid>
		<pubDate>Thu, 01 Jun 2006 01:30:54 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: jak68</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606687</link>	
		<description>hi - yes, i played around with the shebang line. Godaddy says the path to python is as you have it, ie, &quot;/usr/bin/python&quot;. I tried that, and a few others for good measure...&lt;br&gt;
ANything else you guys can think of that I could check? &lt;br&gt;
I double checked the path, that seems fine too...&lt;br&gt;
Can you think of anything i could ask the tech support folks?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606687</guid>
		<pubDate>Thu, 01 Jun 2006 01:36:59 -0800</pubDate>
		<dc:creator>jak68</dc:creator>
	</item><item>
		<title>By: jak68</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606693</link>	
		<description>by the way i did successfully run a simple php script. The pythontest.cgi script I&apos;m trying to run, looks like this:&lt;br&gt;
&lt;br&gt;
#!/usr/bin/python&lt;br&gt;
echo Content-Type: text/plain&lt;br&gt;
echo&lt;br&gt;
echo &quot;Your web server is running as:&quot;&lt;br&gt;
id&lt;br&gt;
echo &quot;CGI scripts work&quot;&lt;br&gt;
echo &quot;Now we try to invoke Python interpreters and get their versions:&quot;&lt;br&gt;
echo &quot;Your default version of python is:&quot;&lt;br&gt;
python -V 2&amp;gt;&amp;amp;1&lt;br&gt;
echo &lt;br&gt;
echo &quot;Available versions of python are:&quot;&lt;br&gt;
python2.2 -V 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; which python2.2&lt;br&gt;
python2.3 -V 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; which python2.3&lt;br&gt;
python2.4 -V 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; which python2.4&lt;br&gt;
python2.5 -V 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; which python2.5&lt;br&gt;
echo &quot;Finished.&quot;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606693</guid>
		<pubDate>Thu, 01 Jun 2006 01:47:50 -0800</pubDate>
		<dc:creator>jak68</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606701</link>	
		<description>Do you have access to your server error logs? Look in there and try to figure out what error the web server is actually giving. 500 Internal Server Error is kind of a generic catch-all; a more detailed error will be in the error log with the timestamp of when it tried to satisfy the request.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606701</guid>
		<pubDate>Thu, 01 Jun 2006 02:28:32 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: jak68</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606717</link>	
		<description>server logs report this: &lt;br&gt;
File &quot;/home/content/j/a/k/jak68/html/cgi/pythontest.cgi&quot;, line 2&lt;br&gt;
    echo content-type: text/html&lt;br&gt;
               ^&lt;br&gt;
SyntaxError: invalid syntax&lt;br&gt;
[Thu Jun  1 03:15:34 2006] [error] [client 24.199.99.203] Premature end of script headers: /var/chroot/home/content/j/a/k/jak68/html/cgi/pythontest.cgi&lt;br&gt;
&lt;br&gt;
I suppose I&apos;ll ask this at a python bulletin board or forum. Thanks for your help; and if you can think of anything else I&apos;d be happy to hear it! ;)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606717</guid>
		<pubDate>Thu, 01 Jun 2006 03:15:59 -0800</pubDate>
		<dc:creator>jak68</dc:creator>
	</item><item>
		<title>By: pompomtom</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606730</link>	
		<description>I don&apos;t know shit-all about python, so smack me down if that is appropriate, but shouldn&apos;t the content type string have quotes around it?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606730</guid>
		<pubDate>Thu, 01 Jun 2006 03:54:18 -0800</pubDate>
		<dc:creator>pompomtom</dc:creator>
	</item><item>
		<title>By: neustile</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#606780</link>	
		<description>Um.. that pythontest.cgi is not python code. It&apos;s a shell script. Instead of #!/usr/bin/python up top, make it #!/bin/sh, or whatever godaddy&apos;s shells are.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-606780</guid>
		<pubDate>Thu, 01 Jun 2006 05:55:18 -0800</pubDate>
		<dc:creator>neustile</dc:creator>
	</item><item>
		<title>By: jak68</title>
		<link>http://ask.metafilter.com/39284/running-scripts-on-godaddy-acount#607238</link>	
		<description>Neustile - brilliant!!! Thanks so much, that did it. ;) &lt;br&gt;
Yep, its my first wiki, so I&apos;m stumbling through it... ;)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2006:site.39284-607238</guid>
		<pubDate>Thu, 01 Jun 2006 11:30:12 -0800</pubDate>
		<dc:creator>jak68</dc:creator>
	</item>
	</channel>
</rss>
