World: r3wp
[CGI] web server issues
older newer | first last |
Janeks 24-Oct-2006 [604] | How the MS IIS is putting those cgi data into system/ports/input? I had problem with MS IIS - hangs on read-io - results to cgi timeout! |
Oldes 25-Oct-2006 [605] | Try to use Feedback - http://www.rebol.com/feedback.html- I don't think there is many people using Rebol with IIS |
Henrik 5-Dec-2006 [606x2] | has anyone made Carls blog script work with webserv.r? I get very odd behavior here. |
system/options/cgi/remote-addr is not registered, apparently, so I can't edit pages. | |
james_nak 22-Jan-2007 [608] | Does anyone have a nice "easy to use" sessions code like php so I can "secure" pages like the rebol blogger editing? |
Henrik 22-Jan-2007 [609] | james, let me know if you come up with something. I was doing some session stuff for blogger.r, but stopped due to lack of time. |
Maxim 22-Jan-2007 [610] | james, I am sure this has been discussed before and pekr and/or sunanada gave such an example... try doing a search or reading about it here in earlier conversations... |
Sunanda 22-Jan-2007 [611] | James: try this: http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=acgiss.r http://www.rebol.org/cgi-bin/cgiwrap/rebol/documentation.r?script=acgiss.r |
james_nak 22-Jan-2007 [612] | Thank you all. I will try it. |
Alek_K 15-Feb-2007 [613] | My ISP just changed OS for FreeBSD 6.2 - and all my rebol cgi scripts are not working! What should I ask them to? |
PeterWood 15-Feb-2007 [614] | Did you install Rebol yourself? |
Alek_K 15-Feb-2007 [615x3] | Yes - before I jast had in root directory a catalog with permissions and all worked. |
For 2 years :) | |
This (in readme) makes me think: "Requires specific library versions on Linux/Unix systems" | |
PeterWood 15-Feb-2007 [618x2] | Rebol.org had a similar problem when the ISP moved from Linux to BSD - they fixed it by running a linux compatibiity utility. Sunanda knows the details. |
..well more detail than I do. | |
Alek_K 15-Feb-2007 [620x2] | As I remember there was some words (2 years ago) about "argh! we must downgrade libraries just for You" (or similar - it was FreeBSD too) |
Thanks for help - I'll try to ask Sunanda | |
PeterWood 15-Feb-2007 [622x2] | There is a FreeBSD version of Rebol Core but I'm not sure which version of FreeBSD.. |
Given the small download and simple installation, it may be worth a try. | |
Alek_K 15-Feb-2007 [624] | Tried it - 500 as before :) |
Oldes 15-Feb-2007 [625] | Can you run Rebol from shell? |
Sunanda 15-Feb-2007 [626] | Al I know is that the IS neglected to start the "Linux compatability module" on a reboot -- and so EBOL.org 500ed for most of a day until we got t sorted. I've sent Alek the full emails from the ISP documenting the problem, but they don't realy say very much more. |
Alek_K 16-Feb-2007 [627] | Shared object "libm.so.2" not found, required by "rebol" So ISP said "this software is old - please upgrade, as we did". Argh... how can I argue with him? Any suggestions? I'm green in such subjects as freeBSD/unix/linux. |
Oldes 16-Feb-2007 [628] | Try to use feedback http://www.rebol.com/feedback.html |
Alek_K 16-Feb-2007 [629] | (ok - used feedback form) |
Oldes 16-Feb-2007 [630] | but I think, that it's not on the top in the priority list |
Gabriele 16-Feb-2007 [631] | 99% of the times a symlink solves the missing lib problem. |
Alek_K 17-Feb-2007 [632] | Gabriele - can You tell me what should I tell to "tech guy"? |
Gabriele 19-Feb-2007 [633x3] | it don't know freebsd well enough to give you a good answer. however, usually, if libm.so.2 is missing but they have libm.so.x (eg libm.so.3 or libm.so.4) then it is enough to have a ln -s libm.so.x libm.so.2 to make rebol work. same for any other missing libraries. this does not work always but works in most cases. |
it is possible that it can interfere with other apps, so they might refuse to do it. however, linux allows "local" libs (not system wide, but just for your cgi or even just for rebol), so if it's the same on freebsd they could do that. | |
otherwise, you need to ask Carl (repeatedly ;) for a new freebsd build for you. | |
Alek_K 19-Feb-2007 [636] | Thanks Gabriele! |
Josh 23-Feb-2007 [637x3] | Ok, I have a question regarding blog.r . I set it up on a server to play with it for a few minutes. After a couple kinks, I got it working with a few tests. I went to delete the test blogs but found they were created under the www-data user and group (this is on a linux server) and I do not have writes to delete or modify these files. In the future, is there a way to have the files created under a different user / group? |
Or is this server / apache config? I have no admin access to this box, so this could cause some annoyances | |
And my second question, is this blogger.r the most fully featured version of the orginal blog.r ? I've been out of the loop for a while. | |
Graham 23-Feb-2007 [640] | if the script can write the files, presumably you can use the same script to alter the attributes ( set-modes ). |
Josh 23-Feb-2007 [641x5] | I'm trying something to this effect: |
change-dir %blogs/ foreach file read %. [ port: open file set-modes port [ world-read: true world-write: true world-execute: true ] close port ] But with my tired mind, and the no end of 500 errors, I must be forgetting something. | |
And I am officially tired. It does help to make the script executable....... | |
Can you set the owner-id / group-id with set-mode? Is there a good resource on set-modes other than the function dictionary? I've been searching but haven't come up with anything... | |
I get an access error when I try to set the IDs, so it seems not possible... | |
Graham 23-Feb-2007 [646] | more likely you're in the wrong directory. |
Gabriele 23-Feb-2007 [647x2] | you can't change the owner of a file, unless you are root |
what's the easiest thing to do is.... delete those files from the script :) | |
Chris 23-Feb-2007 [649x5] | You shouldn't need to open a file port to set-modes, just set-modes %file.r [... modes ...] |
Also, I don't know if this is so with every setup, but when you create a file with a CGI script, the process owner, not the script owner, is the owner of the file, so you'd need to be able to do owner-read/owner-write. I usually set owner/group/world-read/write to true and execute to false. | |
I built this into my Sandbox port... | |
(see 'Files' group) | |
The process owner depends on the httpd config, right? | |
older newer | first last |