I downloaded and installed Zope for Linux as per the instructions at zope.org. When I try to start Zope with ./start & I get a report that it has started up on ports 8080, 8021, and 8099. Then I get this: Traceback (innermost last): File "/usr/zope/Zope-2.2.1-linux2-x86/z2.py", line 708, in ? pf = open(PID_FILE, 'w') IOError: [Errno 13] Permission denied: '/usr/zope/Zope-2.2.1-linux2-x86/var/Z2.p id' I installed it as root and am root when I issue the start command. This is a stock Red Hat 6.2 Intel box.
Hi, my first posting here - and hopefully helpful :) At 22:13 15.09.00, John VanDyk wrote:
When I try to start Zope with ./start ... Then I get this: Traceback (innermost last): File "/usr/zope/Zope-2.2.1-linux2-x86/z2.py", line 708, in ? pf = open(PID_FILE, 'w') IOError: [Errno 13] Permission denied: '/usr/zope/Zope-2.2.1-linux2-x86/var/Z2.p id'
I installed it as root and am root when I issue the start command.
This is exactly what you should not be. Normally no daemons should run as "root", because it's a potential security hole. Your linux box should have a user "zope", under which the daemon should run. just do a su - zope and run the "start" script again. For me that did do the trick. Martin
I installed it as root and am root when I issue the start command.
This is exactly what you should not be. Normally no daemons should run as "root", because it's a potential security hole. Your linux box should have a user "zope", under which the daemon should run. just do a
su - zope
and run the "start" script again. For me that did do the trick.
I thought it was more secure to start it as root so that it runs as nobody (top shows it running as user nobody). I created a blank Z2.pid file, changed the owner to nobody, and now it seems to be working. Can anyone confirm the most secure way to run Zope?
Read the /doc/INSTALL When you run install you should give it the username and group ./install -g nobody -u nobody Try that and start it again. J
From: John VanDyk <jvandyk@iastate.edu> Date: Fri, 15 Sep 2000 15:13:43 -0500 To: zope@zope.org Subject: [Zope] Newbie - Zope won't start
I downloaded and installed Zope for Linux as per the instructions at zope.org.
When I try to start Zope with ./start & I get a report that it has started up on ports 8080, 8021, and 8099.
Then I get this:
Traceback (innermost last): File "/usr/zope/Zope-2.2.1-linux2-x86/z2.py", line 708, in ? pf = open(PID_FILE, 'w') IOError: [Errno 13] Permission denied: '/usr/zope/Zope-2.2.1-linux2-x86/var/Z2.p id'
I installed it as root and am root when I issue the start command.
This is a stock Red Hat 6.2 Intel box.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
John VanDyk wrote:
I downloaded and installed Zope for Linux as per the instructions at zope.org.
When I try to start Zope with ./start & I get a report that it has started up on ports 8080, 8021, and 8099.
Then I get this:
Traceback (innermost last): File "/usr/zope/Zope-2.2.1-linux2-x86/z2.py", line 708, in ? pf = open(PID_FILE, 'w') IOError: [Errno 13] Permission denied: '/usr/zope/Zope-2.2.1-linux2-x86/var/Z2.p id'
I installed it as root and am root when I issue the start command.
This is a stock Red Hat 6.2 Intel box.
You should REVISIT steps 3 & 5 of the install instructions. If you are ROOT Zope will run as 'nobody'. Therefore 'nobody' must be given write access to the var directory. HTH, -- Tim Cook -- Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT * Specializing in Open Source Business Systems * FreePM Project Coordinator http://www.freepm.org OSHCA Founding Supporter http://www.oshca.org
participants (4)
-
J. Atwood -
John VanDyk -
marwin98 -
Tim Cook