I'm using Home windows 7, Apache 2.28 and Webmaster Server Suite for my server.

All files are saved under C:/www/vhosts

I downloaded Portable Python 2.7 from http://www.portablepython.com/ and also have installed it to

C:/www/portablepython

I am looking for mod_wsgi to have it to utilize 2.7 - but how do i do that?

The main reason I am doing all of this is to buy a fundamental site running that utilizes Python coding, having a view to presenting Django, in the same manner that http://www.heart.co.uk/westmids/ or http://www.capitalfm.com/birmingham do. Clearly my website will not be as advanced as their own, however, you obtain the gist from it I am using Python/Django like a kind of Content management systems for any news/articles website.

Regardless, here's my code from C:/www/vhosts/localhost/testing.py:

#!/www/portablepython
print "Content-type: text/html"
print
print "<html><head>"
print ""
print "</head><body>"
print "Hello."
print "</body></html>"

This creates a 403 Forbidden error, i.e.:

You do not have permission to gain access to /testing.py about this server.

I adopted http://code.google.com/p/modwsgi/wiki/InstallationOnWindows but re-named modwsgi-version-number-datedownload.to modwsgi.so so did that create the mistake?

What should i do in order to prevent this re-occurring?

I made use of the Portable version for testing reasons, thinking will be able to just remove the folder, and that i can install again if required without contributing to atmosphere variables (I believe portable ones do that, correct me if I am wrong)?

What, if any changes should i make? Should i make sure they are towards the vhosts in httpd-vhosts.conf [my virtual hosts] or elsewhere?

Any assistance is appreciated I'll publish more because this situation evolves.

The script you've at C:/www/vhosts/localhost/testing.py is really a CGI script and never a WSGI script. Do as instructed for setting up mod_wsgi and exactly what a WSGI script apply for hello world need to look like at:

http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide

also, you need to consider utilizing a system install of python from python.org and pip+distribute+virtualenv to help keep contained python conditions for the different sites. This provides you with maximum portability.