kneejerk newbie question

Q&A's, tips, howto's
Locked
tom
Posts: 168
Joined: Wed Jul 14, 2004 10:32 pm

kneejerk newbie question

Post by tom »

Hi guys,

with both newlisp wiki and blog, with each directory under apache's document root, I get a plain text version of index.cgi. Do I have to configure apache in some way?

Everything works under the newlisp httpd server...

Thanks.

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

Post by Lutz »

yes, you have to configure apache to use the cgi extension for scripts

---- from apache httpd.conf ---------------
# To use CGI scripts:
AddHandler cgi-script .cgi .pl
-----------------------------------------------

mine enables perl .pl and .cgi files for scripts (newlisp in my case). The first line in every scrpt file must point to the right program, i.e.:

#!/usr/bin/newlisp

also make sure that all cgi files have executable permission, typically you do:

chmod 755 *.cgi

to get:

-rwxr-xr-x

for all cgi files

On unix also make sure that all lines in the scripts are terminated with line feeds only not carriagereturn-linefeed as on Windows. All files are shipped correctly for Linux/Unix and should run on both.

Lutz

tom
Posts: 168
Joined: Wed Jul 14, 2004 10:32 pm

Post by tom »

thanks, I should have known better. I've always executed cgi's the ScriptAlias directory. Oh, I also needed to add

execCGI

to the options line.

I'm brand new to newlisp. I'll try to think just a little before I post!
:-)

Thanks again.

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

Post by Lutz »

>>> I'm brand new to newlisp.

Welcome to the group Tom, everybody was a newbee to newLISP at one time, that's why it's called 'new'(bee)LISP ;), but I think your problem is rather a Apache config task, let us know how it goes.

Lutz

tom
Posts: 168
Joined: Wed Jul 14, 2004 10:32 pm

Post by tom »

I'm up and running. :-)

the two tweaks to httpd.conf, plus fixing a dependancy problem (easy fix) did the trick.

Locked