473,545 Members | 1,878 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1860
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(yourPl atform)
package.unpack( )
exec(README.rea d())
except:
post specifics

--
René Pijlman
Feb 10 '06 #5
"Renato" <re************ @gmail.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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******@NOSPA Mgmail.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*****@Anansi Spaceworks.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******@NOSPA Mgmail.com> declaimed the following in comp.lang.pytho n:
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

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

Similar topics

1
2266
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 the installer itself seems to be buggy -- in my case, no combination of mod_python 3.0.4, 3.1.2b and python 2.2.3, 2.3.3 ever came to completion....
2
1607
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 went well. After installing Python I did a reboot of the server and checked if Python works. Quote:
3
2897
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 have "consistency", and at the moment we're a Microsoft shop. He has assigned me the task of developing an new application, the exact nature of...
1
1740
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. As I know, if I install the new version, the default version will still be 2.3, right? I would like to know if someone as experienced problems by...
1
2264
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 installation. My MySql server is on another box. That is why I think I should to install just the MySql client (am I right?). My Linux is "Red Hat...
4
2171
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 or can I use "Python-2.3.5.tgz" from http://www.python.org/ftp/python/2.3.5/Python-2.3.5.tgz ? Is there anything special I have to care about or is...
5
2114
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 version. There are close to 30 engineers using this same tools configuration, and it has been working fine for a long time. For now, we all have to live...
7
1757
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 to ease maintenance issues. There is nothing stopping you from running your own version of python from within your own account. Download the source...
0
2147
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 env New python executable in env/bin/python Installing setuptools........... Complete output from command env/bin/python -c "#!python
0
7486
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7416
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7932
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7442
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
4965
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1905
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
729
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.