Apache2 and FPCGI 2.0
Fairlight
fairlite at fairlite.com
Sun Sep 12 13:44:08 PDT 2010
With neither thought nor caution, John Sica blurted:
> First thing I verified. Also, when apache2 runs as the default user
> "daemon", the htm file gets populated, unlike when run as "filepro", the
> file get created but is zero length and still owned by filepro. The
> only problem with running apache2 as daemon, is the browser always
> returns the message that the file can't be read due to the permissions,
> which is correct.
>
> Mark suggests the filepro code should be looked at, rather than the
> apache2 configuration, but changing it back to using apache1 fixes the
> problem. That's why I asked if anyone had done this before, or am I the
> first. Unless and environment variable can be added or the apache2
> config changed, I don't think we're going to change several hundred
> lines code to work around this problem.
Well, I'm not exactly saying the -code- needs to be looked at. You
extrapolated a bit too far.
Look, if the file gets populated when run with apache running as daemon,
and the file is -still- owned by filepro in the end (it's just that the
permissions are too tight), then it seems the filepro -code- is fine.
What I'm suggsting, since things mysteriously fail when apache runs as
filepro and the file isn't populated, is that filepro is somehow crashing
or otherwise unable to utilise the file. It doesn't seem to be code, it
seems to be program failure. My suspicions would run to something about fP
being suid and trying to set EUID when it's already set. Except that makes
little sense because I know I have a cluster where apache2 is filepro and
filepro is SUID, and it works fine.
Maybe your fpcgi modes are wrong. I'd have to look at the cluster where we
have it working to see what it should be.
-Something- is off, and I don't think it's necessarily the code, I think
it's something about filepro reacting poorly to the environment. But a
redirect capture of clerk or report to file with a big, honkin' crash at
the end of all the line drawing garbage would tell you -what-.
mark->
More information about the Filepro-list
mailing list