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.
kneejerk newbie question
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
---- 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