473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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.
Feb 10 '06 #1
15 1849
John Salerno:
Can anyone tell me how complicated it might be to install Python on my
server so I can use it for web apps?
2 on a scale from 1 to 10.
Is it a one-time process, or something to maintain?


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
Feb 10 '06 #2
Rene Pijlman wrote:
John Salerno:
Can anyone tell me how complicated it might be to install Python on my
server so I can use it for web apps?


2 on a scale from 1 to 10.
Is it a one-time process, or something to maintain?


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.


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.
Feb 10 '06 #3
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

Feb 10 '06 #4
John Salerno:
Hmm, sounds easy, yet I don't know where to start.


try:
browser.browse(http://www.python.org/download/)
package = download(yourPlatform)
package.unpack()
exec(README.read())
except:
post specifics

--
René Pijlman
Feb 10 '06 #5
"Renato" <re************@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
-snip-
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.


Slackware has package management, (pkgtool, installpkg, removepkg,
upgradepkg), it just doesn't do dependency checking.
http://www.slackbook.org/html/package-management.html
Louis
Feb 10 '06 #6
Renato wrote:
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.


Yikes, that's all the stuff I don't know. Maybe this is over my head
right now.
Feb 11 '06 #7
On Fri, 10 Feb 2006 20:22:07 GMT
John Salerno <jo******@NOSPAMgmail.com> wrote:
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?


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 (ha*****@AnansiSpaceworks.com)
Anansi Spaceworks http://www.AnansiSpaceworks.com

Feb 11 '06 #8
John Salerno wrote:
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?


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

Feb 11 '06 #9
Dennis Lee Bieber wrote:
On Sat, 11 Feb 2006 01:02:46 -0500, John Salerno
<jo******@NOSPAMgmail.com> declaimed the following in comp.lang.python:
Yikes, that's all the stuff I don't know. Maybe this is over my head
right now.


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?


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.
Feb 11 '06 #10
Dennis Lee Bieber wrote:
On Sat, 11 Feb 2006 14:53:38 -0500, John Salerno
<jo******@NOSPAMgmail.com> declaimed the following in comp.lang.python:
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.


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.


Thanks. I'll have to check with my domain host, but I guess it might not
be possible.
Feb 12 '06 #11
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.

Feb 12 '06 #12
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.

Feb 12 '06 #13
st***************@gmail.com wrote:
I'm wondering whether you couldnn't use MovPy for this purpose - a
situation where you don't have root access.


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.
Feb 13 '06 #14
Magnus Lycka wrote:
For John, it seems Karrigell, http://karrigell.sourceforge.net/
could be a good fit.


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.
Feb 13 '06 #15
John Salerno wrote:
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.


As it turns out, my hosting company supports Python on their servers! I
know I didn't see it there before, so either it was hidden or they
somehow turned it on for me after I asked about it. Either way, this
saves me a ton of trouble. :)
Feb 14 '06 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wolf | last post by:
i would like to briefly share my experiences with installing mod_python on a w2000 box. i must say that i believe the installation process to be unnecessarily complicated by the simple fact that...
2
by: Rien Kok | last post by:
Hi, I have a strange problem. I want to install Plone (Plone2-2.0.0rh-2.i386.rpm) Because Plone 2.0 needs Python 2.3.3, I installed Python 2.3.3 from source (Python-2.3.3.tar). Everything...
3
by: Mike Moum | last post by:
Hi, I'm a civil engineer who also doubles as chief programmer for technical applications at my company. Most of our software is written in Visual Basic because our VP in charge of I.T. likes to...
1
by: pierreth | last post by:
Hello, I made some programming wit Python 2.4 but Red Hat comes with version 2.3 as default. So I would like to install the last version of Python on a production server but I am a bit afraid....
1
by: gmax2006 | last post by:
Hi, I am having hard time with installing MySQLdb on Linux. My Python version is 2.3. I have downloaded "MySQL-python-1.2.1_p2.tar.gz" from sourceforge. The README file asks for MySQL...
4
by: Nico Grubert | last post by:
Hi there, I'd like to install Python 2.3.5. on a 64-Bit OS (Suse Linux Enterprise Server 10) on an AMD Opteron 64-Bit machine. I have to use Python 2.3.5. Do I need a special source archive...
5
by: Cappy2112 | last post by:
I've just started a job which has a massive python2.3.4-centric tools installation and configuration. I know what you're going to say, but I can't upgrade and be the only one with a newer...
7
by: Yansky | last post by:
I asked my hosting company if they would upgrade Python on my server to the latest version. They responded with: "Sorry no. We tend to stick with what comes packaged with the unix distribution...
0
by: trihaitran | last post by:
I am reading chapter two of the Pylons book. In the text I am told to run: $ python virtualenv.py --no-site-packages env This is what I got back: $ python virtualenv.py --no-site-packages...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.