[Zope] Zope installation woes

russ russ at russtik.co.uk
Thu Jul 6 05:28:46 EDT 2006


What does it mean if this is listed under ps -eLf:

zope     15601 15600 15601  0    1 Jul05 ?        00:00:05 /usr/bin/python
/usr/

...but isn't anywhere to be seen under netstat -p ?

& how do I telnet to port 8080 *on* the same machine?

Sorry :S

-----Original Message-----
From: replies-lists-zope at listmail.innovate.net
[mailto:replies-lists-zope at listmail.innovate.net] 
Sent: 05 July 2006 18:59
To: russ
Subject: RE: [Zope] Zope installation woes

use the "ps" command to see that that process is still running. also
use the "netstat" command (with the -p flag (as root)) to see/confirm
what port zope is listening on.

if it's running, on port 8080, then try to telnet to port 8080, both as
"localhost:8080" and "hostname:8080" (both from the server itself).  if
both of those work, then telnet to "hostname:8080" from a "remote"
machine (e.g., the desktop machine you've been using yoru browser
from). if the telnets from the server work, but the telnet from the
"remote" host doesn't, then your issue is likely to be a firewall.




------------ Original Message ------------
> Date: Wednesday, July 05, 2006 06:24:40 PM +0100
> From: russ <russ at russtik.co.uk>
> To: 'Jonathan' <dev101 at magma.ca>, zope at zope.org
> Subject: RE: [Zope] Zope installation woes
> 
> Well I've tried to follow your steps with the exception of point 15
> (mkzopeinstance.py doesn't reside in my python directory, it's in the
> zope/bin folder).  At the last stage I hit enter and got:
> 
> bash-3.00$ ./zopectl start
> . daemon process started, pid=15601
> 
> Aaaaand now what?  http://www.domain.tld:8080 still produces nothing.
> 
> :(
> 
> 
> -----Original Message-----
> From: Jonathan [mailto:dev101 at magma.ca] 
> Sent: 05 July 2006 17:14
> To: russ; zope at zope.org
> Subject: Re: [Zope] Zope installation woes
> 
> 
> ----- Original Message ----- 
> From: "russ" <russ at russtik.co.uk>
> To: <zope at zope.org>
> Sent: Wednesday, July 05, 2006 11:37 AM
> Subject: RE: [Zope] Zope installation woes
> 
> 
>> O.k. thanks,
>> 
>> There are a number of lines like this:
>> 
>> mailman   2485  2468  2485  0    1 Jun29 ?        00:00:00
>> /usr/bin/python2.4 /u
>> 
>> ...and a few like this:
>> 
>> root     12796 11967 12796  0    1 13:10 pts/1    00:00:00
>> /usr/bin/python /usr/
> 
> These are not zope entries, you are looking for something like:
> 
> zope      3158     1  3158  0    1 07:52 ?        00:00:00 
> /usr/local/bin/python
> /usr/local/Zope-2.9.2/lib/python/zdaemon/zdrun.py -S 
> /usr/local/Zope-2.9.2/l
> 
> zope      3159  3158  3159  0    5 07:52 ?        00:00:02 
> /usr/local/bin/python 
> /usr/local/Zope-2.9.2/lib/python/Zope2/Startup/run.py -C
> /apps/zope/etc/zope
> 
> 
> 
>> I can't see anything relating to zope specifically & running the
>> zopect1 command results in this:
>> 
>> root at server [/usr/local/zope/instance3/bin]#
>> /usr/local/zope/instance3/bin/zopect1 fg
>> -bash: /usr/local/zope/instance3/bin/zopect1: No such file or
>> directory
> 
> in your local zope/bin directory you should have some script files
> like: runzope, runzope.bat and zopectl (this is what I have with zope
> 2.9.2  installation)
> 
> If you do not have these files, then something is truly pooched.
> 
> Here are the steps I used to install zope 2.9.2 (linux os)
> 
> 1) download zope 2.9.2 tarball into /usr/local/src (I used wget)
> 2) tar -xzf the zope tarball (unpack it)
> 3) change directory (cd) to the new zope subdirectory (created by the
> tar  command)
> 4) make sure you have python 2.4.2 (this is for zope 2.9.2, check
> what you  need for zope 2.9.3). My python 2.4.2 is installed in
> /usr/local/bin and  this directory is contained with the PATH
> environment variable (type echo  $PATH at the command prompt - if the
> directory containing your python 2.x is
> 
> not in PATH you will need to modify PATH)
> 5) at the command line enter: ./configure
> 6) at the command line enter: make
> 7) at the command line enter: make install    (This will install zope
> in  /usr/local/zope-2.9.x)
> 
> Now you need to add a 'zope' user to your system (if you do not
> already have
> 
> one)
> 8) cd /etc
> 9) groupadd zope (unless you already have a zope group defined)
> 10) useradd -g zope zope (this creates a zope user)
> 11) passwd zope (sets a password for the new user)
> 12) usermod -d /apps/zope zope (sets the home directory for the new
> user to  /apps/zope)
> 
> Now you need to create a zope instance:
> 
> 13) change directory to /usr/local/zope-2.9.x/bin
> 14) su zope (change to the zope user you created earlier)
> 15) at the command line enter: /usr/local/bin/python
> mkzopeinstance.py  (note: replace /usr/local/bin/python with the
> location of your python 2.4.x  installation)
> You will be prompted for a zope instance home (i use /apps/zope), a
> username
> 
> and a password (your zope admin account)
> 16) change directory to the new zope instance home (eg. cd
> /apps/zope) and  you should see several subdirectories.
> 17) check the ownership of the directories/files - they should all be
> owned  by zope and belong to the zope group.  To change them enter:
> chown zope *  (changes ownership); chgrp zope * (changes group)
> 
> Now you need to make a couple of small changes to the zope.conf file:
> 18) cd /apps/zope/etc
> 19) edit the zope.conf file (save a copy first!) and change
> "debug-mode" to  'on' (optional) and change "effective-user" to 'zope'
> 
> Now you need to start the zope instance:
> 20) cd /apps/zope/bin
> 21) ./zopectl start (or ./zopectl fg in case of errors during start
> up)
> 
> 
> HTH!
> 
> Jonathan
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )

---------- End Original Message ----------




More information about the Zope mailing list