Re: [Zope] Integrate with existing http server
Well, that was lovely. Set PATH_INFO to "preserve" and my PHP stops working. Definately not the solution. PHP must run, so back to square one... *sigh* Anyone? Maybe pcgi is not the way to go? Are there any other options for Windows, non-apache? Kevin On 18 Jun 2003 at 15:28, Kevin Rattai wrote:
Moving forward, slowly... I figured out one problem.
In OmniHTTPd, the PATH_INFO is not "preserved". Setting perserve PATH_INFO on and the default web site is now coming up. Still, there are path issues. Can't get to manage or helpsys:
http://test.uveais.ca/Zope.pcgi
Zope log shows: 192.168.0.1 3509 - - [18/Jun/2003:15:21:31 -0500] "GET " 200 3370 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401"
Omni log shows: KEVIN test.uveais.ca - [18/Jun/2003:15:21:31 -0500] "GET /zope.pcgi/p_/ZopeButton HTTP/1.1" 404 197 "http://test.uveais.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401" Error reading "O:\Zope000\zope.pcgi\p_\ZopeButton" - The system cannot find the path specified. KEVIN test.uveais.ca - [18/Jun/2003:15:21:31 -0500] "GET /zope.pcgi/manage_page_style.css HTTP/1.1" 404 197 "http://test.uveais.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401" Error reading "O:\Zope000\zope.pcgi\manage_page_style.css" - The system cannot find the path specified. KEVIN test.uveais.ca - [18/Jun/2003:15:21:31 -0500] "GET / HTTP/1.1" 200 - "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401" [Standard CGI Launch] WorkPath: O:\Zope000 CmdLine: "O:\Zope000\pcgi\win32\pcgi-wrapper.exe" "O:\Zope000\zope.pcgi" Args: Path Info:
Guesses?
Kevin
On 18 Jun 2003 at 11:53, Kevin Rattai wrote:
New to list, can't find info in archives. I would expect this is an "old" question.
Windows XP Pro, OmniHTTPd server.
Zserver runs fine: http://www.uveais.ca:8080/
Test site gets error: http://test.uveais.ca/Zope.pcgi
~~~~~~~~~~~~~~~~~~~~~~~~~
Log file reference:
KEVIN test.uveais.ca - [18/Jun/2003:11:20:58 -0500] "GET /Zope.pcgi/p_/ZopeButton HTTP/1.1" 404 197 "http://test.uveais.ca/Zope.pcgi" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401" Error reading "O:\Zope000\Zope.pcgi\p_\ZopeButton" - The system cannot find the path specified. KEVIN test.uveais.ca - [18/Jun/2003:11:20:58 -0500] "GET /Zope.pcgi HTTP/1.1" 200 - "http://test.uveais.ca/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401" [Standard CGI Launch] WorkPath: O:\Zope000 CmdLine: "O:\Zope000\pcgi\win32\pcgi-wrapper.exe" "O:\Zope000\Zope.pcgi" Args: Path Info: /Zope.pcgi
~~~~~~~~~~~~~~~~~~~~~~~~~
Error message:
Site Error
An error was encountered while publishing this resource.
Resource not found Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: Zope.pcgi GET
~~~~~~~~~~~~~~~~~~~~~~~~~
Zope.pcgi as follows:
#!o:\zope000\pcgi\win32\pcgi-wrapper.exe # # This PCGI info file was generated automatically by # the Zope installer. See the file doc/WEBSERVER.txt # for more information on setting up PCGI support.
PCGI_NAME=Zope PCGI_PORT=8090 PCGI_MODULE_PATH=o:\zope000\lib\python\Zope PCGI_PUBLISHER=o:\zope000\pcgi\pcgi_publisher.py PCGI_EXE=o:\zope000\bin\python.exe PCGI_SOCKET_FILE=o:\zope000\var\pcgi.soc PCGI_PID_FILE=o:\zope000\var\pcgi.pid PCGI_ERROR_LOG=o:\zope000\var\pcgi.log PCGI_DISPLAY_ERRORS=1 BOBO_REALM=Zope BOBO_DEBUG_MODE=1 INSTANCE_HOME=o:\zope000
~~~~~~~~~~~~~~~~~~~~~~~~~
Can anyone tell me where I went wrong? Has anyone else got this to work with OmniHTTPd? It seems to run, just seems unable to find paths...
tia,
Kevin
Kevin Rattai wrote:
Anyone? Maybe pcgi is not the way to go? Are there any other options for Windows, non-apache?
IIS? http://www.zope.org/Members/andym Apache works great on Windows BTW, any reason why not? PCGI is not commonly used anymore, I would avoid it if you can. -- Andy McKay http://www.agmweb.ca
On 18 Jun 2003 at 22:36, Andy McKay wrote:
Kevin Rattai wrote:
Anyone? Maybe pcgi is not the way to go? Are there any other options for Windows, non-apache?
I absolutely prefer, and in some ways am locked in, to use OmniHTTPd. I have looked into Apache as an alternative, but my needs can't justify the time required to figure out the configuration file. And I haven't found a nice configuration tool that's Open Source / free that runs on Windows. IIS is simply not an option. What about FastCGI? There's an ISAPI module that is supposed to work for IIS and Zope. Maybe I can get it to integrate with Omni. I just can't find a good reference on it's configuration/integration with IIS. Otherwise, though I'd rather not, I have to just live with Zserver (not that it's a terrible thing), but then I have to leave it on an alternate port. And either try integrating it as frames into an existing site, or use a re- director. If I decide to work with Zope, is there any way to use Zserver with a multiple domain type of configuration, or would I be able to run multiple instances of Zserver on different ports? thanks, Kevin
--On Donnerstag, 19. Juni 2003 11:02 Uhr -0500 Kevin Rattai <kevin@uveais.ca> wrote:
On 18 Jun 2003 at 22:36, Andy McKay wrote:
Kevin Rattai wrote:
Anyone? Maybe pcgi is not the way to go? Are there any other options for Windows, non-apache?
I absolutely prefer, and in some ways am locked in, to use OmniHTTPd. I have looked into Apache as an alternative, but my needs can't justify the time required to figure out the configuration file. And I haven't found a nice configuration tool that's Open Source / free that runs on Windows. IIS is simply not an option.
What about FastCGI? There's an ISAPI module that is supposed to work for IIS and Zope. Maybe I can get it to integrate with Omni. I just can't find a good reference on it's configuration/integration with IIS.
Using Zope with FastCGI or through PCGI can be regarded as deprecated and therefore it is not recommended to use it. The suggest way is to run Zope standalone using ZServer (and if necessary behind Apache or Squid).
If I decide to work with Zope, is there any way to use Zserver with a multiple domain type of configuration, or would I be able to run multiple instances of Zserver on different ports?
use VirtualHosting -> see Zope Book Virtual Hosting chapter. -aj
participants (3)
-
Andreas Jung -
Andy McKay -
Kevin Rattai