RE: [Zope] Re: Newbie: running Zope for the first time - Linux
They will definitely co-exist - install Python 2.1.3 from source in /usr/local, and change the binary name for /usr/local/bin/python to /usr/local/bin/python2.1. Install Zope from source by using that python: e.g. 'cd [zope-src-dir]; python2.1 wo_pcgi.py' Sean -----Original Message----- From: Alberto Odor [mailto:aodor@cnr.gob.mx] Sent: Wednesday, March 26, 2003 4:04 PM To: zope@zope.org Subject: [Zope] Re: Newbie: running Zope for the first time - Linux "J Cameron Cooper" <jccooper@jcameroncooper.com> escribió en el mensaje news:3E82364E.20707@jcameroncooper.com...
if I run the ./start script I get: 1) ZServer HTTP host:AomServidor port:8080 2) ZServer FTP host:AomServidor port:8021 3) ZServer PCGI usr/local/Zope/var/pcgi.soc 4) z2 STARTUP EXEPTION: file /usr/local/Zope/z2.py line 84 - a user was
not
specified to set uid to; fix this to start as root
If I try to access Zope Management console with http://localhost:8080 or http://127.0.0.1:8080 or http://AomServidor:8080 i get: 1) The connection was refused when attempting to connect to http://........:8080
In order to start Zope as root (necessary to use port 80 on many unixish setups) you have to specify a normal system user to drop into when Zope is done using root powers -- it will not run as root for security reasons.
If you do not start it as root this is not a problem.
Please see docs/SETUID.txt for more information.
--jcc
_______________________________________________ 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 )
I tried that and it didn't work. Could the problem be that my RedHat 8 installation has python 2.2.1? If so, would I solve the problem installing python 2.1.3? can 2.2.1 and 2.1.3 coexist in the same server? Alberto
_______________________________________________ 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 )
OK Sean: As you told me I did the following: logged as root Installed Python2.1 from source and its working fine Installed Zope 2.6.1 from source using Python 2.1 I chmod o+t var If I try to ./start being logged as root I get a message: A user was not specified to setuid to; I also get a message saying that /usr/local/Zope/var directory isn't owned by root (I have read the SETUID.txt document but could not come out with an answer) If I try to ./start being logged as aodor (./start -u aodor) I get a message: access denied Can you tell me what's missing? Can ZServer and Apache run together or do I have to shutdown Apache to start ZServer? What should the permissions, Owner and Group for the var directory be? Alberto <sean.upton@uniontrib.com> escribió en el mensaje news:AA7A72A46469D411B8B300508BE329500AE4D622@desi2... They will definitely co-exist - install Python 2.1.3 from source in /usr/local, and change the binary name for /usr/local/bin/python to /usr/local/bin/python2.1. Install Zope from source by using that python: e.g. 'cd [zope-src-dir]; python2.1 wo_pcgi.py' Sean -----Original Message----- From: Alberto Odor [mailto:aodor@cnr.gob.mx] Sent: Wednesday, March 26, 2003 4:04 PM To: zope@zope.org Subject: [Zope] Re: Newbie: running Zope for the first time - Linux "J Cameron Cooper" <jccooper@jcameroncooper.com> escribió en el mensaje news:3E82364E.20707@jcameroncooper.com...
if I run the ./start script I get: 1) ZServer HTTP host:AomServidor port:8080 2) ZServer FTP host:AomServidor port:8021 3) ZServer PCGI usr/local/Zope/var/pcgi.soc 4) z2 STARTUP EXEPTION: file /usr/local/Zope/z2.py line 84 - a user was
not
specified to set uid to; fix this to start as root
If I try to access Zope Management console with http://localhost:8080 or http://127.0.0.1:8080 or http://AomServidor:8080 i get: 1) The connection was refused when attempting to connect to http://........:8080
In order to start Zope as root (necessary to use port 80 on many unixish setups) you have to specify a normal system user to drop into when Zope is done using root powers -- it will not run as root for security reasons.
If you do not start it as root this is not a problem.
Please see docs/SETUID.txt for more information.
--jcc
_______________________________________________ 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 )
I tried that and it didn't work. Could the problem be that my RedHat 8 installation has python 2.2.1? If so, would I solve the problem installing python 2.1.3? can 2.2.1 and 2.1.3 coexist in the same server? Alberto
_______________________________________________ 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 ) _______________________________________________ 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 Thu, 2003-03-27 at 01:49, Alberto Odor wrote:
If I try to ./start being logged as root I get a message: A user was not specified to setuid to; I also get a message saying that /usr/local/Zope/var directory isn't owned by root (I have read the SETUID.txt document but could not come out with an answer)
If I try to ./start being logged as aodor (./start -u aodor) I get a message: access denied
You're almost there. :-) The "-u aodor" belongs *in* your start script, provided as an argument to z2.py. Your start script must be executed *by* root if you connect to port 80 (or any other port below 1024). Setting the -u option allows Zope to function as this less-privileged user *after* privileged tasks (e.g., connecting to port 80) have been performed. The aodor user will also need the appropriate permissions, particularly on the var directory. In the past (pre 2.5), I saw better results by installing *as* some user besides root, but I'm not sure if that makes a difference any more... now it's just habit. HTH, Dylan
GREAT!!! I have Zope running and also Plone on top of Zope One problem :( If I go to ZMI and go to the Plone site and view the site, it looks great However if I try to load the Plone site using http://localhost I get the Apache front page instead of the Plone site Alberto "Dylan Reinhardt" <zope@dylanreinhardt.com> escribió en el mensaje news:1048707934.7223.75.camel@ida.dylanreinhardt.com...
On Thu, 2003-03-27 at 01:49, Alberto Odor wrote:
If I try to ./start being logged as root I get a message: A user was not specified to setuid to; I also get a message saying that /usr/local/Zope/var directory isn't owned by root (I have read the SETUID.txt document but could not come out with an answer)
If I try to ./start being logged as aodor (./start -u aodor) I get a message: access denied
You're almost there. :-)
The "-u aodor" belongs *in* your start script, provided as an argument to z2.py. Your start script must be executed *by* root if you connect to port 80 (or any other port below 1024). Setting the -u option allows Zope to function as this less-privileged user *after* privileged tasks (e.g., connecting to port 80) have been performed.
The aodor user will also need the appropriate permissions, particularly on the var directory. In the past (pre 2.5), I saw better results by installing *as* some user besides root, but I'm not sure if that makes a difference any more... now it's just habit.
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 )
Alberto Odor wrote at 2003-3-26 22:17 -0600:
If I go to ZMI and go to the Plone site and view the site, it looks great However if I try to load the Plone site using http://localhost I get the Apache front page instead of the Plone site
This means that Apache is serving port 80 and not Zope. Read the documentation about "Apache and Zope" you can find on zope.org. Also, searching the mailing list archives will give you thousands of related posts... You see, this is an FAQ. Dieter
participants (4)
-
Alberto Odor -
Dieter Maurer -
Dylan Reinhardt -
sean.upton@uniontrib.com