I'm trying zope on linux but I have come a cross a problem. I windows, I simply changed the port number from 8080 to 80 in zope.conf so I could get to my site without typeing the port. But in Linux, I did the same thing but it always tells me that some other server already occupied this port. (and I just started too, so there shouldn't be any server. right??) I'm now trying to figure out what server to close but with no luck at all.. can someone help me so I can display my site on port 80? --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping
--On 15. Dezember 2005 05:20:33 -0800 Allen Huang <swapp0@yahoo.com> wrote:
I'm trying zope on linux but I have come a cross a problem.
I windows, I simply changed the port number from 8080 to 80 in zope.conf so I could get to my site without typeing the port. But in Linux, I did the same thing but it always tells me that some other server already occupied this port. (and I just started too, so there shouldn't be any server. right??) I'm now trying to figure out what server to close but with no luck at all.. can someone help me so I can display my site on port 80?
The recommended way is to run Zope on some unpriveledged port and use Virtual hosting with Apache or Squid. CHeck the Virtual Hosting chapter of the Zope Book for details. -aj
Allen Huang schrieb:
I'm trying zope on linux but I have come a cross a problem.
I windows, I simply changed the port number from 8080 to 80 in zope.conf so I could get to my site without typeing the port.
But in Linux, I did the same thing but it always tells me that some other server already occupied this port. (and I just started too, so there shouldn't be any server. right??)
I'm now trying to figure out what server to close but with no luck at all..
can someone help me so I can display my site on port 80?
You can basically do the same in Linux. You need to start zope as root (it switches to nobody or your configured user from zope.conf) to be able to bind port 80 - and you have to make sure no other program currently binds there (as apache or the like) netstat -lntp should tell you. Recommended, however (even more for productive sites) is at least a simple apache running in front of zope and zope using unprivilegued port (>1024) and possibly non privilegued user even on start. HTH Tino
On 12/15/05, Allen Huang <swapp0@yahoo.com> wrote:
I'm trying zope on linux but I have come a cross a problem.
I windows, I simply changed the port number from 8080 to 80 in zope.conf so I could get to my site without typeing the port.
But in Linux, I did the same thing but it always tells me that some other server already occupied this port. (and I just started too, so there shouldn't be any server. right??)
You may be using a distro that starts Apache on boot. Check your init scripts. If you want Zope running on 80, you'll need to either disable the init script starting that other server, or configure that other server to run on a different port if you really want that service. That said, I agree with others about the standard way of running Zope (unprivileged user, high port, behind Apache or other). RB
Allen, Most likely your default installation installed apache to run on startup. You need to stop Apache. You can try the following as root: /sbin/service http stop If that fails, look for apachectl - and stop the service with that. Then pull the service from startup services. To do that, try as root: /sbin/chkconfig -level 2345 httpd off I don't know how all linux varients implement the above examples. Andrew Sawyers On Thu, 2005-12-15 at 05:20 -0800, Allen Huang wrote:
I'm trying zope on linux but I have come a cross a problem.
I windows, I simply changed the port number from 8080 to 80 in zope.conf so I could get to my site without typeing the port.
But in Linux, I did the same thing but it always tells me that some other server already occupied this port. (and I just started too, so there shouldn't be any server. right??)
I'm now trying to figure out what server to close but with no luck at all..
can someone help me so I can display my site on port 80?
______________________________________________________________________ Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping _______________________________________________ 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 (5)
-
Allen Huang -
Andreas Jung -
Andrew Sawyers -
Robert Boyd -
Tino Wildenhain