Skip to Content.
Sympa Menu

en - Re: [[sympa-users] fcgi trouble...]

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Adam Bernstein <address@concealed>
  • To: Marco Gaiarin <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [[sympa-users] fcgi trouble...]
  • Date: Thu, 03 Nov 2005 09:40:52 -0800

> [2005-11-03 16:20:09]: error: command not in docroot
> (/usr/lib/cgi-bin/sympa/wwsympa.fcgi)

When you compile suexec, you have to provide the --suexec-docroot flag
so that it will execute files out of Sympa's directory, like
--suexec-docroot=/home/sympa. I also set the --suexec-caller flag to
Sympa's uid. See http://httpd.apache.org/docs/1.3/suexec.html#install

> [Thu Nov 3 16:32:07 2005] [warn] FastCGI: server
> "/var/www/liste/cgi-bin/wwsympa.fcgi" (uid 103, gid 101) restarted (pid
> 21885)
> Cache-control: no-cache
> Content-Type: text/html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML>

Seeing HTML in the log file means that somehow the URL is not seen as a
script, although you do have mostly the right script-related
configuration. This seems to have an error:

AddHandler cgi-script .fcgi .cgi .pl .sh

cgi-script should be fastcgi-script, but I don't know if that's the
problem. For what it's worth, my config file has things in this order:

AddHandler fastcgi-script fcgi fcgi fpl
FastCgiServer /home/sympa/bin/wwsympa.fcgi
ScriptAlias /lists /home/sympa/bin/wwsympa.fcgi

(though the ScriptAlias is actually inside a virtual host definition).

ab





Archive powered by MHonArc 2.6.19+.

Top of Page