Zope + Roxen Challenger: Is it possible?
Before I learned about Zope I was very impressed with the Roxen Challenger Server and all its tags and modules. Has anybody tried using both at the same time? I was thinking using PCGI/FastCGI, which I don't know a thing yet. I'm willing to try it out but I was wondering if anybody already invented the wheel. Adrian Esteban Madrid Network Support, ATS Brigham Young University
Before I learned about Zope I was very impressed with the Roxen Challenger Server and all its tags and modules. Has anybody tried using both at the same time? I was thinking using PCGI/FastCGI, which I don't know a thing yet. I'm willing to try it out but I was wondering if anybody already invented the wheel.
It is not only possible, it is a must! :-) I am using both. This way I can use all features of Zope and Roxen at the same time. All Zope output will be parsed by Roxen -> I can use Roxens graphical text, diagram, layout, whatever-modules to generate things on the fly. And best of all, I dont have to use old apache... (Everyone that hasnt used Roxen, point your browser to http://www.roxen.com now.) :-) Example: 1. Compile Zope in /opt/zope 2. Add a cgi-module to Roxen. 3. Change everything marked with '*' in Roxen: * Allow listing of cgi-bin directory : Yes Allow symlinks : Yes * CGI-bin path : /Zope/ CGI-script extensions : cgi Builtin variables (security, comments etc.) Extra environment variables : Empty * Handle *.cgi : Yes Limits... Log CGI errors to... : main log file * Parse RXML in CGI-scripts : Yes Pass environment variables : No Provide the <cgi> tag : Yes * Raw user info : Yes Run scripts as : Run user scripts as owner : Yes * Search path : /opt/zope/ Send decoded password : No Set the supplementary group access list : Yes Treat non-executable files as ordinary files : Yes Warn for CGIs executing as root : Yes 4. Add Zope.cgi to your Directory Module in Roxen. 5. Permissions! If you set "Run scripts as :" to root:root, it will run. But you don't want to do that. Create a new user, or use nobody:nobody or something. Make sure to update /opt/zope to have the correct permissions. 6. http://path/Zope/ 7. Tada! Zope is alive! Hopefully... Try to login! 8. If login fails, you will see this in the roxen log: "CGI: Failed to get user information for". Permissions are wrong, or "Raw user info" is not set to yes as described above. Else, send me a mail... /Magnus Heino
Thanks for your help setting Zope on Roxen. Right now it looks like I'm half-way through the process. I did all that you said and I got to get the homepage. Nevertheless, that's how far I can get. No Zope logo, no Quickstart (I'm using the bare Zope install, no modifications yet). Anyway, I didn't follow your instructions _exactly_, I modified them for my installation but here it goes what I did.
1. Compile Zope in /opt/zope
/usr/local/zope
2. Add a cgi-module to Roxen.
3. Change everything marked with '*' in Roxen:
* Allow listing of cgi-bin directory : Yes Allow symlinks : Yes * CGI-bin path : /Zope/ CGI-script extensions : cgi Builtin variables (security, comments etc.) Extra environment variables : Empty * Handle *.cgi : Yes Limits... Log CGI errors to... : main log file * Parse RXML in CGI-scripts : Yes Pass environment variables : No Provide the <cgi> tag : Yes * Raw user info : Yes Run scripts as : Run user scripts as owner : Yes * Search path : /opt/zope/
/usr/local/zope/
Send decoded password : No Set the supplementary group access list : Yes Treat non-executable files as ordinary files : Yes Warn for CGIs executing as root : Yes
4. Add Zope.cgi to your Directory Module in Roxen.
I copied /usr/local/zope/Zope.cgi to /usr/local/roxen/server/modules/directories
5. Permissions! If you set "Run scripts as :" to root:root, it will run. But you don't want to do that. Create a new user, or use nobody:nobody or something. Make sure to update /opt/zope to have the correct permissions.
I'm using Run scripts as: nobody:nobody in the CGI Executable Support module.
If I do that I only get a listing of /usr/local/zope. But if I do http://path/Zope/Zope.cgi I finally get Zope's home screen. The problem, again, is that I can't go any further. I don't even get the Zope logo image.
7. Tada! Zope is alive! Hopefully... Try to login!
Tried login in but it doesn't work, times out like Quickstart.
8. If login fails, you will see this in the roxen log: "CGI: Failed to get user information for". Permissions are wrong, or "Raw user info" is not set to yes as described above. Else, send me a mail...
No errors, just times out. On the other hand, Roxen by itself works OK if I start it manually. When I add a module or make changes in the configuration and hit Save it tells me that it can't find the server, but if I reload it's OK. when I went to do a reload on /etc/rc.d/init.d it gave me a warning. It said that no pid file was set, although there is /tmp/roxen_pid:0 file. Anyway, I know all this is just a mess and I don't know much about any of these two prorams but they really look great. I hope I can learn how to use them. Thanks for all your help, -- Adrian Esteban Madrid Network Support, ATS Brigham Young University
4. Add Zope.cgi to your Directory Module in Roxen.
I copied /usr/local/zope/Zope.cgi to /usr/local/roxen/server/modules/directories
If I do that I only get a listing of /usr/local/zope. But if I do
You should not copy the Zope.cgi to the Roxen modules directory, you should add Zope.cgi to your "Directory Module" in the Roxen www-config. It probably says "index.html, index.htm, default.htm" etc right now. This way the Zope.cgi will be displayed if you enter your cgi-mountpoint in roxen, as you have enabled the listing of the cgi-dir. I am using the "Index files only" module instead. This way Roxen will not return a listing of the directory, if no Zope.cgi , index.html, default.htm etc is found.
http://path/Zope/Zope.cgi I finally get Zope's home screen. The problem, again, is that I can't go any further. I don't even get the Zope logo image.
I cant think of why that would happen...
No errors, just times out. On the other hand, Roxen by itself works OK if I start it manually. When I add a module or make changes in the configuration and hit Save it tells me that it can't find the server, but if I reload it's
Have you edited the Roxen config by hand? Seems to me as if the configuration port and the webserver port for configuration are not the same. Have a look in the configfile, it is set at two places. /Magnus Heino
Thanks again for your help. I decided to reintall everything: Linux, Roxen, Zope. This time I compiled Roxen and Zope from the source and Roxen is working wonderfully but Zope doesn't want to work at all. When I try http://url/Zope or http://url/Zope/Zope.cgi I get an error page saying: ! Temporarily Unavailable The resource you requested is temporarily unavailable - please try again later. When I look inside the source I get: <!-- Error parsing pcgi info file pcgi-wrapper-version 2.0a5 --> Do I need to start Zope in any way? I'll apreciate any help/clues I can get. -- Adrian Esteban Madrid Network Support, ATS Brigham Young University
Adrian Esteban Madrid wrote:
Thanks for your help setting Zope on Roxen. Right now it looks like I'm half-way through the process. I did all that you said and I got to get the homepage. Nevertheless, that's how far I can get. No Zope logo, no Quickstart (I'm using the bare Zope install, no modifications yet). Anyway, I didn't follow your instructions _exactly_, I modified them for my installation but here it goes what I did.
[snippety-snip]
Send decoded password : No Set the supplementary group access list : Yes Treat non-executable files as ordinary files : Yes Warn for CGIs executing as root : Yes
4. Add Zope.cgi to your Directory Module in Roxen.
I copied /usr/local/zope/Zope.cgi to /usr/local/roxen/server/modules/directories
Not _exactly_clear, but this is not what you need to do. What ypou need to do is to go to your "Directory Parsing Module" link in the management sscreen for your virtual server. There you will see the index settings. You need to add ",Zope.cgi" (no quotes) to the trailing edge of the field.
5. Permissions! If you set "Run scripts as :" to root:root, it will run. But you don't want to do that. Create a new user, or use nobody:nobody or something. Make sure to update /opt/zope to have the correct permissions.
I'm using Run scripts as: nobody:nobody in the CGI Executable Support module.
I had problems using the colon, but it worked fine when I changed it to just nobody, YMMV -- "They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown." -- Carl Sagan
Magnus Heino wrote:
Before I learned about Zope I was very impressed with the Roxen Challenger Server and all its tags and modules. Has anybody tried using both at the same time? I was thinking using PCGI/FastCGI, which I don't know a thing yet. I'm willing to try it out but I was wondering if anybody already invented the wheel.
It is not only possible, it is a must! :-)
I am using both. This way I can use all features of Zope and Roxen at the same time. All Zope output will be parsed by Roxen -> I can use Roxens graphical text, diagram, layout, whatever-modules to generate things on the fly.
And best of all, I dont have to use old apache... (Everyone that hasnt used Roxen, point your browser to http://www.roxen.com now.) :-)
Question: Is there any way to remove the "/zope/Zope.cgi" from the URLs as with Apache? I have been playing with Roxen/Zope all night. Seems like it _would_ be a powerful combo. I just wish I could copy over an existing site running ZServer (see other post) :-| -- "They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown." -- Carl Sagan
+----[ Magnus Heino ]--------------------------------------------- | | > Roxen Question: | > Is there any way to remove the "/zope/Zope.cgi" from the URLs as with | > Apache? | | Well, there is a rewrite module available... I havent played with it | though. | | Have you had a look at it? It works just fine here. Has been for quite a while. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | Milton ACN: 082 081 472 | M:+61 416 022 411 |72 Col .Sig PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|Specialist
Magnus Heino wrote:
Roxen Question: Is there any way to remove the "/zope/Zope.cgi" from the URLs as with Apache?
Well, there is a rewrite module available... I havent played with it though.
Have you had a look at it?
Not yet, but I will be now. Thanks. Bill -- "They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown." -- Carl Sagan
participants (4)
-
Adrian Esteban Madrid -
Andrew Kenneth Milton -
Bill Anderson -
Magnus Heino