Dedicated Windows Server Hosting Specialist LiveZilla Live Help
Sales: sales@databasemart.com
Support: support@databasemart.com
Phone: 409-877-4238



How To Install and Configure Python in Windows Server 2008/2003 (IIS 6.0 or 7.0)?

1. Install Python

Go to Python official website http://www.python.org/download/ and download the latest Windows installer (.msi). Follow the screen and install it.

2. Configure IIS Web Service Extensions

Open Start -> Administrative Tools > Internet Information Services (IIS) Manager. Click "Web Service Extensions" and add a new web service 'C:\Python25\python.exe -u "%s" "%s"'.

3. Configure Website to Enable Python

Go to website that you want to eanble Phyton. Right click the website and go to Properties > Home Directory > Configurations > Mappings. Add a new script mapping ".py" with 'C:\Python25\python.exe -u "%s" "%s"'.

4. Test Python

Write a test file test.py and test it out. Everything should work now.

        print
        print 'Status: 200 OK'
        print 'Content-type: text/html'
        print

        print '<HTML><HEAD><TITLE>Python Sample CGI</TITLE></HEAD>'
        print '<BODY>'
        print '<H1>This is a header</H1>'

        print '<p>' #this is a comment
        print 'See this is just like most other HTML'
        print '<br>'
        print '</BODY>'
    

5. Configure Control Panel (Optional)

If you have a control panel for your server, you may need to configure it as well. Below is a sample for Helm control panel.

Navigator

Other How-Tos

Express Windows Server

CPU: Intel Core 2 Duo E8400
CPU Speed: 3.00GHz
Cache: 6MB
RAM: 4GB RAM
Disk: 2x320GB SATA
RAID: RAID 1
Bandwidth: 1000GB
Windows 2008/2003: Free
IP Addresses: 8
Monthly: $149.00

Detail...

Standard Windows Server

CPU: Quad-Core Xeon E5410
CPU Speed: 2.33GHz
Cache: 12MB
RAM: 4GB RAM
Disk: 2x146GB SCSI
RAID: RAID 1
Bandwidth: 1500GB
Windows 2008/2003: Free
IP Addresses: 8
Monthly: $259.00

Detail...