niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » python
How to enable Python Scripts with MS IIS Web Server?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
jb
*nix forums beginner


Joined: 04 Feb 2005
Posts: 1

PostPosted: Fri Feb 04, 2005 7:40 pm    Post subject: Re: How to enable Python Scripts with MS IIS Web Server? Reply with quote

hi,

you should first install win32all :
http://starship.python.net/crew/mhammond/

next, 2 ways 2 proceed, but the first is the easier :

you make a "test.asp" page in the folder

at the top, you write <@Language=Python%>

a line below : <%Response.Write("Hello World")%>

try if the page works well. if it works then your python/iis install is
ok

the second way is to keep the .py extension and to associate it with the
python executable

http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B276494

hope this helps


juju



<syed_saqib_ali@yahoo.com> a écrit dans le message de news:
1107531390.688583.231970@l41g2000cwc.googlegroups.com...
Quote:



Hi. I have MS Windows Server 2003, Enterprise Edition.
It has MS Management Console 2.0, Version 5.2
and IIS Manager 6.0



I have a directory called "myDirs". Within this directory are 2 files:
1) index.pl (a perl script)
2) index.py (a python script whose first line is
"#!C:\Python21\pythonw.exe")

The webserver is listening on port 8080.

When I point my browser to http://localhost:8080/myDirs/index.pl, it
works... I see the output of the perl script.

HOWEVER,
When I point my browser to http://localhost:8080/myDirs/index.py, it
simply shows the python file as text. It doesn't interpret it at all.

How Can I get it to interpret the python file using the interpreter and
display the output in the browser?

Please explain each step in careful/excruciating detail because I'm a
windows Newbie.


-Saqib Ali
Back to top
syed_saqib_ali@yahoo.com
*nix forums beginner


Joined: 04 Feb 2005
Posts: 2

PostPosted: Fri Feb 04, 2005 2:36 pm    Post subject: How to enable Python Scripts with MS IIS Web Server? Reply with quote

Hi. I have MS Windows Server 2003, Enterprise Edition.
It has MS Management Console 2.0, Version 5.2
and IIS Manager 6.0



I have a directory called "myDirs". Within this directory are 2 files:
1) index.pl (a perl script)
2) index.py (a python script whose first line is
"#!C:\Python21\pythonw.exe")

The webserver is listening on port 8080.

When I point my browser to http://localhost:8080/myDirs/index.pl, it
works... I see the output of the perl script.

HOWEVER,
When I point my browser to http://localhost:8080/myDirs/index.py, it
simply shows the python file as text. It doesn't interpret it at all.

How Can I get it to interpret the python file using the interpreter and
display the output in the browser?

Please explain each step in careful/excruciating detail because I'm a
windows Newbie.


-Saqib Ali
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 1:07 am | All times are GMT
navigation Forum index » Programming » python
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Transfer qmail email account to postfix server tallman Postfix 0 Thu Jun 05, 2008 12:43 pm
No new posts NFS server on Solaris 10 gurgle Solaris 0 Tue Sep 04, 2007 7:05 pm
No new posts Help required for configuring the VPN Server in Linux SHERDIL security 0 Sun Nov 19, 2006 2:22 pm
No new posts Need Help with Program in Perl on a Netware Server fhadzocos@gmail.com Perl 3 Fri Jul 21, 2006 1:57 pm
No new posts Problem while accessing 64 bit Server thru 32 bit client Ganesh Server 0 Fri Jul 21, 2006 1:40 pm

Myspace Layouts | Free Ringtones | Debt Consolidation | Loans | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 1.0038s ][ Queries: 20 (0.8981s) ][ GZIP on - Debug on ]