linuxun and gsaxton,
wow, that was a while ago (june!). If I remember, I didnt get very far into the moinmoin install after all, because at some point in the install, I needed to have command line access at the server, and I was on a "shared hosting account" at godaddy (the cheap ones). Shared...
er, never mind! Turns out this is not python but just a shell script, so the shebang at the top had to read #!/bin/sh. Changing that fixed it...
thanks anyway!
j
hi guys - mystery solved!
Turns out its not a python script at all, its a "shell script" (whats the difference? I didnt think "shell" was a language!). Anyway, therefore, the shebang at the top had to read #!/bin/sh. Fixing that fixed it; works fine now!
yep, its my first website and I'm...
hi paul,
tried it, same error:
-----
File "/home/content/j/a/k/jak68/html/cgi/pythontest.cgi", line 2
echo "Content-Type: text/html\n\n"
^
SyntaxError: invalid syntax
[Thu Jun 1 03:30:04 2006] [error] [client 24.199.99.203] Premature end of script...
hi all - i'm having trouble running cgi scripts on godaddy and godaddy support hasnt been helpful at all. I'm hoping someone here knows what the problem is.
1. I'm trying to install moinmoin (wiki) on my godaddy account.
2. my godaddy account is non-dedicated (ie, i dont have shell acess, but...
server error log reports the following:
File "/home/content/j/a/k/jak68/html/cgi/pythontest.cgi", line 2
echo content-type: text/html
^
SyntaxError: invalid syntax
[Thu Jun 1 03:15:34 2006] [error] [client 24.199.99.203] Premature end of script headers...
moinmoin doesnt have much support for what I was looking for, which was help in installing it to a shared server like my godaddy account (where i dont have shell access); though I believe it should be possible to install it anyway using ftp and ftp 'raw commands'). But in terms of installing it...
FYI, the file I'm trying to run, looks like this: (its called "pythontest.cgi".)
#!/usr/bin/python
print "content-type: text/html\n\n"
echo Content-Type: text/plain
echo
echo "Your web server is running as:"
id
echo "CGI scripts work"
echo "Now we try to invoke Python interpreters and get their...
hi - i 'enabled' the error logs in godaddy (they're so silly). It takes an hour before they become "active" (and then the error logs become "disabled" again, automatically, after 24 hours. (how weird). Anyway, so I will try checking the error logs in an hour when they are "active".
Thanks for...
hi - thanks for responding - I did change the permissions to 755, i forgot to mention.
The path is correct, i double checked...
anything else you can think of that might be wrong?
hi all - i'm having trouble running cgi scripts on godaddy and godaddy support hasnt been helpful at all. I'm hoping someone here knows what the problem is.
1. I'm trying to install moinmoin (wiki) on my godaddy account.
2. my godaddy account is non-dedicated (ie, i dont have shell acess, but...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.