[ic] Problem with vlink.c

vasile_abo@wexim.com vasile_abo@wexim.com
Mon, 12 Feb 2001 13:45:17 +0100


Hello All

I'm trying to use Interchange without success.
Installation gone very well, but at execution
I got only 500 Error in browser and in httpd errorlog
"Premature end of script headers:
 /home/wexim/wexim-www/cgi-bin/shop"

The webserver is run by 'nobody' and
interchange is restarted in UNIX mode every 2 hours from
a cron by user 'wexim':
23 0-23/2 * * * /home/wexim/interchange/bin/interchange
  -r -u SocketPerms=0666 DebugFile=/home/wexim/interchange/tst.log

BTW, it fails also in INET mode.

Perl version: "This is perl, v5.6.0 built for i686-linux"
$uname -a
Linux xxx 2.2.13 #1 SMP Thu Nov 9 10:30:50 EST 2000 i686 unknown

The name of compiled program is 'shop'.
If I launch 'shop' from the command prompt, I get
nothing, ie :
----
$shop
$
----

If I make:
$echo "GET /cgi-bin/shop/index.html HTTP/1.1" | shop
I get in the logs:
Runtime error: REQUEST_METHOD is not defined at
 /home/wexim/interchange/lib/Vend/Server.pm line 106.

When testing, I remade 'vlink.c' :
$cc -o shop vlink.c
$chmod 6777 /home/wexim/www/cgi-bin/shop

How to enable a more wide debugging (except
DebugFile=xxx)? How to execute some tests
from command-line prompt?

I didn't find answer to these questions in
the FAQ, neither in mailing lists' archive.

If you have any idea on how to debug, or
where the problem could be, please advice.
(Please write also to my email address
vasile_abo@wexim.com 'cause I'm getting
interchange list only in digest form)

Have a nice day,
bye

Vasile Calmatui