Jump to content

Apache to run .py file like .php file ( Mod_python )


joefazee

Recommended Posts

Hello,

i want to run a .py file  just the way we run .php file with apache, i have downloaded the windows installer for Mod_python and the Mod_python was created inside the Apache Modules directory but Apache was unable to load it.

 

My Apache version is:  2.2.4

Python Version is: 2.5.1

mod_python: 3.3.1

 

After the installation this was the last message:-

 

Important Note for Windows users, PLEASE READ!!!

 

        1. This script does not attempt to modify Apache configuration,

          you must do it manually:

 

          Edit C:/Program Files/Apache Software Foundation/Apache2.2\conf\httpd.conf,

          find where other LoadModule lines are and add this:

                LoadModule python_module modules/mod_python.so

 

        2. Now test your installation using the instructions at this link:

          http://www.modpython.org/live/current/doc-html/inst-testing.html

I have added the LoadModule python_module modules/mod_python.so to my apache configuration file.

i configure PHP and is working perfect.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.