Re: Apache2 + Python WITHOUT mod_pytho

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jorge Godoy

    Re: Apache2 + Python WITHOUT mod_pytho

    pistacchio wrote:
    Hi to all!
    How can i configure apache2 so that it processes all .py files with
    python _without_ using mod_python?
    I'm on Ubuntu 8.4.
    I have no idea about how to do that in Ubuntu.

    Use fcgi or wsgi for your Python scripts. There should be recipes around for your distribution.

    --
    Jorge Godoy <jgodoy@gmail.c om>

  • John Nagle

    #2
    Re: Apache2 + Python WITHOUT mod_pytho

    Jorge Godoy wrote:
    pistacchio wrote:
    >
    >Hi to all!
    >How can i configure apache2 so that it processes all .py files with
    >python _without_ using mod_python?
    >I'm on Ubuntu 8.4.
    >
    I have no idea about how to do that in Ubuntu.
    >
    Use fcgi or wsgi for your Python scripts. There should be recipes around for your distribution.
    Note that if you use FCGI, don't put your FCGI scripts in a directory
    enabled for CGI. Apache has a bias towards CGI, which is built in,
    and will use CGI to run your FCGI scripts. Slowly.

    John Nagle

    Comment

    Working...