Xymon Mailing List Archive search

nginx as the web server

list Mark Felder
Mon, 17 Nov 2014 10:56:00 -0600
Message-Id: <user-95240c19253d@xymon.invalid>

On Sat, Nov 15, 2014, at 15:23, Bill Arlofski wrote:
 <facepalm>

Mark, list, et al

OK, I see what the problem is (was).

When you run the configure script for Xymon, it asks you what user name
your
web server is running under.

This is so that when you run:

make install

it know what ownerships to set on some of the dirs in the www directory
(notes, snap, rep) and on the ~xymon/server/etc/critical.cfg file.

My critical.cfg file was 664 apache:apache from when I answered the "what
user
does your web server run under" question on a previous install/upgrade.

I just changed my web server from apache to nginx, and of course the
username
that nginx runs under is not "apache". ;)

I had caught this on the snap and rep dirs in www, but completely missed
the
critical.cfg file in etc.

So this is 100% working under nginx now, but my only concern is that I
got no
indication in any logs that the webserver (nginx) could not write to the
critical.cfg file, so that is kind of interesting.

Hopefully, sharing my embarrassment will same someone else the trouble.
:)
This is good info. I don't do manual installs -- I install it from
FreeBSD ports which handles the configuration of Xymon automatically.
And FreeBSD shares the user/group "www" between Apache and Nginx, which
avoids this problem.