Greetings. I'm trying to run a simple perl script with Mathopd and FreeBSD 4.5. I receive a 403 forbidden error each time I attempt to access the script and in the error log I see:
Tue Apr 2 11:46:30 2002 [838] *** Mathopd/1.3pl7 starting
Tue Apr 2 11:46:43 2002 [838] child process 840 created
Tue Apr 2 11:46:43 2002 [840] refusing to set uid to 1
Tue Apr 2 11:46:43 2002 [838] child process 840 exited with status 255
Tue Apr 2 11:46:53 2002 [838] child process 841 created
Tue Apr 2 11:46:53 2002 [841] refusing to set uid to 1
Tue Apr 2 11:46:53 2002 [838] child process 841 exited with status 255
Here is the test script:
#!/usr/bin/perl
print "HTTP/1.0 200 OK\n\n"; # Note, I've tried this line with 1 \n and no \n's!
print "Content-type: text/html\n\n"; # this is correct
print "<html><head><title>No Comments</title></head>\n"; # No brainer here
print "</html>"; # No brainer here
And here is my mathopd.conf file:
Umask 026
Tuning {
NumConnections 120
BufSize 12288
}
User daemon
StayRoot On
PIDFile /tmp/mathopd/pid
Log /tmp/mathopd/log.%Y%m%d
ErrorLog /tmp/mathopd/errors.%Y%m
Control {
Symlinks On
Types {
text/plain { * }
text/css { css }
application/octet-stream { zip gz tgz exe class }
application/futuresplash { spl }
model/vrml { wrl }
application/pdf { pdf }
text/html { html htm }
image/gif { gif }
image/jpeg { jpg }
}
Specials {
Imagemap { map }
CGI { cgi }
Redirect { url }
}
External {
/usr/bin/perl { pl }
}
IndexNames { index.cgi home.cgi index.html default.html home.html index.htm index.html redirect.url }
}
DefaultName localtoast
Server {
Port 80
Virtual {
Host 10.0.0.35
Control {
Alias /
Location /usr/local/mathopd
Specials {
CGI { * }
}
}
}
}
Does anyone know what I am doing wrong here? TIA!
