Hi Tobi, I moved the cropper directory to /var/www/html/cropper<div>and changed the basehtml page to:</div><div><br></div><div><div>&lt;/STYLE&gt;</div><div><br></div><div>&lt;script src=&quot;/var/www/html/cropper/lib/prototype.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</div>
<div>&lt;script src=&quot;/var/www/html/cropper/lib/scriptaculous.js?load=builder,effects,dragdrop&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</div><div>&lt;script src=&quot;/var/www/html/cropper/cropper.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</div>
<div>&lt;script src=&quot;/var/www/html/cropper/smokeping-zoom.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</div><div><br></div></div><div>But then I see this in the error log:</div><div><br></div><div><div>
<br></div><div>[Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not exist: /var/www/html/var, referer: <a href="http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway">http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway</a></div>
<div>[Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not exist: /var/www/html/var, referer: <a href="http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway">http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway</a></div>
<div>[Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not exist: /var/www/html/var, referer: <a href="http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway">http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway</a></div>
<div>[Sun Dec 02 15:43:01 2012] [error] [client 10.56.36.59] File does not exist: /var/www/html/var, referer: <a href="http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway">http://10.59.1.55/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-02%2012:39;end=now;target=Production.VPN-Gateway</a></div>
<div>[</div></div><div><br></div><div>And when you say &quot;<span style="font-family:arial,sans-serif;font-size:13px"> </span><span style="font-family:arial,sans-serif;font-size:13px">If you store smokeping in cgi-bin then </span><span style="font-family:arial,sans-serif;font-size:13px">things will fall appart&quot; I&#39;m confused by this.  I thought the smokeping.fcgi has to be in the cgi-bin directory?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I&#39;m missing something.  Given the path above and the basehtml configs, what needs to be done for this to work?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks, Matt</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">.</span></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 2, 2012 at 10:31 AM, Tobias Oetiker <span dir="ltr">&lt;<a href="mailto:tobi@oetiker.ch" target="_blank">tobi@oetiker.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Matt,<br>
<div class="im"><br>
Today Matt Almgren wrote:<br>
<br>
&gt; Where is that path defined?<br>
<br>
</div>in the basepage.html file<br>
<br>
by default the stuff is in a subdirectory underneath where<br>
smokeping.cgi is stored. If you store smokeping in cgi-bin then<br>
things will fall appart.<br>
<br>
you have to move the cropper directory somewhere else and modify<br>
the basepage.html file accordingly.<br>
<br>
cheer<br>
tobi<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; Thanks!<br>
&gt;<br>
&gt;<br>
&gt; -- iMatt<br>
&gt;<br>
&gt; On Dec 2, 2012, at 3:58 AM, Tobias Oetiker &lt;<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi Matt,<br>
&gt; &gt;<br>
&gt; &gt; have a look at the html template you are using, it might be that<br>
&gt; &gt; the cropper.js file does not get loaded ... the path must be<br>
&gt; &gt; correct for it to load, and it must not reside inside the cgi-bin<br>
&gt; &gt; directory as this would cause the webserver to try to execute the<br>
&gt; &gt; code.<br>
&gt; &gt;<br>
&gt; &gt; cheers<br>
&gt; &gt; tobi<br>
&gt; &gt;<br>
&gt; &gt; Today Matt Almgren wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; And if I move the cropper directory - say to the /var/www/html/cropper<br>
&gt; &gt;&gt; directory, I get these messages:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; [Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or<br>
&gt; &gt;&gt; unable to stat: /var/www/cgi-bin/cropper, referer:<br>
&gt; &gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway</a><br>

&gt; &gt;&gt; [Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or<br>
&gt; &gt;&gt; unable to stat: /var/www/cgi-bin/cropper, referer:<br>
&gt; &gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway</a><br>

&gt; &gt;&gt; [Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or<br>
&gt; &gt;&gt; unable to stat: /var/www/cgi-bin/cropper, referer:<br>
&gt; &gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway</a><br>

&gt; &gt;&gt; [Sun Dec 02 02:30:13 2012] [error] [client 10.56.36.58] script not found or<br>
&gt; &gt;&gt; unable to stat: /var/www/cgi-bin/cropper, referer:<br>
&gt; &gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2023:15;end=now;target=Internal.Gateway</a><br>

&gt; &gt;&gt;<br>
&gt; &gt;&gt; So something is telling it to look in that directory for the scripts.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; On Sun, Dec 2, 2012 at 2:24 AM, Matt Almgren &lt;<a href="mailto:almgren@gmail.com">almgren@gmail.com</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt; Config file, if that helps:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; # NOTE: do not put the Image Cache below cgi-bin<br>
&gt; &gt;&gt;&gt; # since all files under cgi-bin will be executed ... this is not<br>
&gt; &gt;&gt;&gt; # good for images.<br>
&gt; &gt;&gt;&gt; imgcache = /opt/smokeping/cache<br>
&gt; &gt;&gt;&gt; imgurl   = /cache<br>
&gt; &gt;&gt;&gt; datadir  = /opt/smokeping/data<br>
&gt; &gt;&gt;&gt; piddir  = /opt/smokeping/var<br>
&gt; &gt;&gt;&gt; #cgiurl   = <a href="http://localhost/cgi-bin/smokeping.cgi" target="_blank">http://localhost/cgi-bin/smokeping.cgi</a><br>
&gt; &gt;&gt;&gt; #cgiurl   = <a href="http://localhost/smokeping/smokeping.cgi" target="_blank">http://localhost/smokeping/smokeping.cgi</a><br>
&gt; &gt;&gt;&gt; cgiurl   = <a href="http://localhost/cgi-bin/smokeping.fcgi" target="_blank">http://localhost/cgi-bin/smokeping.fcgi</a><br>
&gt; &gt;&gt;&gt; smokemail = /opt/smokeping/etc/smokemail<br>
&gt; &gt;&gt;&gt; tmail = /opt/smokeping/etc/tmail<br>
&gt; &gt;&gt;&gt; # specify this to get syslog logging<br>
&gt; &gt;&gt;&gt; syslogfacility = local0<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; On Sun, Dec 2, 2012 at 2:11 AM, Matt Almgren &lt;<a href="mailto:almgren@gmail.com">almgren@gmail.com</a>&gt; wrote:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; I noticed in the httpd error log I am seeing this:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission<br>
&gt; &gt;&gt;&gt;&gt; denied: exec of &#39;/var/www/cgi-bin/cropper/lib/prototype.js&#39; failed,<br>
&gt; &gt;&gt;&gt;&gt; referer:<br>
&gt; &gt;&gt;&gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>

&gt; &gt;&gt;&gt;&gt; [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of<br>
&gt; &gt;&gt;&gt;&gt; script headers: prototype.js, referer:<br>
&gt; &gt;&gt;&gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>

&gt; &gt;&gt;&gt;&gt; [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission<br>
&gt; &gt;&gt;&gt;&gt; denied: exec of &#39;/var/www/cgi-bin/cropper/lib/scriptaculous.js&#39; failed,<br>
&gt; &gt;&gt;&gt;&gt; referer:<br>
&gt; &gt;&gt;&gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>

&gt; &gt;&gt;&gt;&gt; [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission<br>
&gt; &gt;&gt;&gt;&gt; denied: exec of &#39;/var/www/cgi-bin/cropper/cropper.js&#39; failed, referer:<br>
&gt; &gt;&gt;&gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>

&gt; &gt;&gt;&gt;&gt; [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] (13)Permission<br>
&gt; &gt;&gt;&gt;&gt; denied: exec of &#39;/var/www/cgi-bin/cropper/smokeping-zoom.js&#39; failed,<br>
&gt; &gt;&gt;&gt;&gt; referer:<br>
&gt; &gt;&gt;&gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>

&gt; &gt;&gt;&gt;&gt; [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of<br>
&gt; &gt;&gt;&gt;&gt; script headers: scriptaculous.js, referer:<br>
&gt; &gt;&gt;&gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>

&gt; &gt;&gt;&gt;&gt; [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of<br>
&gt; &gt;&gt;&gt;&gt; script headers: cropper.js, referer:<br>
&gt; &gt;&gt;&gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>

&gt; &gt;&gt;&gt;&gt; [Sun Dec 02 02:05:59 2012] [error] [client 10.56.36.58] Premature end of<br>
&gt; &gt;&gt;&gt;&gt; script headers: smokeping-zoom.js, referer:<br>
&gt; &gt;&gt;&gt;&gt; <a href="http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN" target="_blank">http://10.59.1.33/cgi-bin/smokeping.fcgi?displaymode=n;start=2012-12-01%2022:48;end=now;target=Internal.3750-SW2-FUN</a><br>

&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Tobi has replied to some threads about this problem, but I&#39;m not sure<br>
&gt; &gt;&gt;&gt;&gt; what it means:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; &quot;check out you webserver configuration. for some reason it is trying<br>
&gt; &gt;&gt;&gt;&gt; to execute the javascript files ... there must be some config that<br>
&gt; &gt;&gt;&gt;&gt; is causing this ...&quot;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; I&#39;m not sure what needs to change.<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; The only part of the default httpd.conf file that references cgi-bin is<br>
&gt; &gt;&gt;&gt;&gt; this:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; ScriptAlias /cgi-bin/ &quot;/var/www/cgi-bin/&quot;<br>
&gt; &gt;&gt;&gt;&gt; # &quot;/var/www/cgi-bin&quot; should be changed to whatever your ScriptAliased<br>
&gt; &gt;&gt;&gt;&gt; &lt;Directory &quot;/var/www/cgi-bin&quot;&gt;<br>
&gt; &gt;&gt;&gt;&gt; #ErrorDocument 404 &quot;/cgi-bin/<a href="http://missing_handler.pl" target="_blank">missing_handler.pl</a>&quot;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; And this from Tobi:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; &quot;you must not put these files into the cgi-bin directory since your<br>
&gt; &gt;&gt;&gt;&gt; webserver will try to run them ... put them somewhere else!&quot;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Well, if I put them someplace else, how is the browser know where to find<br>
&gt; &gt;&gt;&gt;&gt; them?   What is the recommended location for them, other than<br>
&gt; &gt;&gt;&gt;&gt; /var/www/cgi-bin ?  Or can I put something in httpd.conf to tell it not to<br>
&gt; &gt;&gt;&gt;&gt; run them?<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Thanks, Matt<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; On Sun, Dec 2, 2012 at 1:45 AM, Matt Almgren &lt;<a href="mailto:almgren@gmail.com">almgren@gmail.com</a>&gt; wrote:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; Great guide!  I re-did two of my servers and also setup a third virgin<br>
&gt; &gt;&gt;&gt;&gt;&gt; server using that guide.<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; However, that doesn&#39;t solve my original problem.   The cropper/zoom<br>
&gt; &gt;&gt;&gt;&gt;&gt; portion still doesn&#39;t work.  I click on an image to drill down and when I<br>
&gt; &gt;&gt;&gt;&gt;&gt; go to select part of the graph, the image is grabbed (attempt to copy), but<br>
&gt; &gt;&gt;&gt;&gt;&gt; the cropper isn&#39;t doing it&#39;s function.<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; What else could be the problem?<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; BTW, I&#39;d love to know if you have an RPM for that guide - otherwise I<br>
&gt; &gt;&gt;&gt;&gt;&gt; might make one.<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; On Fri, Nov 30, 2012 at 11:37 PM, Matt Almgren &lt;<a href="mailto:almgren@gmail.com">almgren@gmail.com</a>&gt;wrote:<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;&gt; Not sure exactly what it&#39;s called, but I am unable to mouse click on a<br>
&gt; &gt;&gt;&gt;&gt;&gt;&gt; graph, drag a box around it, and zoom in.  I have smokeping 2.6.8.<br>
&gt; &gt;&gt;&gt;&gt;&gt;&gt; installed in several CentOS 6.2 boxes and they all have this problem.  I<br>
&gt; &gt;&gt;&gt;&gt;&gt;&gt; have one install on an old SuSE box and it works fine, but I can&#39;t figure<br>
&gt; &gt;&gt;&gt;&gt;&gt;&gt; out what the difference is.  Does something need to be enabled for this?<br>
&gt; &gt;&gt;&gt;&gt;&gt;&gt; Permission problem?<br>
&gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;&gt; Thanks, Matt<br>
&gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>
&gt; &gt; <a href="http://it.oetiker.ch" target="_blank">http://it.oetiker.ch</a> <a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a> <a href="tel:%2B%2B41%2062%20775%209902" value="+41627759902">++41 62 775 9902</a> / sb: -9900<br>

&gt;<br>
&gt;<br>
<br>
--<br>
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>
<a href="http://it.oetiker.ch" target="_blank">http://it.oetiker.ch</a> <a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a> <a href="tel:%2B%2B41%2062%20775%209902" value="+41627759902">++41 62 775 9902</a> / sb: -9900<br>

</div></div></blockquote></div><br></div>