VDS Sphera Knowledge Base
| Main / Browse Categories / Python / How can I compile Python 2.3.3 and Zope 2.7.0 in a VDS? |
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:
[Python 2.3.3] Create new directory for Python 2.3.3: cd /usr/local mkdir python chmod 755 python chmod +t pythonCreate a directory for extracting source files: cd /usr/local mkdir srcDownload 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.tgzConfigure, 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 installCreate a symbolic link for Python 2.3.3: cd /usr/local/bin ln -s ../python/bin/python pythonTest it by running this command: python -VYou 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 optCreate "instance home" directory for Zope 2.7.0: cd /usr/local mkdir zopeDownload 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.tgzConfigure, compile and install Zope 2.7.0: cd Zope-2.7.0 ./configure make make installCreate "instance home": /opt/Zope-2.7/bin/mkzopeinstance.pyDirectory: /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 stopTo 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 K90zopeTo disable Zope's debug mode: cd /usr/local/zope/etc vi zope.conf Add following line. debug-mode offSave zope.conf and restart Zope service.
User Comments
|
||||||||
Attachments
| No attachments. |
Related Articles
|
|


