[Zope] - newbie PCGI problems

Peter J Ulintz pulintz@umich.edu
Mon, 7 Dec 1998 19:19:46 -0500 (EST)


Hi.  These will probably be simple ones, but I'd appreciate any help.

My system is a Sun sparc server running Solaris7 and Python1.5.1.
Installed Apache1.3.3 (first time for me) and ran the w_pcgi.py script,
which seemed to work correctly.  

NEWBIE QUESTION I:
Exactly where do you put the mod_rewrite config info?  I tried putting it
in the normal three .conf files and got errors.  I DID compile the server
with the mod_rewrite included.

Decided to try out the system anyway, running the 
http://myservername:80/cgi-bin/Zope/manage command and got errors  (Can't
remember the exact one).  I checked the pcgi.log file, and noticed that I
was getting tracebacks indicating...

"File
"/export/home/pulintz/Zope-1.9b1-src/lib/python/BoboPOS/SimpleDB.py", line
227, in open
    except: raise IOError, 'could not open ' + file_name
ImportError: (<class exceptions.IOError at ab3d8>, 'could not open
/export/home/pulintz/Zope-1.9b1-src/var/Data.bbb.trans')"

So I changed the permissions on the Data.* files /var directory (yes the
var directory had full permissions), and got the following traceback
error...
 
File
"/export/home/pulintz/Zope-1.9b1-src/lib/python/Products/sample/Product.py",
line 24, in ? 
    import OFS.SimpleItem, Persistence, Acquisition, AccessControl.Role
ImportError: (<class exceptions.ImportError at ab540>, 'No module named
Persistence') 

Went into the Product.py file and changed "Persistence" to
"BoboPOS.Persistence", and tried to bring up zope in the browser again.
I got the authentication window!  But I couldn't authenticate, getting the
error message concerning the authentication headers.  Around that time,
the email from Jeff Bauer came thru indicating that removing the pcgi.*
files from the /var directory might be good, so I did that, and that's
all I remember doing at that point.  But the next time I tried to bring up
Zope, I got the "!Temporarily Unavailable" message, with the message 
"(103) unable to verify if process is running"

Drag...  Guess I've gotta go and read those documents on Jeff's site about
pcgi.  Running the pcgifile.py from the /cgi-bin gives...  

Python 1.5.1 (#1, Oct 24 1998, 01:21:21)  [GCC 2.8.1] Apache/1.3.3 (Unix) 

PCGI info file: /export/home/pulintz/Zope-1.9b1-src/Zope.cgi 
PCGI wrapper: /export/home/pulintz/Zope-1.9b1-src/pcgi/pcgi-wrapper 
error attempting: 'from cgi_module_publisher import publish_module' status: FAILURE

/export/home/pulintz/Zope-1.9b1-src/Zope.cgi
  #!/export/home/pulintz/Zope-1.9b1-src/pcgi/pcgi-wrapper
  PCGI_NAME=Main
  PCGI_MODULE_PATH=/export/home/pulintz/Zope-1.9b1-src/lib/python/Main.py

PCGI_PUBLISHER=/export/home/pulintz/Zope-1.9b1-src/pcgi/pcgi_publisher.py
  PCGI_EXE=/usr/local/bin/python
  PCGI_SOCKET_FILE=/export/home/pulintz/Zope-1.9b1-src/var/pcgi.soc
  PCGI_PID_FILE=/export/home/pulintz/Zope-1.9b1-src/var/pcgi.pid
  PCGI_ERROR_LOG=/export/home/pulintz/Zope-1.9b1-src/var/pcgi.log
  PCGI_DISPLAY_ERRORS=1
  BOBO_REALM=Zope
  BOBO_DEBUG_MODE=1
  INSTANCE_HOME=/export/home/pulintz/Zope-1.9b1-src

So this is apparently an import problem, but I haven't been able to figure
out how to fix it... I'll be reading thru more of Jeff's documentation,
but any advice in the meantime would be appreciated (besides "You're not
worthy-- go back to Perl") 

--P

_________________________________________________________________________
Peter Ulintz 				Systems Research Programmer 
Andrews Lab -- Biochemistry		University of Michigan 
pulintz@umich.edu 			734.936.1137