LightSquid: Graphs not working in PF2(beta) - error 500\. FIXED!
-
Hi Guys
I have the 500 problem with LG using PF2(beta)
my config is:
lightsquid-1.8
perl-5.10.1_1
perl-5.10.1_2
squid-2.7.9
squidGuard-1.4_2is there a way to fix this?
Kind regards
Aubrey Kloppers
South Africa
ps - I have looked at the other 500 forum messages, but it all points to earlier releases… -
Quick and dirty way, until the package is updated, is to just do a 'pkg_add -rvf p5-GD' from the command line. This will download and install the GD perl module. It will also download all the dependancies that GD requires.
-
Hi wagonza
I did what you said, but still don't get the graph report…I do not get the 500 error anymore, but land on a black screen. No errors in lighthttp or system or squid's logs.
<puzzled>Kind regards
Aubrey Kloppers
South Africa
ps - I also tried to do a re-install with the same results</puzzled> -
More on this:
running check-setup.pl
give me:
no: GD.PM found, please install or set $graphreport=0 to disableRunning pkg_info gives me:
arc-5.21o_1 Create & extract files from DOS .ARC files
arj-3.10.22_1 Open-source ARJ
bash-4.1.7 The GNU Project's Bourne Again SHell
clamav-0.95.2 Command line virus scanner written entirely in C
cyrus-sasl-2.1.23 RFC 2222 SASL (Simple Authentication and Security Layer)
db3-3.3.11_3,1 The Berkeley DB package, revision 3.3
db41-4.1.25_4 The Berkeley DB package, revision 4.1
expat-2.0.1_1 XML 1.0 parser written in C
fontconfig-2.8.0,1 An XML-based font configuration API for X Windows
freetype2-2.3.11 A free and portable TrueType font rendering engine
gd-2.0.35_7,1 A graphics library for fast creation of images
gettext-0.18_1 GNU gettext package
havp-0.91 HTTP Antivirus Proxy
jpeg-7 IJG's jpeg compression utilities
lha-1.14i_6 Archive files using LZSS and Huffman compression (.lzh file
libiconv-1.13.1_1 A character set conversion library
libwww-5.4.0_4 The W3C Reference Library
lightsquid-1.8 A light and fast web based squid proxy traffic analyser
mysql-client-5.1.50_1 Multithreaded SQL database (client)
openldap-client-2.4.23 Open source LDAP client implementation
p5-GD-2.44 A perl5 interface to Gd Graphics Library version2
p5-GD-2.44_2 A perl5 interface to Gd Graphics Library version2
pcre-8.10 Perl Compatible Regular Expressions library
perl-5.10.1_1 Practical Extraction and Report Language
perl-5.10.1_2 Practical Extraction and Report Language
perl-threaded-5.12.1_1 Practical Extraction and Report Language
pkg-config-0.25 A utility to retrieve information about installed libraries
png-1.2.40 Library for manipulating PNG images
snort-2.8.6.1 Lightweight network intrusion detection system
squid-2.7.9 HTTP Caching Proxy
squidGuard-1.4_2 A fast redirector for squid
squid_radius_auth-1.10 RADIUS authenticator for squid proxy 2.5 and later
unzoo-4.4_2 A zoo archive extractor -
Hi wagonza
I did what you said, but still don't get the graph report…I do not get the 500 error anymore, but land on a black screen. No errors in lighthttp or system or squid's logs.
From the command line cd /usr/local/www/lightsquid/
and execute perl graph.cgi - it should spit out html or throw an error. -
More on this:
running check-setup.pl
give me:
no: GD.PM found, please install or set $graphreport=0 to disableThe GD perl module should be here -> /usr/local/lib/perl5/site_perl/5.10.1/mach/GD.pm
-
Hi Guys
perl graph.cgi
spits out:
Can't locate GD.pm in @INC (@INC contains: /usr/local/lib/perl5/5.12.1/BSDPAN /usr/local/lib/perl5/site_perl/5.12.1/mach /usr/local/lib/perl5/site_perl/5.12.1 /usr/local/lib/perl5/5.12.1/mach /usr/local/lib/perl5/5.12.1 .) at graph.cgi line 23.
BEGIN failed–compilation aborted at graph.cgi line 23.GD.pm exists in:
5.10.1What now?
Kind regards
Aubrey Kloppers
South Africa
ps - I tried to link 5.12.1 to 5.10.1 (mach) but get an error:
Can't load '/usr/local/lib/perl5/site_perl/5.12.1/mach/auto/GD/GD.so' for module GD: Shared object "libjpeg.so.11" not found, required by "libgd.so.4" at /usr/local/lib/perl5/5.12.1/mach/DynaLoader.pm line 200.
at graph.cgi line 23
Compilation failed in require at graph.cgi line 23.
BEGIN failed--compilation aborted at graph.cgi line 23. -
Hi Guys
Thank you for all the help.
I did get to repair the problem by un-installing lightsquid and then snort, then re-installing snort and then lightsquid in that order.
What I have found was that snort uses a later release of perl and if installed AFTER lightsquid, then lightsquid points to the later libraries.
I must say, it is looking very smart!!!
Kind regards
Aubrey Kloppers
South Africa