Hi.I'm using Slackware 10.0 and I 've compiled httpd server( 2.0.53) from tar.gz package. My Apache server is working successfully. Then I wanted to integrate mod_python(3.1.4). I 've compiled it too.(installation completed without any error.)But I couldn't make its Apache configuration.
Is there anybody who can tell me mod_python's Apache configuration step by step? I've read the manual carefully and made the changes as it was said in the
manual. There is a testing part in the manual that you can understand whether
your mod_python module works successfully. But it didn't worked.
Here is the testing part of the mod_python manual;
Make some directory that would be visible on your web site, for example, htdocs/test.
Add the following Apache directives, which can appear in either the main server configuration file, or .htaccess. If you are going to be using the .htaccess file, you will not need the <Directory> tag below (the directory then becomes the one in which the .htaccess file is located), and you will need to make sure the AllowOverride directive applicable to this directory has at least FileInfo specified. (The default is None, which will not work.)
AddHandler mod_python .py
(Substitute /some/directory above for something applicable to your system, usually your Apache ServerRoot)
At this time, if you made changes to the main configuration file, you will need to restart Apache in order for the changes to take effect.
Edit mptest.py file in the htdocs/test directory so that is has the following lines (be careful when cutting and pasting from your browser, you may end up with incorrect indentation and a syntax error):
from mod_python import apache
Point your browser to the URL referring to the mptest.py; you should see "Hello World!". If you didn't - refer to the troubleshooting section next.
How can I run mod_python