On Jan 8, 5:31 pm, Tim Roberts <[EMAIL PROTECTED]> wrote: > Gowri <[EMAIL PROTECTED]> wrote: > > >I am new to Python and am trying to setup Apache to serve Python using > >mod_python. I'm using a Windows XP box. here is a list of steps i > >followed for the installation: > > >1. Installed Apache 2.2.6 > >2. Installed Python 2.5.1 > >3. Installedmod_python3.3.1 > > >I then included the line > >LoadModule python_module modules/mod_python.so in httpd.conf > > >I had this one line python file (print "Hello") in htdocs of Apache. > > Did you put it in a file called "hello.py"? Did you create an AddHandler > for .py files? Did you create a PythonHandler referring to hello.py?
And did you (OP) read the mod_python documentation enough to know that 'print "Hello" is in no way going to work with mod_python. You cannot just throw an arbitrary bit of Python code in a file using 'print' statements and it will somehow magically work. You need to write your code to the mod_python APIs. Graham -- http://mail.python.org/mailman/listinfo/python-list