On Jun 7, 2005, at 10:25 AM, Lon Baker wrote:> We are deploying a Rails application on a clients server. One of
> the functions is the ability to restart the mail server, Postfix in
> this case, and everything works in CGI mode. However when we switch
> over to FastCGI it does not work.
>
> Does anyone have any experience with sort of functionality and
> FastCGI?
>
Hi Lon,
There shouldn''t be a difference unless you''re running the CGI
process
under Suexec, and that user can restart the mail server, but then you
aren''t running FastCGI under suexec (you didn''t include the
line in
the config: FastCgiSuexec /usr/local/sbin/suexec is the line for
Apache) and the main web server user does not have permission to
restart Postfix.
Make sure things are wrapped in suexec with a user that can do it, or
set it as a no password sudo item for the user.
- Jason