[mod_python] [SPAM] mod python installation problem

Swati Mazumder swati at ibcs.in
Tue Sep 18 11:32:24 EDT 2007


Hi All,

My apache installation directory is /home/djtstdir/apachedj
I have created django project at location /home/djtstdir/djproject

Here is what I have done, the part of django configuration in apache configuration file
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule python_module modules/mod_python.so
#;
:
:
:
#add location directive
<location "/djproject/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE /home/djtstdir/djproject
        PythonDebug On
        PythonInterpreter djproject
</location>

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have modified urls.py to test a simple application, but its showing 404 error. Here is what I am getting in log file,-

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[Fri Sep 14 04:07:06 2007] [notice] mod_python: using mutex_directory /tmp
[Fri Sep 14 04:07:06 2007] [notice] Apache/2.2.4 (Unix) mod_python/3.3.1 Python/2.4.4 configured -- resuming normal operations
[Fri Sep 14 04:07:53 2007] [error] [client 220.226.82.78] File does not exist: /home/djtstdir/apachedj/htdocs/favicon.ico
[Fri Sep 14 04:09:22 2007] [error] [client 220.226.82.78] File does not exist: /home/djtstdir/apachedj/htdocs/now
[Fri Sep 14 04:09:23 2007] [error] [client 220.226.82.78] File does not exist: /home/djtstdir/apachedj/htdocs/favicon.ico
[Mon Sep 17 02:35:57 2007] [notice] Graceful restart requested, doing restart
[Mon Sep 17 02:35:57 2007] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads.
[Mon Sep 17 02:35:57 2007] [notice] mod_python: using mutex_directory /tmp
[Mon Sep 17 02:35:57 2007] [notice] Apache/2.2.4 (Unix) mod_python/3.3.1 Python/2.4.4 configured -- resuming normal operations
[Mon Sep 17 02:36:10 2007] [notice] SIGHUP received.  Attempting to restart
[Mon Sep 17 02:36:10 2007] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads.
[Mon Sep 17 02:36:10 2007] [notice] mod_python: using mutex_directory /tmp
[Mon Sep 17 02:36:10 2007] [notice] Apache/2.2.4 (Unix) mod_python/3.3.1 Python/2.4.4 configured -- resuming normal operations
[Mon Sep 17 02:36:51 2007] [error] [client 220.226.23.45] File does not exist: /home/djtstdir/apachedj/htdocs/now
[Mon Sep 17 02:36:53 2007] [error] [client 220.226.23.45] File does not exist: /home/djtstdir/apachedj/htdocs/favicon.ico
[Mon Sep 17 02:37:14 2007] [error] [client 220.226.23.45] File does not exist: /home/djtstdir/apachedj/htdocs/now
[Mon Sep 17 02:37:36 2007] [error] [client 220.226.23.45] File does not exist: /home/djtstdir/apachedj/htdocs/now
[Mon Sep 17 02:37:37 2007] [error] [client 220.226.23.45] File does not exist: /home/djtstdir/apachedj/htdocs/favicon.ico
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Any idea what can be the problem.

Many Thanks,
Swati

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070918/8736f3ce/attachment-0001.html


More information about the Mod_python mailing list