[Zope] Much onfusion concerning pcgi-wrapper

Chris Burbridge cnburbridge at yahoo.com
Tue Nov 25 01:08:27 EST 2003


I am trying to install Zope on a web host account (no root access) that 
runs FreeBSD 4.5. It seems like I should be able to get it to work through 
pcgi-wrapper. I have gone through every bit of text I could find about 
pcgi-wrapper, and its relation to Zope.cgi, but still no luck.

If I run pcgi-wrapper by itself, it outputs the "temporarly unavailable" 
HTML. In other words, it works by itself.

I found out about using pcgifile.py, to verify that at least the basics 
were set up properly so that things _should_ work. It gives me a positive 
result I call: 
http://<siteName>.net/~<username>/cgi-bin/pcgifile.py?infofile=Zope.cgi. I 
have included the resulting output at the bottom of this email, but 
suffice to say, it seems to think things are okay.

For the sake of trying to get this all to work, I chmod'ed access rights 
for /home/<userName>/cgi-bin/Zope (and all files and directories 
underneath that) to 777.

The only thing I did differently in Zope.cgi was to change the 
PCGI_MODULE_PATH setting to point to Main.py, instead of just pointing to 
a directory. (Some documentation I found on the web pointed me to this, 
and when I did it the other way, I got an error, as it seemed to be 
expecting a file, not a directory.)

I try running it from the command line:

	./Zope.cgi

		or also just

	./pcgi-wrapper Zope.cgi

In either case, it just waits for a while, and then returns with no output.

The pcgi.log file reports no problem.

If I try calling http://<siteName>/cgi-bin/Zope.cgi, I get the 
"Temporarily Unavailable" message -- but again, nothing written to 
pcgi.log.

I make sure I am runnning Python version 2.1.3.

Other CGI files (I use Perl CGI a lot) work fine with the current Apache 
configuration.


I would so appreciate any suggestions on this, because I am really hoping 
to start learning and using Zope.

Maybe I just don't have rights on my account to be able to initiate a 
persistent process?


Thanks!
Chris Burbridge



------------------------ RESULTS OF pcgifile.py ------------------------

Python 2.1.3 (#3, Nov 16 2003, 23:23:48)
[GCC 2.95.3 20010315 (release) [FreeBSD]]
Apache/1.3.28 (Unix) PHP/4.3.4 mod_ssl/2.8.15 OpenSSL/0.9.7b

PCGI info file:Zope.cgi
PCGI wrapper:/home/<userName>/public_html/Zope/pcgi/pcgi-wrapper
looks OK

Zope.cgi
   #!/home/<userName>/public_html/Zope/pcgi/pcgi-wrapper
   PCGI_NAME=Zope
   PCGI_MODULE_PATH=/home/<userName>/cgi-bin/Zope/lib/python/Main.py
   PCGI_PUBLISHER=/home/<userName>/cgi-bin/Zope/pcgi/pcgi_publisher.py
   PCGI_EXE=/home/<userName>/usr/bin/python
   PCGI_SOCKET_FILE=/home/<userName>/cgi-bin/Zope/var/pcgi.soc
   PCGI_PID_FILE=/home/<userName>/cgi-bin/Zope/var/pcgi.pid
   PCGI_ERROR_LOG=/home/<userName>/cgi-bin/Zope/var/pcgi.log
   PCGI_DISPLAY_ERRORS=1
   BOBO_REALM=/home/<userName>/cgi-bin/Zope/Zope.cgi
   BOBO_DEBUG_MODE=1
   INSTANCE_HOME=/home/cgi-bin/public_html/Zope
   PCGI_DISPLAY_ERRORS=Y

Likely publisher resource values:
   Executable:/home/<userName>/usr/bin/python
   PID file:/home/<userName>/cgi-bin/Zope/var/pcgi.pid
   Socket file:/home/<userName>/cgi-bin/Zope/var/pcgi.soc
   Module:/home/<userName>/cgi-bin/Zope/lib/python/Main.py
   Error Log:/home/<userName>/cgi-bin/Zope/var/pcgi.log
   Publisher:/home/<userName>/cgi-bin/Zope/pcgi/pcgi_publisher.py

Versions of modules used:

Resulting environment will probably appear to the publisher as:
   BOBO_DEBUG_MODE1
   BOBO_REALM/home/<userName>/cgi-bin/Zope/Zope.cgi
   DOCUMENT_ROOT/usr/local/apache/htdocs
   GATEWAY_INTERFACECGI/1.1
   HTTP_ACCEPTtext/html, application/xml;q=0.9, 
application/xhtml+xml;q=0.9, image/png, image/jpeg, image/gif,
image/x-xbitmap, */*;q=0.1
   HTTP_ACCEPT_CHARSETwindows-1252, utf-8, utf-16, iso-8859-1;q=0.6, *;q=0.1
   HTTP_ACCEPT_ENCODINGdeflate, gzip, x-gzip, identity, *;q=0
   HTTP_ACCEPT_LANGUAGEen
   HTTP_CONNECTIONKeep-Alive, TE
   HTTP_COOKIEWiki=rev&1&id&1001&randkey&857866977
   HTTP_COOKIE2$Version=1
   HTTP_HOST<siteName>.net
   HTTP_IF_MODIFIED_SINCEFri, 21 Nov 2003 07:31:35 GMT
   HTTP_TEdeflate, gzip, chunked, identity, trailers
   HTTP_USER_AGENTMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Opera 
7.21  [en]
   INSTANCE_HOME/home/cgi-bin/public_html/Zope
   PATH/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/usr/
local/pgsql/bin:/usr/local/mysql/bin:/usr/local/apache/bin
   PCGI_DISPLAY_ERRORSY
   PCGI_ERROR_LOG/home/<userName>/cgi-bin/Zope/var/pcgi.log
   PCGI_EXE/home/<userName>/usr/bin/python
   PCGI_INFO_FILEZope.cgi
   PCGI_MODULE_PATH/home/<userName>/cgi-bin/Zope/lib/python/Main.py
   PCGI_NAMEZope
   PCGI_PID_FILE/home/<userName>/cgi-bin/Zope/var/pcgi.pid
   PCGI_PUBLISHER/home/<userName>/cgi-bin/Zope/pcgi/pcgi_publisher.py
   PCGI_SOCKET_FILE/home/<userName>/cgi-bin/Zope/var/pcgi.soc
   QUERY_STRINGinfofile=Zope.cgi
   REMOTE_PORT1340
   REQUEST_METHODGET
   REQUEST_URI/~<userName>/cgi-bin/pcgifile.py?infofile=Zope.cgi
   SCRIPT_FILENAME/home/<userName>/cgi-bin/pcgifile.py
   SCRIPT_NAME/~<userName>/cgi-bin/pcgifile.py
   SERVER_ADMINwebmaster@<siteName>.net
   SERVER_NAME<siteName>.net
   SERVER_PORT80
   SERVER_PROTOCOLHTTP/1.1
   SERVER_SIGNATURE

Apache/1.3.28 Server at <siteName>.net Port 80



   SERVER_SOFTWAREApache/1.3.28 (Unix) PHP/4.3.4 mod_ssl/2.8.15 
OpenSSL/0.9.7b



More information about the Zope mailing list