VDS Sphera Knowledge Base

Main / Browse Categories / Python / How can I compile Python 2.3.3 and Zope 2.7.0 in a VDS?

Print article Print Article    Email article Email Article

How can I compile Python 2.3.3 and Zope 2.7.0 in a VDS?
[Prepare VDS]

Login to your VDS manager control panel and install:

  • GNU compiler
Login via SSH as your VDS USER.

[Python 2.3.3]

Create new directory for Python 2.3.3:

cd /usr/local
mkdir python
chmod 755 python
chmod +t python
Create a directory for extracting source files:
cd /usr/local
mkdir src
Download Python's sorce file and extract:
cd src
wget http://www.python.org/ftp/python/2.3.3/Python-2.3.3.tgz
tar -xzvf Python-2.3.3.tgz
Configure, compile and install Python 2.3.3:
cd Python-2.3.3
./configure --prefix=/usr/local/python
(You may see some error messages regarding missing "sort" command.)
make
make install
Create a symbolic link for Python 2.3.3:
cd /usr/local/bin
ln -s ../python/bin/python python
Test it by running this command:
python -V
You should get version number "Python 2.3.3" for Python printed to your screen.

[Zope 2.7.0]

Create new installation directory for Zope 2.7.0:

cd /
mkdir opt
Create "instance home" directory for Zope 2.7.0:
cd /usr/local
mkdir zope
Download Zope's sorce file and extract:
cd /usr/local/src
wget http://zope.org/Products/Zope/2.7.0/Zope-2.7.0.tgz
tar -xzvf Zope-2.7.0.tgz
Configure, compile and install Zope 2.7.0:
cd Zope-2.7.0
./configure
make
make install
Create "instance home":
/opt/Zope-2.7/bin/mkzopeinstance.py
Directory: /usr/local/zope
Username: xxxx
password: yyyy
Verify password: yyyy

Start and stop Zope:

/usr/local/zope/bin/zopectl start
/usr/local/zope/bin/zopectl stop
To start and stop Zope automatically with VDS:
cd /etc/rc.d/rc2.d
ln -s /usr/local/zope/bin/zopectl S90zope
ln -s /usr/local/zope/bin/zopectl K90zope
To disable Zope's debug mode:
cd /usr/local/zope/etc
vi zope.conf

Add following line.

debug-mode off
Save zope.conf and restart Zope service.

User Comments
How can I compile Python 2.3.3 and Zope 2.7.0 in a VDS?  
There are no user comments for this topic.
 

Attachments
No attachments.

Related Articles
 Where is Python located?
 What version of Python is installed?
 Can you recommend any good resources for learning Python?
 Do you support mod_python?
 Do you support Zope?

Why Choose Our Hosting?

  • Unmatched Customer Support!
  • Virtual Private Server technology provides a rich, dedicated-like environment for every account.
  • We are known for our superb quality, performance and flexible hosting environment. We manage the server, software, and network you do the rest.
Continue reading »

Featured Hosting Plan


Learn more about our VPS Extreme

What is Included?

  • PHP 5/MySQL 5
  • Parallels® Plesk Panel 10
  • Unique IP Address
  • Daily VPS Backups (Off Server)
  • SAS Hardware Raid diskspace
  • CentOS 5 x86_64 bit
  • Multi-homed Tier 1 Bandwidth
  • Full Upgrade capabilities
Continue reading »