httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neha gupta <>
Subject [users@httpd] problem integrating apache,linux,python
Date Wed, 19 Oct 2005 07:57:19 GMT
i m trying to integrate python with apache on
linux.For this i m using mod_python.
I dont see any problem with the versions of
python,apache and mod_python i m using.
the versions i m using are 
apache version2.
mod_python v3.1.14
The problem is,when i m running my python script,after
starting apache ,it is showing me the code it has.

My error_log is showing the following message

[Tue Oct 18 19:01:06 2005] [notice] Apache/2.0.55
(Unix) mod_python/3.1.4 Python/2.4.2 configured --
resuming normal operations
[Tue Oct 18 19:01:06 2005] [info] Server built: Oct 17
2005 13:07:52
[Tue Oct 18 19:01:06 2005] [debug] prefork.c(956):
AcceptMutex: sysvsem (default: sysvsem)

the access_log is showing this message: - - [18/Oct/2005:19:01:14 +0530] "GET
/apache_pb.gif HTTP/1.1" 200 2326 - - [18/Oct/2005:19:01:19 +0530] "GET
/test/ HTTP/1.1" 200 110

from the python script,i m returning an apache.OK ,so
i think it goin on fine,as i m getting 200i.e the hhtp
processing is goin on fine.

I have made the required changes to the httpd.conf
LoadModule python_module

DocumentRoot "/home/ngupta/Apache2/htdocs"

<Directory />
    AllowOverride FileInfo

I m using a .htaccess file placed under
The .htaccess file has the following code
AddHandler mod_python .py
      PythonHandler mptest
      PythonDebug On
where mptest is python script and is as follows
from mod_python import apache
def handler(req):
        return apache.OK
so if anyone knows where the problem lies ,please tell
Neha gupta

Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message