Hi Sergei, I've been running Zope on FreeBSD with apache/pcgi using ZServer and it works quite well. With this approach ZServer is the long running process and Zope.cgi handles the pcgi connection: Here s Zope.cgi: #!/usr/local/etc/Zope-1.10.2-src/pcgi/pcgi-wrapper PCGI_NAME=Main PCGI_MODULE_PATH=/usr/local/etc/Zope-1.10.2-src/lib/python/Main.py PCGI_PUBLISHER=/usr/local/etc/Zope-1.10.2-src/pcgi/pcgi_publisher.py PCGI_EXE=/usr/local/bin/python PCGI_PID_FILE=/usr/local/etc/Zope-1.10.2-src/Zope.pid PCGI_ERROR_LOG=/usr/local/etc/Zope-1.10.2-src/var/pcgi.log PCGI_SOCKET_FILE=/usr/local/etc/Zope-1.10.2-src/Zope.soc PCGI_DISPLAY_ERRORS=1 BOBO_REALM=Zope BOBO_DEBUG_MODE=1 INSTANCE_HOME=/usr/local/etc/Zope-1.10.2-src You've got to edit some lines in 'start.py' in ZServer so that they match up properly. with a couple of rewrite rules I am also serving multiple sites with one running Zope (ZServer) process: <VirtualHost opensource.spvi.com> Port 80 ServerAdmin steve@spvi.com DocumentRoot /usr/local/www/sites/test1 ServerName opensource.spvi.com ErrorLog /var/log/opensource_error.log TransferLog /var/log/opensource_access.log RewriteEngine on RewriteRule ^/opensource/(.*) /$1 RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^/(.*) /usr/local/etc/zope/Zope.cgi/opensource/$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l] </VirtualHost> -steve ---------------------------------------------------------------------- Steve Spicklemire Silicon Prairie Ventures, Inc. (and) University of Indianapolis steve@spvi.com steve@estel.uindy.edu Software/Hardware Development Physics and Earth-Space Science (317) 917-1411 (317) 788-3313
"Sergei" == Sergei Barbarash <sgt@russ.ru> writes:
Sergei> The FreeBSD python port doesn't include parser module. You Sergei> need to add it by hand in files/Setup file, and then build Sergei> it. Sergei> I managed to get Zope up on ZHTTPServer, but I failed to Sergei> do so with Apache/pcgi (on FreeBSD also). If anyone Sergei> managed to run Zope.cgi with Apache on FreeBSD-3.x, I Sergei> would like to hear their comments. Sergei> -- sgt