MoD Python (PSP on Apache windows)

DON'T post new tutorials here! Please use the "Pending Submissions" board so the staff can review them first.
Post Reply
User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

MoD Python (PSP on Apache windows)

Post by maboroshi »

You will need:

Apache2
Python25
Mod Python for Python25

Optional

MySQL
MySQLdb for python


Step 1#

Find the line DirectoryIndex in your apache config and add index.psp at the end

Step 2# Mod Python

Download Mod Python from http://apache.sunsite.ualberta.ca/httpd ... win/3.3.1/

Install it. It should find your Python install you may need to also give it the directory for Apache when it prompts you

Step 3# Configure Apache for Mod Python

Open up your Apache Configuration file once again and add these lines at the bottom (the very end of the file)

Code: Select all

LoadModule python_module modules/mod_python.so
AddHandler mod_python .psp .psp_
PythonHandler mod_python.psp
PythonDebug On
Reboot Apache (troubleshoot)

Enjoy

User avatar
computathug
Administrator
Administrator
Posts: 2693
Joined: 29 Mar 2007, 16:00
17
Location: UK
Contact:

Post by computathug »

Nice tut Mabs!!!

Think I will have to give this ago but with linux.

*off topic*

Google the title :wink:

No.1 8)

User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

yea

Post by maboroshi »

Yea I originally wrote the tutorial for Fly Ninja :-)

Post Reply