Jump to content

eliashas

Members
  • Posts

    10
  • Joined

  • Last visited

eliashas's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hm, yes. python is picky about whitespace because blocks aren't enclosed in brackets. But perl did't work either. php i haven't tried.
  2. I solved it! The scripts were made in Windows, so i ran the linux program dos2unix on them. now helloworld.py works. don't know why. Maybe this is a common problem?
  3. I have reposted this in Customer Service, where I think it belongs: http://www.helionet.org/index/topic/19684-yet-another-500-internal-server-error-reposted-in-correct-forum/page__hl__%2Binternal+%2Bserver+%2Berror__fromsearch__1
  4. Hello, world! Let me first of all say that I greatly appreciate the existence of Heliohost, a free, honest hosting provider with support for pure python 3.4. Just what I was looking for. Username: eliashas Domain: eliashasle.heliohost.org Server: Stevie I have created a web application in Python, which runs smoothly on my localhost, but does not load at all on heliohost. I have even reduced the complexity to a simple Hello world: http://eliashasle.heliohost.org/cgi-bin/helloworld.py: #!/usr/bin/python print("Content-Type: text/html;charset=utf-8\n\n") print("<html><body><p>Hello, world!</p></body></html>") test.pl does not work either: #!/usr/bin/perl print "Content-type: text/html\n\n"; print <<HTML; <html> <head> <title>A Simple Perl CGI</title> </head> <body> <h1>A Simple Perl CGI</h1> <p>Hello World</p> </body> HTML exit; 500 Internal server error, it seems. No more info found in the error log.
  5. env looks for 'python' in PATH variable (/usr/bin/ doesn't need to be in PATH to work) then looks in the standard /usr/bin. This works around situations where python is not installed in /usr but instead in /usr/local/ but /usr/local/bin is defined in PATH. env prints all currently defined environment variables. Thanks for the info. Does this mean that /usr/bin/env python is safe? By the way, I have rewritten and (hopefully) clarified the original post, and am hoping for new answers. Could this thread actually be off-topic here?
  6. Thanks for your reply. Well, sadly it didn't work with your suggested change either.
  7. Hello, world! Let me first of all say that I greatly appreciate the exsistence of Heliohost, a free, honest hosting provider with support for pure python 3.4. Just what I was looking for. I guess the following problem is a minor one. It gives me an opportunity to say hello. :-) I have created a web application in Python, which runs smoothly on my localhost, but does not load at all on heliohost. I have even reduced the complexity to a simple Hello world: http://eliashasle.heliohost.org/cgi-bin/helloworld.py Internal server error 500, it seems.
×
×
  • Create New...