Hello all, I'm working remotely, logged into a FreeBSD webserver which hosts several websites. While logged in via SSH, I've finished installing Zope behind the Apache server. I hope the answer is obvious: When I try to access the Zope installation (externally) at http://www.my_freebsd_website.com:8080 I get no page, though from within the freebsd webserver (while shelled into the webserver) I can open the Zope installation via the Lynx browser, http://www.localhost:8080 as expected. What could I be missing? Is there a way to test the 8080 port? Netstat output: # netstat -an -finet -ptcp Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 20 200.1.1.15.22 24.161.85.118.34614 ESTABLISHED tcp4 0 0 *.7786 *.* LISTEN tcp4 0 0 127.0.0.1.7786 *.* LISTEN tcp4 0 0 *.8021 *.* LISTEN tcp4 0 0 *.8080 *.* LISTEN tcp4 0 0 *.3306 *.* LISTEN tcp4 0 0 *.80 *.* LISTEN tcp4 0 0 *.587 *.* LISTEN tcp46 0 0 *.25 *.* LISTEN tcp4 0 0 *.25 *.* LISTEN tcp4 0 0 *.22 *.* LISTEN tcp46 0 0 *.22 *.* LISTEN tcp4 0 0 *.23 *.* LISTEN tcp4 0 0 *.21 *.* LISTEN Ps -aux output: www 806 0.0 0.3 25788 888 ?? S 10:43AM 0:15.44 /usr/local/bin/python2.3 /usr/local/www/Zope/lib/python/Zope/Startup/run.py -C /usr/local/www/Zope/instance-rsci/etc/zope.conf root 805 0.0 0.2 6000 640 ?? Ss 10:43AM 0:00.99 /usr/local/bin/python2.3 /usr/local/www/Zope/lib/python/zdaemon/zdrun.py -S /usr/local/www/Zope/lib/python/Zope/Startup/zopeschema.xml -b 10 -d -s /usr/local/www/Zope/instance-rsci/var/zopectlsock -x 0,2 -z /usr/local/www/Zope/instance-rsci /usr/ Any help would be much appreciated, David Radovanovic WhatsTheBigIdea.com, Inc. -- Bright ideas for the Web! 249 Partition Street Saugerties, New York 12477 (845) 247-0909 http://www.WhatsTheBigIdea.com
Apache is not going to forward your requests to other ports without some sort of intervention on your part. You need to set up some re-write rules for this to work. Here's a link to a howto that seems to be working well for some people. http://zope.psu.edu/index_html/tutorials/zopetut/zope_apache_ssl/document_vi...
Hello all,
I'm working remotely, logged into a FreeBSD webserver which hosts several websites. While logged in via SSH, I've finished installing Zope behind the Apache server.
I hope the answer is obvious: When I try to access the Zope installation (externally) at http://www.my_freebsd_website.com:8080 I get no page, though from within the freebsd webserver (while shelled into the webserver) I can open the Zope installation via the Lynx browser, http://www.localhost:8080 as expected. What could I be missing? Is there a way to test the 8080 port?
Netstat output:
# netstat -an -finet -ptcp Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 20 200.1.1.15.22 24.161.85.118.34614 ESTABLISHED tcp4 0 0 *.7786 *.* LISTEN tcp4 0 0 127.0.0.1.7786 *.* LISTEN tcp4 0 0 *.8021 *.* LISTEN tcp4 0 0 *.8080 *.* LISTEN tcp4 0 0 *.3306 *.* LISTEN tcp4 0 0 *.80 *.* LISTEN tcp4 0 0 *.587 *.* LISTEN tcp46 0 0 *.25 *.* LISTEN tcp4 0 0 *.25 *.* LISTEN tcp4 0 0 *.22 *.* LISTEN tcp46 0 0 *.22 *.* LISTEN tcp4 0 0 *.23 *.* LISTEN tcp4 0 0 *.21 *.* LISTEN
Ps -aux output:
www 806 0.0 0.3 25788 888 ?? S 10:43AM 0:15.44 /usr/local/bin/python2.3 /usr/local/www/Zope/lib/python/Zope/Startup/run.py -C /usr/local/www/Zope/instance-rsci/etc/zope.conf root 805 0.0 0.2 6000 640 ?? Ss 10:43AM 0:00.99 /usr/local/bin/python2.3 /usr/local/www/Zope/lib/python/zdaemon/zdrun.py -S /usr/local/www/Zope/lib/python/Zope/Startup/zopeschema.xml -b 10 -d -s /usr/local/www/Zope/instance-rsci/var/zopectlsock -x 0,2 -z /usr/local/www/Zope/instance-rsci /usr/
Any help would be much appreciated,
David Radovanovic WhatsTheBigIdea.com, Inc. -- Bright ideas for the Web! 249 Partition Street Saugerties, New York 12477 (845) 247-0909 http://www.WhatsTheBigIdea.com
_______________________________________________ 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 )
Can someone tell me whether/how zope supports views and stored procedures with zope. Do I need any other product besides the psycopg adapter? Any links to references appreciated. Regards David
Am Mittwoch, den 18.05.2005, 00:20 -0300 schrieb David Pratt:
Can someone tell me whether/how zope supports views and stored procedures with zope. Do I need any other product besides the psycopg adapter? Any links to references appreciated.
There is no special support... needed. views are tables and postgres has no stored procedures but stored functions. You use them the one or the other way with select (usually) so this fits perfectly :-) Just go on :-) Regards Tino
Can someone advise whether Zope3 with continue to use DTML for filesystem zsql or is there something else? I am starting something and concerned about compatibility say a year or more from now when Zope3 will become the standard. Regards, David
On Wednesday 18 May 2005 10:45, David Pratt wrote:
Can someone advise whether Zope3 with continue to use DTML for filesystem zsql or is there something else? I am starting something and concerned about compatibility say a year or more from now when Zope3 will become the standard.
Zope 3's SQL script supports DTML and will keep supporting it. However, note that Zope 3 does not encourage this line of development. Many people dealing with SQL decide to use sqlos; see http://codespeak.net/z3/. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training
Wow. This could really simplify things however I am still operating within the CMF framework so until there is more this way, I don't know what I can use now in this context? What would really be great is the form generation etc from the zope schema since I am not using Archetypes or Plone. I could really use that now. I haven't used Five before. Would this allow me to use the zope schema to autogenerate my forms with the validation but run it through Zope2? Regards David On Wednesday, May 18, 2005, at 11:56 AM, Stephan Richter wrote:
On Wednesday 18 May 2005 10:45, David Pratt wrote:
Can someone advise whether Zope3 with continue to use DTML for filesystem zsql or is there something else? I am starting something and concerned about compatibility say a year or more from now when Zope3 will become the standard.
Zope 3's SQL script supports DTML and will keep supporting it. However, note that Zope 3 does not encourage this line of development. Many people dealing with SQL decide to use sqlos; see http://codespeak.net/z3/.
Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training
On Wednesday 18 May 2005 16:50, David Pratt wrote:
Wow. This could really simplify things however I am still operating within the CMF framework so until there is more this way, I don't know what I can use now in this context? What would really be great is the form generation etc from the zope schema since I am not using Archetypes or Plone. I could really use that now. I haven't used Five before. Would this allow me to use the zope schema to autogenerate my forms with the validation but run it through Zope2?
Yep, Five will give you those features. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training
On 5/18/05, Stephan Richter <srichter@cosmos.phy.tufts.edu> wrote:
On Wednesday 18 May 2005 16:50, David Pratt wrote:
Wow. This could really simplify things however I am still operating within the CMF framework so until there is more this way, I don't know what I can use now in this context? What would really be great is the form generation etc from the zope schema since I am not using Archetypes or Plone. I could really use that now. I haven't used Five before. Would this allow me to use the zope schema to autogenerate my forms with the validation but run it through Zope2?
Yep, Five will give you those features.
But, at the moment, only for ascii, because the some Zope 3 widgets make unicode(string) calls for no apparent reason, which fails under Five if the string contains anything above chr(128). We are looking at solving that though. ;) -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
I've decided to stick with DTML for the time being since I can write and test my sql as sql and stick with my ZPT skills. I realize the DB API is also nice but the advantage of writing as DTML is that if you had to go back to plain sql if needed and you are not tied to your python code. Portability is important since you never know what the future brings and it is simpler to change interfaces than work out all your sql all over again on a larger app. I have looked at Five and Zope3 and I will likely wait for a few releases of 2.8 before jumping in on production sites but will put it on a development server to learn and experiment. Regards, David On Thursday, May 19, 2005, at 05:39 AM, Lennart Regebro wrote:
On 5/18/05, Stephan Richter <srichter@cosmos.phy.tufts.edu> wrote:
On Wednesday 18 May 2005 16:50, David Pratt wrote:
Wow. This could really simplify things however I am still operating within the CMF framework so until there is more this way, I don't know what I can use now in this context? What would really be great is the form generation etc from the zope schema since I am not using Archetypes or Plone. I could really use that now. I haven't used Five before. Would this allow me to use the zope schema to autogenerate my forms with the validation but run it through Zope2?
Yep, Five will give you those features.
But, at the moment, only for ascii, because the some Zope 3 widgets make unicode(string) calls for no apparent reason, which fails under Five if the string contains anything above chr(128). We are looking at solving that though. ;) -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
Lennart Regebro wrote at 2005-5-19 10:39 +0200:
... But, at the moment, only for ascii, because the some Zope 3 widgets make unicode(string) calls for no apparent reason, which fails under Five if the string contains anything above chr(128). We are looking at solving that though. ;)
One (probably not optimal) solution would be to use "sys.setdefaultencoding(some_appropriate_encoding_fitting_the_sites_encoding)" in "sitecustomize.py". -- Dieter
On 5/19/05, Dieter Maurer <dieter@handshake.de> wrote:
Lennart Regebro wrote at 2005-5-19 10:39 +0200:
... But, at the moment, only for ascii, because the some Zope 3 widgets make unicode(string) calls for no apparent reason, which fails under Five if the string contains anything above chr(128). We are looking at solving that though. ;)
One (probably not optimal) solution would be to use "sys.setdefaultencoding(some_appropriate_encoding_fitting_the_sites_encoding)" in "sitecustomize.py".
Yes, (with a leading import sys) this works if you put sitecustomize.py in the lib/python directory. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
participants (7)
-
David Pratt -
David Radovanovic -
Dieter Maurer -
Kevin J Kalupson -
Lennart Regebro -
Stephan Richter -
Tino Wildenhain