[mod_python] Getting mptest.py to work

Johann Spies jspies at sun.ac.za
Wed Jan 19 05:40:40 EST 2005


On Wed, Jan 19, 2005 at 09:28:16PM +1100, Graham Dumpleton wrote:

> If you are configuring things in the .htaccess file, you do not need the
> <Directory> directive around the statements. Ie., use just:
> 
>   AddHandler mod_python .py
>   PythonHandler mptest
>   PythonDebug On
> 
> Start with making that change, 

Thanks.  I have made the change but there is no difference in
behaviour.

> if still no luck, restart Apache and look
> in its error log file to see what it produces on startup, you should see
> something like:
> 
>   [Wed Jan 19 21:25:33 2005] [notice] mod_python: Creating 32 session 
> mutexes based on 6 max processes and 25 max threads.
>   [Wed Jan 19 21:25:34 2005] [notice] Apache/2.0.51 (Unix) 
> mod_python/3.1.3 Python/2.3 configured -- resuming normal operations

This is what my error log is showing:

[Wed Jan 19 12:32:56 2005] [notice] SIGHUP received.  Attempting to
restart
[Wed Jan 19 12:32:57 2005] [notice] mod_python: Creating 32 session
mutexes based on 3 max processes and 25 max threads.
[Wed Jan 19 12:32:57 2005] [notice] Apache/2.0.52 (Debian GNU/Linux)
mod_python/3.1.3 Python/2.3.4 proxy_html/2.4 configured -- resuming
normal operations

There is no error message referring to mptest.py

Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "The LORD is my strength and song, and he is become my 
      salvation; he is my God, and I will prepare him an 
      habitation; my father's God, and I will exalt him."   
                       Exodus 15:2 


More information about the Mod_python mailing list