if anyone else comes across this same problem, here's the deal:
the above is correct - kindof.
It assumes there's some built-in python module called "publisher". As of the mod_python I just built v3.3.1, that doesn't exist. There is, however, a built-in called "testhandler" that will spit back a lot of python info, kinda like phpinfo() in php if you're familiar. Otherwise, you can just enter in the name of your script (minus the .py) to test.
So, if you make a hello world mod_python program called "hello.py" in /local/htdocs/python, the test config for apache would look like:
Code:
<Directory "/local/htdocs/python">
AddHandler mod_python .py
PythonHandler hello
PythonDebug On
</Directory>
... or if you want a lot of generic python config info, change the above to:
Code:
<Directory "/local/htdocs/python">
AddHandler mod_python .py
PythonHandler mod_python.testhandler
PythonDebug On
</Directory>
Either way, go to
http://localhost/python/hello.py to see the output. For the former, it will should just spit out "hello world" (assuming your program is written correctly), for the latter it will spit out a giant table of info. If you get an internal server error message, something else is wrong.