[smokeping-users] SmokePing Displaying source code in browser.
kim.f at aware.co.th
Wed Feb 3 08:10:42 CET 2010
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.
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.
I installed smokeping using ports on FreeBSD.
SmokePing is displaying source code in browser. Below is a snippet:
use lib qw(/usr/local/smokeping/lib);
use CGI::Carp qw(fatalsToBrowser);
use Smokeping 2.004002;
I've checked and speedy is locate in /usr/local/bin/speedy.
I've added the following in my httpd.conf
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/
Allow from all
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the smokeping-users