Re: [Zope] Zope in Virtual Host on ISP
Hi everyone. I've been exchanging email with Chris and we have been unable to resolve this problem. Essentially he's attempting to run a simple Python script (as preparation to running Zope) on his ISP's system. The ISP already has Python installed in /usr/bin, is running Apache, possibly with PyApache compiled in. The latest attempt was to try and run testcgi.py with a wrapper script (launchpad.cgi) to set the appropriate environment. Is there anything obvious lacking in the scripts shown below? He has tested the code in his own environment space. Regards, Jeff Bauer Rubicon, Inc. --- Text of launchpad.cgi ---- #!/bin/sh PYTHONPATH=/home/c/change/local/lib/python1.5/test:/home/c/change/local/lib /python1.5/plat-linux2:/home/c/change/local/lib/python1.5/lib-tk:/home/c/ch ange/local/lib/python1.5/lib-dynload:/home/c/change/local/lib/python1.5/sit e-packages export PYTHONPATH PATH=/home/c/change/local/bin:/usr/local/bin:/bin:/usr/bin export PATH MYPYTHON=/home/c/change/local/bin/python MYCGIBIN=/virtual/customer/changeling.com/cgi-bin $MYPYTHON $MYCGIBIN/testcgi.cgi ---- Text of testcgi.cgi ---- #!$MYPYTHON print "Content-type: text/html" print print "<pre>" print "Importing os" import os print "Done Importing os" print "Importing sys" import sys print "Done Importing sys" print "<strong>Python %s</strong>" % sys.version for (x,y) in os.environ.items(): print "%s\t%s" % (x, y) print "</pre>" ----
Jeff Bauer wrote:
I've been exchanging email with Chris and we have been unable to resolve this problem. Essentially he's attempting to run a simple Python script (as preparation to running Zope) on his ISP's system. The ISP already has Python installed in /usr/bin, is running Apache, possibly with PyApache compiled in. The latest attempt was to try and run testcgi.py with a wrapper script (launchpad.cgi) to set the appropriate environment. Is there anything obvious lacking in the scripts shown below?
Oops! I forgot the most important part. His testcgi.py bails out at after printing "Importing os". -Jeff --- Text of testcgi.cgi ---- #!$MYPYTHON print "Content-type: text/html" print print "<pre>" print "Importing os" import os print "Done Importing os"
participants (1)
-
Jeff Bauer