Hi Have just installed Zope under Win2K and it works fine - I see a lot of people mention using Apache to server Zope, but isnt Zope a webserver itself? I can browse to http://server:8080/ and view Zope pages, so why would I need Apache? Also, How do I set Zope up so it handles PHP tags? thanks in advance Lucas Young
Newbie: Zope a webserver? Serving PHP and PerlYour second question almost answers the first. You can use Zope either with or without Apache. One way to handle existing PHP sites is to put Apache in front of Zope. Then add configuration parameters to Apache to make it examine the URLs of requests. If the URL is for PHP pages, then handle the request in Apache/PHP. If the URL is for Zope pages, pass it over to Zope. That way you don't even have to think about making Zope do PHP. As for setting "Zope up so it handles PHP tags", I'll let someone else answer that, 'cause I don't know for sure whether it can even be done. -- Loren ----- Original Message ----- From: Lucas Young (c) To: 'zope@zope.org' Sent: July 13, 2000 03:44 PM Subject: [Zope] Newbie: Zope a webserver? Serving PHP and Perl Hi Have just installed Zope under Win2K and it works fine - I see a lot of people mention using Apache to server Zope, but isnt Zope a webserver itself? I can browse to http://server:8080/ and view Zope pages, so why would I need Apache? Also, How do I set Zope up so it handles PHP tags? thanks in advance Lucas Young
----- Original Message ----- From: Lucas Young (c)
Also, How do I set Zope up so it handles PHP tags?
Take a look at a HOW-TO I wrote for one way to serve PHP from within Zope: www.zope.org/Members/Mamey/PHP ------------------------------------------------------ Andres Corrada-Emmanuel Email: andres@corrada.com ------------------------------------------------------
On Thu, Jul 13, 2000 at 05:44:23PM -0500, Lucas Young (c) wrote:
Have just installed Zope under Win2K and it works fine - I see a lot of people mention using Apache to server Zope, but isnt Zope a webserver itself? I can browse to http://server:8080/ and view Zope pages, so why would I need Apache?
Also, How do I set Zope up so it handles PHP tags?
Your second question answers your first. Zope's ZServer does indeed serve HTTP, but it only serves Zope objects. Apache, on the other hand, allows you to serve much more, including PHP. You can use Apache to integrate the two, there's a How-To on Zope.org that explains how to do this, IIRC. Basically, reasons for using Apache are: - Using SSL (but there is an addon product for ZServer that covers this as well) - Integration with other content, like static files and, in your case PHP. - Virtual servers, competing for ip addresses or ports. - Serving virtual servers out of Zope. This is not a complete list, but these are the most important reasons. On the other hand, using Apache introduces another level of complexity to your setup, introducing a speed bump, a potential source of misconfiguration problems, and another link in the chain that could break. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio -----------------------------------------------------
participants (4)
-
andres@corrada.com -
Loren Stafford -
Lucas Young (c) -
Martijn Pieters