amitattri1987 0 Newbie Poster

Hi,
I'm a novice to apache server and its configuration for mod_python. As available on as availabe on http://www.thesitewizard.com/archive/addcgitoapache.shtml. (Please go through it. It is very simple but important to solve my query.)

Platform: Windows XP
Python 25 is installed as c:\python25\python.exe
Apache server 2.2 is installed in program files.

What I acheived is :
1. Installing mod_python through windows installer giving root dirs of python25 and apache 2.2 .
2. I've set root, document and cgi serving directories in httpd.conf file of apache.
3. I'm able to open html files through apache.

Problem : When I enter a filename with .py extension it browser shows the text printed in file and does not execute it.
I've never worked on apache or any other server.
Please Help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.