[Zope] Problems logging into Zope

Dennis Allison allison at sumeru.stanford.EDU
Sun Nov 9 01:23:53 EST 2003


I am not sure I grok your setup.

>From what you say, I assume you are able to get the Zope welcome 
page. Can you move around following the links?

Can you get to the ZMI ( localhost:8080 is a usual path to Zope,
localost:8080/manage takes you to the ZMI with a bit of password
negotiation).

On Sat, 8 Nov 2003, jennyw wrote:

> On Sat, Nov 08, 2003 at 08:26:04PM -0800, Dennis Allison wrote:
> > Good point.  Create a user (e.g., zope) to be the owner of zope 
> > and start zope as that user (not superuser).  Pay careful attention 
> > to the protections on the var directory.
> 
> On Debian, root invokes z2.py, but I think it's running as zope since the -u option
> is being used.  Maybe looking at the running processes will be helpful? Here they
> are:
> 
> root       914  0.0  1.7  6632 4460 ?        S    19:41   0:00 /usr/bin/python2.2 
> /usr/lib/zope/z2.py --icp 9676 -W 9674 -m 9675 -l /var/log/zope/default/Z2.log 
> --pid /var/run/zope/default/Z2.pid -f 8021 -p /usr/lib/cgi-bin/Zope.cgi -u zope -M 
> /var/log/zope/default/Z2-detailed.log -z /usr/lib/zope -w 9673 
> INSTANCE_HOME=/var/lib/zope/instance/default SOFTWARE_HOME=/usr/lib/zope/lib/python
> 
> root       915 99.9  6.6 19424 17060 ?       R    19:41   0:05 /usr/bin/python2.2 
> /usr/lib/zope/z2.py --icp 9676 -W 9674 -m 9675 -l /var/log/zope/default/Z2.log 
> --pid /var/run/zope/default/Z2.pid -f 8021 -p /usr/lib/cgi-bin/Zope.cgi -u zope -M 
> /var/log/zope/default/Z2-detailed.log -z /usr/lib/zope -w 9673 
> INSTANCE_HOME=/var/lib/zope/instance/default SOFTWARE_HOME=/usr/lib/zope/lib/python
> 
> Not sure why there are two of them.  I'm using Python 2.2 with Zope 2.6.2.
> 
> > On 8 Nov 2003, Dylan Reinhardt wrote:
> > > 1. Did you restart Zope after using zpasswd?
> 
> Yep. I tried creating an inituser file, too (in addition to access). That didn't 
> work, either.
> 
> > > 2. Ensure your zope user can write to instance_home/var
> 
> I don't really understand how permissions affects zope, but I tried chowning the 
> directory to zope and it didn't work. I even tried setting chmod -R a+rw default. 
> Funny thing is that when I did that, it didn't work at all ... when I loaded the 
> page, it said resource temporarily unavailable.
> 
> By the way, I'm using pcgi, and the opening page does work (the one that doesn't 
> require the password).  I assume that means that apache and zope are working well 
> together, but ...
> 
> The readme file said to add these llines to httpd.conf:
> 
> <IfModule mod_rewrite.c>
> RewriteEngine on
>   RewriteCond %{HTTP:Authorization}  ^(.*)                             
>   RewriteRule ^/Zope/(.*) /usr/lib/cgi-bin/Zope/$1 
> [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
> </IfModule>
> 
> Although I just tested it with the lines taken out and the first page is still 
> loading. Maybe the setup isn't quite right?
> 
> Thanks!
> 
> Jen
> 




More information about the Zope mailing list