[mod_python] [SPAM] hello world program problems

Mary Jane Boholst Mary.Boholst at iop.kcl.ac.uk
Wed Sep 13 04:08:03 EDT 2006


Graham Dumpleton wrote:
>
> On 12/09/2006, at 11:13 PM, Mary Jane Boholst wrote:
>
>> Jim Gallacher wrote:
>>> Please don't send HTML messages to the list.
>>>
>>> Mary Jane Boholst wrote:
>>>
>>>> Hi,<br>
>>>> mod_python does show in the apache error.log.<br>
>>>> I am using the httpd.conf file to configure the mod_python handler.
>>>
>>> Are you sure? There was no such configuration in the httpd.conf file 
>>> attached to your original message. Perhaps you could send the 
>>> snippet containing that part again (not the whole httpd.conf).
>>>
>>> Jim
>> Hi again,
>> Sorry about the html. The python handler snippet is as on the 
>> http://modpythin.org/live/current/doc-html/inst-testing.html:
>> LoadModule python_module /usr/lib/python2.4/site-packages/mod-python.so
>> <Directory /srv/www/htdocs/test>
>>    AddHandler mod_python .py
>>    PythonHandler mptest
>>    PythonDebug on
>> </Directory>
>> The only other thing that I can think that could be a problem is that 
>> I used the command apt-get install apache2-mod_python which perhaps 
>> dowloaded and installed a different package? Maybe I am just 
>> clutching at straws.
>
> Have you tried yet the alternate instructions at:
>
>   http://www.dscpl.com.au/articles/modpython-001.html
>
> that I sent you?
>
> These alternate instructions use a different means of configuring Apache
> and tell you what to check at each point when things don't go wrong. If
> you use the alternate instructions, it might help you to in turn work out
> why the current way you are doing it doesn't work.
>
> Graham
Thanks. I checked the alternate instructions you gave after I sent the 
other post and I think that this is working now. Thank you very much for 
your help. Now to finally start programming!
Cheers,
MJ


More information about the Mod_python mailing list