[smokeping-users] SmokePing Displaying source code in browser.

Kim Ford kim.f at aware.co.th
Tue Feb 2 19:38:56 CET 2010


Hi,

I installed smokeping using ports on FreeBSD.

SmokePing is displaying source code in browser.  Below is a snippet:

#!/usr/local/bin/speedy -w
# -*-perl-*-

use strict;
use warnings;

use lib qw(/usr/local/smokeping/lib);

use CGI::Carp qw(fatalsToBrowser);

use Smokeping 2.004002;

Smokeping::cgi("/usr/local/etc/smokeping/config");

I've checked and speedy is locate in /usr/local/bin/speedy.

I've added the following in my httpd.conf

Under IfModule

    ScriptAlias /smokeping.cgi "/usr/local/smokeping/htdocs/smokeping.cgi"
    ScriptAlias /tr.cgi "/usr/local/smokeping/htdocs/tr.cgi"

Under IfModule dir_module

    DirectoryIndex index.html index.php smokeping.cgi

And the following at the bottom

Alias /smokeping/ /usr/local/smokeping/htdocs/
<Directory "/usr/local/smokeping/htdocs">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

I'm near sure I've got all of the dependencies as I've installed from ports (though I could be wrong), and I'm thinking this is just a *dumb* configuration error on my part.

Thanks in advance for any light you can shed.

Regards,

Kim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20100203/78f458ee/attachment.htm 


More information about the smokeping-users mailing list