INSTANCE_HOME set up help
Hello I am still ;^( trying to configure the instance home to work correctly. This is the steps I have done, please, correct me Following, the how-to from http://www.zope.org/Members/4am/instancehome, and http://www.zope.org/Members/dshaw/AdvancedSiteSetup 1. downloaded into /tmp/downloads Zope-2.3.3b1-src.tgz 2. cd /usr/home/Zope/ 3. mkdir InstanceHome 4. mkdir OtherProducts 5. tar zxv /tmp/downloads/Zope-2.3.3b1-src.tgz 6. mv Zope-2.3.3b1-src.tgz SoftwareHome 7. cd InstanceHome 8. mkdir var 9. mkdir Extensions 10. mkdir Products 11. mkdir import 12. cd ../SoftwareHome 13. python w_pcgi.py ..... built of zope files ..... 15. cd ../InstanceHome 16. cp -R ../SoftwareHome/start . 16. cp -R ../SoftwareHome/stop . 17. vi start #! /bin/sh reldir=`dirname $0` INST_HOME=`cd $reldir; pwd` export INST_HOME PYTHONHOME=/usr/home/dsuk/Zope/SoftwareHome export PYTHONHOME exec /usr/local/bin/python $PYTHONHOME/z2.py -D -p /usr/local/www/vhosts/dsuk/cgi-bin/Zope.cgi "$@" 18. vi stop #! /bin/sh kill `cat /usr/home/dsuk/Zope/InstanceHome/var/Z2.pid` 19. python ../SoftwareHome/zpasswd.py access 20. cp -R ../SoftwareHome/Zope.cgi /usr/local/www/vhosts/dsuk/cgi-bin/Zope.cgi Now when I run %./start & I get the following error... 'import site' failed; use -v for traceback Traceback (most recent call last): File "/usr/home/dsuk/Zope/SoftwareHome/z2.py", line 296, in ? import os, sys, getopt, string ImportError: No module named os Q. The custom_zodb.py should this be in the InstanceHome? Q. If so, what should be the contents of this file Thanks for all your advice Regards Norman
From: "Norman Khine" <khine@bmpublications.co.uk>
Hello I am still ;^( trying to configure the instance home to work correctly. This is the steps I have done, please, correct me
If it isn't a typo in your post, the following certainly needs to be corrected:
INST_HOME=`cd $reldir; pwd`
...should be INSTANCE_HOME. This may also need to be edited, to correct paths:
/usr/local/www/vhosts/dsuk/cgi-bin/Zope.cgi
The error looks like a Python configuration problem. Can you start Python from the command line and import os?
'import site' failed; use -v for traceback Traceback (most recent call last): File "/usr/home/dsuk/Zope/SoftwareHome/z2.py", line 296, in ? import os, sys, getopt, string ImportError: No module named os
Q. The custom_zodb.py should this be in the InstanceHome? Q. If so, what should be the contents of this file
Not unless you're going to use ZEO, in which case see the ZEO installation instructions. Cheers, Evan @ digicool & 4-am
participants (2)
-
Evan Simpson -
Norman Khine