Hello all, I have succefully configure a trust 1200v ups with nut-2.2.2 on an ubuntu 6.06 LTS by follow this instructions : http://www.networkupstools.org/doc/2.2.0/INSTALL.html I have the nut-cgi 2.0.3-4 from the ubuntu repos installed Now, I have problems to configure the nut-cgi in my web browser and I have this when i tried to http://localhost/cgi-bin/nut/upsstats.cgi. Error: can't open hosts.conf I added to /etc/apache2/sites-available/default : ScriptAlias /nut /usr/lib/cgi-bin/nut <Directory "/usr/lib/cgi-bin/nut"> AllowOverride Limit Options +ExecCGI Order allow,deny Allow from all </Directory> ls -l /etc/nut : -rw-r--r-- 1 root root 1104 2008-07-18 13:25 hosts.conf -rw-r--r-- 1 root root 162 2008-07-17 15:17 upsmon.conf -rw-r--r-- 1 root root 1542 2008-07-24 15:09 upsset.conf -rw-r--r-- 1 root root 1773 2008-07-17 13:58 upsstats.html -rw-r--r-- 1 root root 1867 2008-07-17 13:58 upsstats-single.html vi hosts.conf : MONITOR trust at localhost "trust" vi upsset.conf ### I_HAVE_SECURED_MY_CGI_DIRECTORY ### tail -f /var/log/apache2/error.log [Thu Jul 24 16:37:16 2008] [error] [client 217.136.113.223] upsstats: Can't open /etc/nut/hosts.conf: Permission denied [Thu Jul 24 16:37:17 2008] [error] [client 217.136.113.223] upsstats: Can't open /etc/nut/hosts.conf: Permission denied [Thu Jul 24 16:37:19 2008] [error] [client 217.136.113.223] upsstats: Can't open /etc/nut/hosts.conf: Permission denied [Thu Jul 24 17:02:23 2008] [error] [client 217.136.113.223] upsstats: Can't open /etc/nut/hosts.conf: Permission denied Any hint ? Thanks Georgy
Hi 2008/7/24 Georgy <georgy at bawetic.be>:> Hello all, > I have succefully configure a trust 1200v ups with nut-2.2.2 on an > ubuntu 6.06 LTS by follow this instructions : > http://www.networkupstools.org/doc/2.2.0/INSTALL.html > > I have the nut-cgi 2.0.3-4 from the ubuntu repos installed > Now, I have problems to configure the nut-cgi in my web browser and I > have this when i tried to http://localhost/cgi-bin/nut/upsstats.cgi. > > Error: can't open hosts.conf > > I added to /etc/apache2/sites-available/default : > > ScriptAlias /nut /usr/lib/cgi-bin/nut > <Directory "/usr/lib/cgi-bin/nut"> > AllowOverride Limit > Options +ExecCGI > Order allow,deny > Allow from all > </Directory> > > ls -l /etc/nut : >I guess you missed the dir itself: as per /usr/share/doc/nut-cgi/README.Debian> chmod 766 /etc/nutyou can check by doing an ls -a /etc/nut -- Arnaud -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20080724/da197da6/attachment.htm
On Thu, Jul 24, 2008 at 11:00 AM, Arnaud Quette <aquette.dev at gmail.com> wrote:> > I guess you missed the dir itself: > as per /usr/share/doc/nut-cgi/README.Debian > > chmod 766 /etc/nut > > you can check by doing an ls -a /etc/nutArnaud, do you mean 755? -- - Charles Lepple