I'm using Debian Sarge (Testing). I installed Zope and have created a default instance. But I can't login ... the username/password I gave when creating the instance using zopectl aren't working. I tried changing the password using zpasswd.py, but that didn't work, either. Any ideas on what else I can try? Thanks! Jen
On Sat, 2003-11-08 at 19:31, jennyw wrote:
I tried changing the password using zpasswd.py, but that didn't work, either.
Any ideas on what else I can try?
1. Did you restart Zope after using zpasswd? 2. Ensure your zope user can write to instance_home/var HTH, Dylan
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 8 Nov 2003, Dylan Reinhardt wrote:
On Sat, 2003-11-08 at 19:31, jennyw wrote:
I tried changing the password using zpasswd.py, but that didn't work, either.
Any ideas on what else I can try?
1. Did you restart Zope after using zpasswd? 2. Ensure your zope user can write to instance_home/var
HTH,
Dylan
_______________________________________________ Zope maillist - Zope@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 )
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
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
On Sat, Nov 08, 2003 at 10:23:53PM -0800, Dennis Allison wrote:
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).
It took a second for me to realize it's running on port 9673. I can login fine! Once I realized it was apache, I took a closer look at the mod_rewrite stuff: <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> I changed the rule to: RewriteRule ^/cgi-bin/Zope.cgi/(.*) /usr/lib/cgi-bin/Zope.cgi/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] and it works! Thanks! Jen
It looks like you've solved your problem... but you should be aware that both pcgi and Python 2.2 are non-standard for that version of Zope. Python 2.1.3 is the officially recommended/supported version of Python and it's far more common nowadays to build Zope against wo_pcgi. That's not to say they don't work (obviously they're working now), but you should be sure to bring both those things up if you have issues in the future. FWIW, Dylan On Sat, 2003-11-08 at 21:13, 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
You should be able to use zpasswd to set a password into inituser. You then need to restart Zope. I don't remember what the standard Debian installation looks like, but if it's the typical one where z2.py resides in the same directory as lib, you can delete the start and stop scripts and simply reinstall. Be sure to write down the password provided for the `admin' account during the initialization dialog. (Of course, if you are being brave and installing 2.7 there is a whole new mechanism.) Which Zope are you using, which python? On Sat, 8 Nov 2003, jennyw wrote:
I'm using Debian Sarge (Testing). I installed Zope and have created a default instance. But I can't login ... the username/password I gave when creating the instance using zopectl aren't working.
I tried changing the password using zpasswd.py, but that didn't work, either.
Any ideas on what else I can try?
Thanks!
Jen
_______________________________________________ Zope maillist - Zope@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 )
participants (3)
-
Dennis Allison -
Dylan Reinhardt -
jennyw