Re: Apache & Python 500 Error

2005-02-03 Thread Jeremy Bowers
On Thu, 03 Feb 2005 13:55:13 +0100, Christian wrote: > from mod_python import apache > ^ > SyntaxError: invalid syntax > > > My test script: > #!/usr/bin/python > > print 'Content-Type: text/plain\r' > print '\r' > import os > print os.getcwd() For the quote of the error message, I'

Re: Apache & Python 500 Error

2005-02-03 Thread Peter van Kampen
On 2005-02-02, Christian <[EMAIL PROTECTED]> wrote: > Hello, > > i have an apache 1.3 server with python on debian. Python works fine but > the scripts wont´t work. > > This easy script i want to do on apache: > > #!/usr/bin/python > import os > os.getcwd() > > in apache config i have done this:

Re: Apache & Python 500 Error

2005-02-03 Thread Christian
Jeremy Bowers schrieb: But first, check your apache error log. Then you will know what your error is, too. Thanks for help, here is my error log: [Thu Feb 3 13:52:49 2005] [error] PythonHandler python: Traceback (most recent call last): [Thu Feb 3 13:52:49 2005] [error] PythonHandler python: F

Re: Apache & Python 500 Error

2005-02-02 Thread Jeremy Bowers
On Wed, 02 Feb 2005 10:28:46 +0100, Christian wrote: > Hello, > > i have an apache 1.3 server with python on debian. Python works fine but > the scripts wontÂt work. I know what your problem is. But first, check your apache error log. Then you will know what your error is, too. If you can't

Re: Apache & Python 500 Error

2005-02-02 Thread Fuzzyman
What does the error log report ? It is *possible* that you are getting an error 500 because your are not emitting valid headers. Try this instead : #!/usr/bin/python print 'Content-Type: text/plain\r' print '\r' import os print os.getcwd() Regards, Fuzzy http://www.voidspace.org.uk/python/in

Apache & Python 500 Error

2005-02-02 Thread Christian
Hello, i have an apache 1.3 server with python on debian. Python works fine but the scripts wont´t work. This easy script i want to do on apache: #!/usr/bin/python import os os.getcwd() in apache config i have done this: AddHandler python-program .py PythonHandler python Order allow