I can't go to management screen with superuser passwd. I'm using correct name and passwd (as specified in access file), but Zope says "Unauthorized. You are not authorized to access this resource."
I'm using apache. No useful info in Apache's log's, pcgi.log and zope.log. Zope.cgi has been copied to apache cgi-bin dir. Apache has correct rewrite rule configuration as per WEBSERVER.txt. This is Zope 2.0.1 rpm. I also tried Zope 2.1.1 sources with same result. Please help me...
You are not the first one having problems with Zope + Apache installation. PCGI uses Rewrite module, which is a complex Apache facility, and otherwise, configuring Apache sometimes may be complicated. The best thing you can do is to browse the zope@zope.org archive (1999 oct - dec) for Apache, PCGI, or read some invaluable HOW-TOS. To whet your appetite here is my receipe (with some technical background) how to install Zope with Apache on RH6.1. If you manage (I am sure you will) to install Zope+PCGI+Apache, please write us what was the cause of your problem. It would be very nice to collect a list of troubles with Apache+Zope installation. NM
You are not the first one having problems with Zope + Apache installation.
If you manage (I am sure you will) to install Zope+PCGI+Apache, please write us what was the cause of your problem.
Main cause was not having your excellent howto at hand. Is it referenced at www.zope.org? I did not run the installation from the start, because I do not use precompiled binaries. I just run thru it and found this: 1. although I chowned Zope installation tree to nobody, I always started zope as root 2. Zope.cgi was owned by root instead of nobody. 3. I was always starting Zope with "python z2.py" instead of "./start"
It would be very nice to collect a list of troubles with Apache+Zope installation.
Sure, here it is and thanks a lot for your help. -- Milos Prudek
Milos Prudek wrote:
You are not the first one having problems with Zope + Apache installation.
If you manage (I am sure you will) to install Zope+PCGI+Apache, please write us what was the cause of your problem.
Main cause was not having your excellent howto at hand. Is it referenced at www.zope.org?
At the moment no. It will be a chapter of my forthcoming "Learning Zope" tutorial.
I did not run the installation from the start, because I do not use precompiled binaries. I just run thru it and found this: 1. although I chowned Zope installation tree to nobody, I always started zope as root 2. Zope.cgi was owned by root instead of nobody. 3. I was always starting Zope with "python z2.py" instead of "./start"
It would be very nice to collect a list of troubles with Apache+Zope installation.
Sure, here it is and thanks a lot for your help.
-- Milos Prudek
NM
It would be very nice to collect a list of troubles with Apache+Zope installation.
I have just verified that my troubles were also caused by using zpasswd.py to set SHA1 password: python zpasswd.py -u=super -p=super access while simply putting "super:super" into access works nicely... Is something wrong with the way I called zpasswd.py? -- Milos Prudek
Milos Prudek wrote:
It would be very nice to collect a list of troubles with Apache+Zope installation.
I have just verified that my troubles were also caused by using zpasswd.py to set SHA1 password: python zpasswd.py -u=super -p=super access while simply putting "super:super" into access works nicely...
I think the super should be actually "superuser".
Is something wrong with the way I called zpasswd.py?
-- Milos Prudek
I'm using the Pyton interpreter packaged with Zope: $ PYTHONPATH=.;bin/python zpasswd.py -u superuser -p 12345678 -e SHA -d *.iqsoft.hu access Miklos Nemeth
I have just verified that my troubles were also caused by using zpasswd.py to set SHA1 password: python zpasswd.py -u=super -p=super access while simply putting "super:super" into access works nicely...
It's the '=' sign that's causing the problem. I got bitten by that just yesterday If you run zpasswd.py with the command you have above, it will make a superuser called '=super' - check in the resulting access file. I believe that if you use the long option names (username, password) then you use the '=' sign. Dunno, didn't try it. Just remove the '=' and it'll work. Julian.
participants (3)
-
Julian Melville -
Milos Prudek -
Nemeth Miklos