Jump to content

Recommended Posts

Posted

I try to use python without success - It always give me 500 internal error.

 

This is test script:

http://karak.heliohost.org/cgi-bin/test.cgi

 

It is just:

#!/usr/bin/python

print "Content-Type: text/plain;charset=utf-8"

print "Hello World"

 

What I have to do for it to work??

 

I already tried adding

 

AddHandler python-program .py

 

to .htaccess file in cgi-bin folder and using Apache Handler option in cPanel,

 

If I set up account like that - .py files are treated as text files.

 

I also tried adding

"Options +ExecCGI

AddHandler cgi-script .py"

as suggested on several sites, but then it only shows internal error 500.

 

I really want Python to work:( Please help.

Posted

No, but how can they can help me if they don't know server configuration? I read how-to on python website and forums and it should work like this.

Posted

You'd be suprised what the python folk know. Anyways, even if it's an issue on our end, it can't be resolved at the moment because the server administrator is AWOL.

Posted

For now Perl works on my account, but only when shebang line is set -w.

"#!/usr/bin/perl -w"

 

Python and Ruby refuse to work with my account settings :(

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...