Results 1 to 5 of 5

Thread: How to Run Python .py Program on Web ServeR?

  1. #1
    Join Date
    Aug 2012
    Beans
    28

    Unhappy How to Run Python .py Program on Web ServeR?

    Hi,
    I can run Python program (xx.py) in my Ubuntu through Terminal.
    Similarly, how can we run our Python program on Web Server?

    The task is that, it listens the Client request & responds according to them.
    Here,Python Program acts as a Server side Scripting for our coding.
    So,it will be helpful if anybody suggests how to run Or Initialise the Server .py Python program on Web server.

  2. #2
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,484

    Re: How to Run Python .py Program on Web ServeR?

    Search "CGI Python"

  3. #3
    Join Date
    Aug 2012
    Beans
    28

    Re: How to Run Python .py Program on Web ServeR?

    Please look at this : http://fragments.turtlemeat.com/pythonwebserver.php

    Here they are running webserver.py in LocalHost.
    similarly can i run it in my web site??

    Please Help!

  4. #4
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,484

    Re: How to Run Python .py Program on Web ServeR?

    It looks you ignored my advice, so I'll now unsubscribe from this thread.

    Good luck.

  5. #5
    Join Date
    Jun 2008
    Location
    Tennessee
    Beans
    3,421

    Re: How to Run Python .py Program on Web ServeR?

    It's hard to understand exactly what you are asking, but if you want to run a python http service:

    - You can set up some WSGI framework like Flask, CherryPy or Web.Py behind apache with mod_wsgi
    - You can use a library like twisted to implement a simple http service directly

    Really depends on what you're actually writing.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •