Newbie woes - there's always one, eh?

Q&A's, tips, howto's
Locked
drramble
Posts: 4
Joined: Wed Jun 02, 2004 3:33 pm

Newbie woes - there's always one, eh?

Post by drramble »

Dear all,

Whilst trying to set up a simple (but powerful :) wiki/blog server, I came across newLisp and am very keen to use procedural techniques but I am stuck. I have tried httpd.lsp by itself, Apache cgi, the wiki and the IDE but none are working correctly.

I am pretty certain I've RTFM and Googled ad nauseam, so:

Does newlisp generally work ok on win98;
Why oh why does httpd.lsp crash or return 405?

As a clue to what's happening, the frames of the IDE are drawn but then I get 'document contains no data' and the MSDOS concole seems to spool the html that should be going to the browser, followed by:

list or string expected in function replace : HTTPD:buffer
called from user defined function execute-file
called from user defined function process-GET-request
called from user defined function process-http-request
called from user defined function net-server-accept
called from user defined function startServer

Please have mercy and tell me the single setup gotcha which I am missing!

Regards,

dr

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

newlisp-wiki does not run on newLISP httpd and will not in the forseeable future. The newer versions of newlisp-wiki need features of bigger webservers not present in newLISP httpd.

But there should be no problem to get newlisp-ide going on your Win98 box. Make sur you have a directory named: tmp in the root of the drive where you are starting newlisp-ide. And make sure newlisp.exe is in the path of Win98 execution. Start newlisp in the parent directory of ide:

newlisp httpd 80 ide

then direct your browser to http://localhost

newLISP wiki needs certain environment variables set by the webserver (see the wiki/README file and it also needs certain file-security features on the host where the server is running, which are not present neither httpd nor Wn98.

Lutz
Last edited by Lutz on Wed Jun 02, 2004 6:22 pm, edited 1 time in total.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

The next version of newlisp-wiki 3.2 will run on newLISP httpd, but will not be totally secure in certain page protection features.

Lutz

drramble
Posts: 4
Joined: Wed Jun 02, 2004 3:33 pm

Post by drramble »

OK, Apache2 is running OK and when I navigate to localhost/wiki I get a page with just this:

Code: Select all

 string expected : (nth 2 (parse url "/")) 
I have made these changes to httpd.conf:
  • Added "DirectoryIndex index.cgi"
    Added

    Code: Select all

    <Directory "C:/Program Files/Apache Group/Apache2/htdocs/wiki">
    	AllowOverride None
    	Options +ExecCGI
    	Order allow,deny
    	Allow from all
    </Directory>
The colors.cgi runs and produces a page of colors. I presume this is the desired behaviour. So what extra input does index.cgi require? Is there an environment variable that newlisp needs?

Thanks for the news about httpd, Lutz - I look forward to trying it (later :).

dr

drramble
Posts: 4
Joined: Wed Jun 02, 2004 3:33 pm

Success - useful win32 info

Post by drramble »

Dear All - Success with wiki and apache2 on winXP!

The _very_ useful configuration.cgi script from Lutz showed that SCRIPT_URI was not being supplied by Apache.

In httpd.conf mod_rewrite was not on by default. Uncomment the mod_rewrite line and then somewhere after that in httpd.conf (actual position does not appear significant) put:

RewriteEngine On

And hey presto - all is functional.

HTH

dr[/b]

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

The new version of the wiki http://newlisp.org/download/newlisp-wiki-3.2.tgz fixes this problem and some others.

This version does not require some environment variables and runs also fine on newLISP httpd! The only difference is, that posts/comments will have an IP signature of 0.0.0.0 becuase of the missing REMOTE_ADDR environment variable in newLISP httpd

In that version setup is already done with password demo, but you should do setup again with http://YourSite/wiki/index.cgi?setup und change everything to your specifications. You also can rename the directory wiki to anything else. Also: this software does not require cookies in the browser and works well on old browsers.

Lutz

drramble
Posts: 4
Joined: Wed Jun 02, 2004 3:33 pm

So for win98 wiki?

Post by drramble »

Yes, Lutz - winXP newlisp httpd is fine with wiki now, thanks you!

I still need ( :( ) to try and run this on a win98 box. Is there something _very_ wrong with win98 newlisp running httpd and wiki? The process starts up, but at the first request it drops out wiith the same error as before.

Should the cygwin version work on win98 or is there something else...?

Thanks again.

Matthew

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Have no Win98 machine around to try :(, how about c:\tmp directory do you have it? is newlisp.exe in the execution path? TCP/IP stack loaded? I am glad though everything is fine on your XP machine.

Lutz

Locked