installing python on a server?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Salerno

    #1

    installing python on a server?

    Can anyone tell me how complicated it might be to install Python on my
    server so I can use it for web apps? Is it a one-time process, or
    something to maintain?

    Thanks.
  • Rene Pijlman

    #2
    Re: installing python on a server?

    John Salerno:[color=blue]
    >Can anyone tell me how complicated it might be to install Python on my
    >server so I can use it for web apps?[/color]

    2 on a scale from 1 to 10.
    [color=blue]
    >Is it a one-time process, or something to maintain?[/color]

    Both :-)

    I installed Python 2.2 - 2.4 from source on Linux with no problem
    whatsoever. I now plan about 5 minutes installation time per new release,
    that's 2 minutes to make coffee, 2 minutes to skim the release notes and
    README and 1 minute to watch ./configure; make; make install do it's
    magic.

    There are some details to watch out for, such as having the required
    libraries and include files around before installation, to enable specific
    functionality (e.g. SSL support in socket). But that's no big deal.

    --
    René Pijlman

    Comment

    • John Salerno

      #3
      Re: installing python on a server?

      Rene Pijlman wrote:[color=blue]
      > John Salerno:[color=green]
      >> Can anyone tell me how complicated it might be to install Python on my
      >> server so I can use it for web apps?[/color]
      >
      > 2 on a scale from 1 to 10.
      >[color=green]
      >> Is it a one-time process, or something to maintain?[/color]
      >
      > Both :-)
      >
      > I installed Python 2.2 - 2.4 from source on Linux with no problem
      > whatsoever. I now plan about 5 minutes installation time per new release,
      > that's 2 minutes to make coffee, 2 minutes to skim the release notes and
      > README and 1 minute to watch ./configure; make; make install do it's
      > magic.
      >
      > There are some details to watch out for, such as having the required
      > libraries and include files around before installation, to enable specific
      > functionality (e.g. SSL support in socket). But that's no big deal.
      >[/color]

      Hmm, sounds easy, yet I don't know where to start. What do I actually
      use to install it onto the server? I've never dealt with server stuff
      before, so I might not be familiar with the terminology.

      Comment

      • Renato

        #4
        Re: installing python on a server?

        You mentioned using python for web apps: with which framework?
        (TurboGears, CherryPy, Subway, Django, whatever) Or only for cgi?

        With which web server? (Apache, Twisted, Zope, etc.)

        On which linux platform? (Slackware, Debian, Fedora/RedHat, Suse, etc)

        I think you'll have to think about other questions before.

        On systems with package management (pretty much all of them, except
        Slack) install is a matter of a few commands. And you can automate it,
        obviously.

        --
        bye,
        Renato

        Comment

        • Rene Pijlman

          #5
          Re: installing python on a server?

          John Salerno:[color=blue]
          >Hmm, sounds easy, yet I don't know where to start.[/color]

          try:
          browser.browse(http://www.python.org/download/)
          package = download(yourPl atform)
          package.unpack( )
          exec(README.rea d())
          except:
          post specifics

          --
          René Pijlman

          Comment

          • 3c273

            #6
            Re: installing python on a server?

            "Renato" <renato.ramonda @gmail.com> wrote in message
            news:1139610715 .439681.185510@ g44g2000cwa.goo glegroups.com.. .
            -snip-[color=blue]
            > On systems with package management (pretty much all of them, except
            > Slack) install is a matter of a few commands. And you can automate it,
            > obviously.[/color]

            Slackware has package management, (pkgtool, installpkg, removepkg,
            upgradepkg), it just doesn't do dependency checking.

            Louis


            Comment

            • John Salerno

              #7
              Re: installing python on a server?

              Renato wrote:[color=blue]
              > You mentioned using python for web apps: with which framework?
              > (TurboGears, CherryPy, Subway, Django, whatever) Or only for cgi?
              >
              > With which web server? (Apache, Twisted, Zope, etc.)
              >
              > On which linux platform? (Slackware, Debian, Fedora/RedHat, Suse, etc)
              >
              > I think you'll have to think about other questions before.
              >
              > On systems with package management (pretty much all of them, except
              > Slack) install is a matter of a few commands. And you can automate it,
              > obviously.
              >[/color]

              Yikes, that's all the stuff I don't know. Maybe this is over my head
              right now.

              Comment

              • Terry Hancock

                #8
                Re: installing python on a server?

                On Fri, 10 Feb 2006 20:22:07 GMT
                John Salerno <johnjsal@NOSPA Mgmail.com> wrote:[color=blue]
                > Can anyone tell me how complicated it might be to install
                > Python on my server so I can use it for web apps? Is it a
                > one-time process, or something to maintain?[/color]

                Installing Python on a server is really, really easy. At
                least it is if you have root privileges and a reasonably
                well-known platform to install on.

                *USING* the Python installation for web applications is a
                bit more complicated -- you have many choices about how to
                do that.

                For my money, the easy way if you are mostly wanting to make
                web applications is to use Zope. It has a big up-front
                learning curve, but once you get to know it, maintaining
                scripts becomes trivially easy to do.

                If you have other constraints on your server, or you really
                just want a static site with a few dynamic elements, you
                might be better served with a lighter-weight package than
                Zope, and there's maybe a dozen different ones to choose
                from. Easier to learn, but probably more work in the long
                run if you have to do a lot of script work on your site.

                --
                Terry Hancock (hancock@Anansi Spaceworks.com)
                Anansi Spaceworks http://www.AnansiSpaceworks.com

                Comment

                • Peter Hansen

                  #9
                  Re: installing python on a server?

                  John Salerno wrote:[color=blue]
                  > Can anyone tell me how complicated it might be to install Python on my
                  > server so I can use it for web apps? Is it a one-time process, or
                  > something to maintain?[/color]

                  I'm not sure what you would expect to maintain. Do you expect some kind
                  of "bit-rot" to occur, requiring you to periodically rewrite files
                  in-place to refresh them (ala "core memory" of ages past)? ;-)

                  Generally speaking one needs to maintain software only to upgrade or
                  reconfigure it (e.g. adding a new package that you'd like to start using
                  in your web apps).

                  -Peter

                  Comment

                  • John Salerno

                    #10
                    Re: installing python on a server?

                    Dennis Lee Bieber wrote:[color=blue]
                    > On Sat, 11 Feb 2006 01:02:46 -0500, John Salerno
                    > <johnjsal@NOSPA Mgmail.com> declaimed the following in comp.lang.pytho n:
                    >[color=green]
                    >> Yikes, that's all the stuff I don't know. Maybe this is over my head
                    >> right now.[/color]
                    >
                    > Let's start with something simple then... Do you have admin (root)
                    > privileges on this server machine -- or is it a machine belonging to
                    > some ISP and you are hoping to add Python/CGI capability?[/color]

                    I guess it might be the latter. What I want is to add Python capability
                    to the server where my website is running, so that I can write Python
                    web apps and incorporate them into my HTML files.

                    Comment

                    • John Salerno

                      #11
                      Re: installing python on a server?

                      Dennis Lee Bieber wrote:[color=blue]
                      > On Sat, 11 Feb 2006 14:53:38 -0500, John Salerno
                      > <johnjsal@NOSPA Mgmail.com> declaimed the following in comp.lang.pytho n:
                      >[color=green]
                      >> I guess it might be the latter. What I want is to add Python capability
                      >> to the server where my website is running, so that I can write Python
                      >> web apps and incorporate them into my HTML files.[/color]
                      >
                      > Unfortunately then, you have to ask the owners of the server
                      > hardware if /they/ will give you that capability. (If you own the server
                      > then we are back to the first side -- you need admin/root access to
                      > install/configure the webserver to allow Python)
                      >
                      > Many ISP's basic (home user, say) accounts are lucky to allow
                      > anything more complex than a hit-counter. Netcom
                      > (->Mindspring->Earthlink) used to have a scheme by which one could
                      > create data entry forms; the submit button had to be set to a
                      > pre-defined (ISP supplied action) which did nothing more than package
                      > all the CGI field information into an email, and send the email to a
                      > user-defined email address. There was no instantaneous feedback possible
                      > (unless one had the ability to read the email with a program, perform
                      > the updates locally, and upload a response to the website in time for a
                      > timed refresh to find the page).
                      >
                      > The next step up tends to be sites built using things like
                      > Zope/CMF/Plone -- but even those servers require pure Python logic to be
                      > "installed" as a "product"; and only certain accounts have that
                      > privilege -- others are restricted to things like Zope's DTML, TAL, etc.
                      > templating languages to manipulate data.
                      >
                      > Above that would be something like Apache with Python defined as a
                      > valid scripting language AND with security set to allow users to
                      > upload/install scripts.[/color]

                      Thanks. I'll have to check with my domain host, but I guess it might not
                      be possible.

                      Comment

                      • stewart.midwinter@gmail.com

                        #12
                        Re: installing python on a server?

                        I'm wondering whether you couldnn't use MovPy for this purpose - a
                        situation where you don't have root access. You can install the whole
                        MovPy package in your home directory; it provides a self-contained
                        environment. At the moment I think it only runs on Windows boxen, but
                        that may change.

                        Comment

                        • stewart.midwinter@gmail.com

                          #13
                          Re: installing python on a server?

                          I'm wondering whether you couldnn't use MovPy for this purpose - a
                          situation where you don't have root access. You can install the whole
                          MovPy package in your home directory; it provides a self-contained
                          environment. At the moment I think it only runs on Windows boxen, but
                          that may change.

                          Comment

                          • Magnus Lycka

                            #14
                            Re: installing python on a server?

                            stewart.midwint er@gmail.com wrote:[color=blue]
                            > I'm wondering whether you couldnn't use MovPy for this purpose - a
                            > situation where you don't have root access.[/color]

                            Huh? I thought the point with MovPy was *not* to install it!

                            A normal Python installation can certainly be performed in
                            the users home directory.

                            *If* John can log into the machine (ssh/telnet) and use
                            a C compiler (typical on a Linux box) he can build it from
                            source.

                            There are other problems though. Is he allowed to use
                            cgi-scripts or have his own processes running?

                            But in the end it's all simple.

                            John: Make sure to buy from an ISP that supports Python.
                            There are plenty of ISPs, so this can hardly be a major
                            obstacle.

                            See http://wiki.python.org/moin/PythonHosting for options.

                            The difficult thing is to decide how to build the web
                            page, considering all the web tool kits available...


                            I disagree on using Zope. It's probably not the easiest
                            to get an ISP to run, and the learning curve would not
                            be worth it for the intended purpose as I understood it.
                            Besides, Zope is currently in the transition from the
                            old version 2 to the much changed version 3, and one of
                            the big advantages of Zope, the big bunch of 3rd party
                            packages that you can simply plug in, it entirely a
                            Zope 2 phenomena. They don't exist for Zope 3 yet, so
                            you have to go for something old that will be deprecated
                            soon, or with the new and spiffy but ... empty.

                            For John, it seems Karrigell, http://karrigell.sourceforge.net/
                            could be a good fit.

                            Comment

                            • John Salerno

                              #15
                              Re: installing python on a server?

                              Magnus Lycka wrote:
                              [color=blue]
                              > For John, it seems Karrigell, http://karrigell.sourceforge.net/
                              > could be a good fit.[/color]

                              Yes, that does seem to be something like what I'm looking for.
                              Basically, I'd like to use Python inside my HTML, just as you would PHP
                              and the like. But I'd prefer not to use any kind of system that requires
                              anything specific only to it, and that you wouldn't normally find in
                              Python (i.e., anything that might make my scripts not portable to other
                              servers at a future time). I couldn't tell if this had such features or not.

                              Comment

                              Working...