Hi, i am new to Zope but it already works for me, good thing it seems to be, thanks! My problem is to understand how to use Zope in different modes. As i see, it could be done by itself, only ZServer; and with Apache like PCGI and FastCGI and mod_pcgi (that one i havnt tried yet). Only thing i cant figure out is how to get 2.3.3 working in a single-threaded mode. I am just curious about it, is it possible any more at all? doc/INSTALL.txt says There are two ways to run Zope: -- ... - If you *only* want to use PCGI and you don't need multi-threaded operation, you can have a special program, the pcgi_publisger, start Zope for you. See the WEBSERVER.txt file for details on ^^^^^^^^^^^^^^^^^^^^^^ using Zope with an existing webserver. and doc/WEBSERVER.txt is quite vague about it :( saying: Using Zope in single-threaded mode with pcgi_publisher ------------------------------------------------------ The installation process should create a 'Zope.cgi' PCGI file. Copy the 'Zope.cgi' file to your web server's cgi-bin directory. On Unix you can also create a symbolic link to 'Zope.cgi' from your cgi-bin directory. For example:: ln -s /home/amos/Zope/Zope.cgi /usr/local/apache/cgi-bin/Zope At this point you should perform any other steps you web server requires to install and configure a CGI script. Note: For more information on PCGI check out Jeff Bauer's "PCGI pages", http://starship.skyport.net/crew/jbauer/persistcgi/. When your Zope.cgi file is correctly configured as a CGI script with your web server, you are ready to access Zope through the web. You should point your browser at: 'http://youmachine.example.com:8998/cgi-bin/Zope.cgi/manage' (Your URL maybe be different depending on how your web server is configured.) You should be prompted to enter a username and password. Enter the Zope "super manager" name and password. ---------------------------- AND WHAT I DID IS LIKE THIS ---------------------------- To get single-threaded Zope going and did the following 1. installed Zope from source like 'python w_pcgi.py' into /home/zope/zopew 2. made /home/zope apache's DocumentRoot and let it treat all files ending as .cgi CGI scripts 3. assured apache treats http://localhost/zopew/test.cgi as CGI and executes it. 4. without starting Zope with ./start and without redirecting Auht. headers from apache i issued in a brauser http://localhost/zopew/Zope.cgi/manage/, and without ending slash and without manage/ but nothing happened. It tired and eventually timed out. (with message - Temporarily Unavailable, i believe its Konquerer) I expected it to start to communicate with Zope, without ZServer. When i tried to run ./Zope.cgi from the command line, it hanged to, seems like waiting for input. Practically i can do very well without single-threaded mode but i have a old machine and there runs weird Zope, what i try to understand. it has proccesses like nobody 1605 0.0 0.3 6720 3464 ? S Jun06 0:15 python /mnt/Zope-1.10.3/pcgi/pcgi_publisher.py nobody 1608 0.0 0.3 6720 3464 ? S Jun06 11:56 python /mnt/Zope-1.10.3/pcgi/pcgi_publisher.py nobody 1609 0.0 0.3 6720 3464 ? S Jun06 3:00 python /mnt/Zope-1.10.3/pcgi/pcgi_publisher.py nobody 5798 0.2 17.1 169812 166616 ? S Jun06 140:29 python /mnt/zope2/pcgi/pcgi_publisher.py nobody 5869 0.0 0.8 12360 7780 ? S Jun06 3:00 python /mnt/zope2/pcgi/pcgi_publisher.py and i suspect it runs i this single-treaded mode, right? Sorry for a long letter, but you know, i got a problem too! Imre
Imre Oolberg writes:
Only thing i cant figure out is how to get 2.3.3 working in a single-threaded mode. I am just curious about it, is it possible any more at all? Do you use "pcgi" only to run Zope in single threaded mode?
Then, you can avoid "pcgi" and run it directly only with ZServer: "z2.py" has the "-t" argument. It controls the number of (worker) threads. "-t 1" will give you one worker thread (there will also be a ZServer thread, thus you have 2 threads). Dieter PS: I would not rely on the fact that Zope runs in single threaded mode under "pcgi". This may have been true in earlier times but changed in the meantime. I do not say, it has changed. But it might...
participants (2)
-
Dieter Maurer -
Imre Oolberg