I keep getting 500 errors.

mathopd is running under daemontools.

In mathopd.conf, I have:

GLOBAL:
User www
StayRoot On

Server::Virtual::Control {
  Alias cgi-bin
  Location /path/to/cgi-bin
  ScriptUser www
  Specials {
    CGI { * }
  }
}

I'm trying to execute /cgi-bin/test.cgi (from apache dist - test-cgi)
which contains:

#!/bin/sh

# disable filename globbing
set -f

echo Content-type: text/plain
echo

echo CGI/1.0 test script report:
echo

echo argc is $#. argv is "$*".
echo

echo SERVER_SOFTWARE = $SERVER_SOFTWARE
[ more vars ]

# ll test.cgi
-rwxr-xr-x  1 www  www  - 757 Jul  2 01:41 test.cgi*

Here's the log:

2004-07-02 01:51:04.791306500 Fri Jul  2 01:51:04 2004 [55519] *** Mathopd/1.5p3 
starting
2004-07-02 01:51:04.792631500 Fri Jul  2 01:51:04 2004 [55519] NumConnections=64 
nfiles=7293
2004-07-02 01:51:18.168369500 Fri Jul  2 01:51:18 2004 [55519] cannot run scripts 
withouth changing identity
2004-07-02 01:51:18.168983500 500 www.mydomain.com - 11.22.33.44 10197 GET 
/cgi-bin/test.cgi - browser string

I've tried:

 * Setting the ownership of the file to root:wheel
 * Setting a ScriptUser www in Server::Virtual::Control

What am I missing?

-- 
Regards, Charles.

Reply via email to