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

Kim Ford kim.f at aware.co.th
Wed Feb 3 08:10:42 CET 2010


Hi,

I'm answering my own question here.  To fix this, I uncommented the addHandler line per the below:

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script .cgi

Hopefully, this might help others in the future with the same issue.

Regards,

Kim

From: Kim Ford
Sent: Wednesday, February 03, 2010 1:39 AM
To: smokeping-users at lists.oetiker.ch
Subject: SmokePing Displaying source code in browser.

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/0fe36536/attachment.htm 


More information about the smokeping-users mailing list