<div dir="ltr">Hi<br><br><div class="gmail_quote">2008/7/24 Georgy &lt;<a href="mailto:georgy@bawetic.be">georgy@bawetic.be</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br>
I have succefully configure a trust 1200v ups with nut-2.2.2 on an<br>
ubuntu 6.06 LTS by follow this instructions :<br>
<a href="http://www.networkupstools.org/doc/2.2.0/INSTALL.html" target="_blank">http://www.networkupstools.org/doc/2.2.0/INSTALL.html</a><br>
<br>
I have the nut-cgi &nbsp;2.0.3-4 from the ubuntu repos installed<br>
Now, I have problems to configure the nut-cgi in my web browser and I<br>
have this when i tried to <a href="http://localhost/cgi-bin/nut/upsstats.cgi" target="_blank">http://localhost/cgi-bin/nut/upsstats.cgi</a>.<br>
<br>
Error: can&#39;t open hosts.conf<br>
<br>
I added to /etc/apache2/sites-available/default :<br>
<br>
ScriptAlias /nut /usr/lib/cgi-bin/nut<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;Directory &quot;/usr/lib/cgi-bin/nut&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AllowOverride Limit<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Options +ExecCGI<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Order allow,deny<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Allow from all<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;/Directory&gt;<br>
<br>
ls -l /etc/nut :<br>
</blockquote><div><br>I guess you missed the dir itself: <br>as per /usr/share/doc/nut-cgi/README.Debian<br>&gt; chmod 766 /etc/nut<br>&nbsp;<br>you can check by doing an ls -a /etc/nut<br><br><br>-- Arnaud<br></div></div></div>