[Zope] install problem/web server compatibility

Robert Nagle rjnagle@houston.rr.com
Tue, 08 Oct 2002 07:05:06 -0500


Hi, I'm trying to install zope for the first time on my home server. I'm 
using the 2.6 beta  in a linux rh 7.2 environment and I've installed 
from source. I'm not a programmer, but a technical writer who finds the 
zope project interesting. I need to serve static pages and my cms from 
the same box, and I use 2 virtual hosts in apache.

I'm a bit confused  about the current error message and about my options 
for compatibility with apache.

First, I plan to run it through apache. The install document included 
with the zope mentions two options:  PCGI and fastcgi. Another helpful 
document
http://www.zope.org/Members/regebro/Zope_and_Apache mentions two other 
options: proxypass and rewrite rules and even the virtual host monster.

1. From a performance point of view, how does fastcgi compare to 
proxypass and rewrite?
2.  I'm unclear about the order in which you need to configure 
apache/virtual host monster. First, you install zope, then you do 
"start" to verify a successful install, then you configure apache, then 
you restart the start script. Right? .  I'm guessing that zserver will 
launch by default if you haven't set anything up. I'm guessing that zope 
will still fire up even if your settings for proxypass or rewrite are 
wrong. Am I right?
3.  When you're troubleshooting/testing, the only way to test/verify is 
by trying to access it through the browser, right?  Well, aside from 
checking apache logs, of course.

Now for my main problem. I installed and started for the first time.  It 
has started zserver, but I can't access http://webserver:8080 or 8021. 
The ports don't seem to be open when I netstat -an.  I'm guessing we are 
talking about a permissions problem (see below). When I ran the install 
script, I gave it a user name and group name of my apache web server ( 
./install -u bobbyapache -g rjapache). I unzipped it as rj2nagle (user  
who belongs to groups rj2nagle and webperson) I installed it as root. It 
gave me an admin account with a generated password, which I checked to 
be working correctly with zpasswd.  The main zope directory  is owned by 
root and has the group webperson, of which rj2nagle is a member. So far 
I have run the program as root.  Here is what I see.

(at the end of the normal logging after running ./start )
2002-10-08T04:44:35 PANIC(300) z2 Startup exception
Traceback (innermost last):
  Module __main__, line 831, in ?
SystemExit: initgroups is required to safely setuid

So what is going on? Thanks.  Robert Nagle, Houston Texas


***************************************************************************
WHEN I RUN START
                        [root@idiotprogrammer Zope-2.6.0b1-linux2-x86]# 
./start
------
2002-10-08T04:44:29 INFO(0) zdaemon zdaemon: Tue Oct  8 04:44:29 2002: 
Houston, we have forked: pid 2543
------
2002-10-08T04:44:35 INFO(0) ZODB Opening database for mounting: 
'143987360_1033931574.797965'
------
2002-10-08T04:44:35 INFO(0) ZODB Mounted database 
'143987360_1033931574.797965'
at /temp_folder
------
2002-10-08T04:44:35 INFO(0) ZServer HTTP server started at Tue Oct  8 
04:44:35 2002
        Hostname: idiotprogrammer
        Port: 8080
------
2002-10-08T04:44:35 INFO(0) ZServer FTP server started at Tue Oct  8 
04:44:35 2002
        Hostname: idiotprogrammer
        Port: 8021
------
2002-10-08T04:44:35 INFO(0) ZServer PCGI Server started at Tue Oct  8 
04:44:35 2002
        Unix socket: /usr/local/zoperj/Zope-2.6.0b1-linux2-x86/var/pcgi.soc
------
2002-10-08T04:44:35 PANIC(300) z2 Startup exception
Traceback (innermost last):
  Module __main__, line 831, in ?
SystemExit: initgroups is required to safely setuid
*****************************************************************
WHEN I RUN STOP
               ./stop: kill: (2540) - No such pid
./stop: kill: (2543) - No such pid

total 200

I unzipped it as rj2nagle (group who belongs to groups rj2nagle and 
webperson)
I installed it as root
The main zope directory  is owned by root and has the group webperson, 
of which rj2nagle is a member

****************************************************
Permissions

total 200
drwxrwxr-x   13 bobbyapa rjapache     4096 Oct  8 05:41 .
drwxrwxr-x    3 root     webperso       94 Sep 29 22:01 ..
drwxrwxr-x    2 bobbyapa rjapache       19 Sep 24 12:33 bin
drwxrwxr-x    4 bobbyapa rjapache     4096 Sep 24 12:33 doc
drwxrwxr-x    2 bobbyapa rjapache       23 Sep 24 12:33 Extensions
drwxrwxr-x    2 bobbyapa rjapache       75 Sep 24 12:33 import
drwxrwxr-x    3 bobbyapa rjapache       22 Sep 24 12:33 include
-rw-r--r--    1 root     root            0 Oct  8 04:50 inituser
drwxrwxr-x    2 bobbyapa rjapache     4096 Oct  6 12:40 inst
-rwxr-xr-x    1 rj2nagle rj2nagle      225 Jul 23  1999 install
-rwxr--r--    1 root     root           39 Oct  6 12:39 installoptions
drwxrwxr-x    4 bobbyapa rjapache       35 Sep 24 12:33 lib
-rw-r--r--    1 rj2nagle rj2nagle     2366 Nov 28  2001 LICENSE.txt
drwxrwxr-x    8 bobbyapa rjapache     4096 Oct  6 12:41 pcgi
-rw-r--r--    1 root     root            0 Oct  8 05:41 permissions.txt
-rw-r--r--    1 rj2nagle rj2nagle      987 Apr 29  1999 README.txt
-rw-r--r--    1 rj2nagle rj2nagle    36427 Aug 22 19:57 setup.py
-rw-r--r--    1 root     root        27658 Oct  6 12:40 setup.pyc
-rwxrwx--x    1 root     root          640 Oct  8 04:44 start
-rwxrwx--x    1 bobbyapa rjapache      658 Oct  6 13:10 start~
-rwxr-x--x    1 root     root          640 Oct  6 12:56 start.original
-rwxrwx--x    1 bobbyapa rjapache       75 Oct  6 12:41 stop
-rw-r--r--    1 rj2nagle rj2nagle      418 Jul 23 06:15 stupid_clean
drwxrwxr-x    3 bobbyapa rjapache     4096 Oct  6 12:41 utilities
drwxrwxr-xt    2 bobbyapa rjapache      156 Oct  8 05:01 var
-rw-r--r--    1 rj2nagle rj2nagle    31105 Sep  5 14:53 z2.py
-rw-r--r--    1 root     root        23074 Oct  6 12:40 z2.pyc
-rwxrwxr-x    1 bobbyapa rjapache      663 Oct  6 12:41 Zope.cgi
-rw-r--r--    1 rj2nagle rj2nagle     6419 Aug 14 16:11 zpasswd.py
-rw-r--r--    1 root     root         6918 Oct  6 12:40 zpasswd.pyc
drwxrwxr-x    4 bobbyapa rjapache     4096 Oct  6 12:40 ZServer