LightSquid setup
-
New to the forum, setting up LightSquid and reading some of the setup docs around the web I've encountered a small inconsistency and just wanted to run it by those with experience… In both the "settings" page and many of the tutorials I've read, they show that the squid logs need to be enabled and show the log store at /var/squid/log (singular). However, the default when a fresh setup is done is for the default store to be at /var/squid/logs (plural).
Is the LightSquid setup dependent on "log" vs. "logs"
Just keep getting errors when accessing the reports tab
LigthSquid diagnostic.
Error : report folder '/var/lightsquid/report' not contain any valid data! Please run lightparser.pl (and check 'report' folder content)
Please check config file !
Variable value
$tplpatph /usr/local/www/lightsquid/tpl
$templatename base
$langpatph /usr/local/share/lightsquid/lang
$langname eng
$reportpath /var/lightsquid/report
Access to '/var/lightsquid/report' folder yes
$graphreport 1Thanks for any help,
Rick -
In the lightsquid package code…
if (!empty($config['installedpackages']['squid']['config'][0]['log_dir'])) define('LS_SQUIDLOGPATH', $config['installedpackages']['squid']['config'][0]['log_dir']); else define('LS_SQUIDLOGPATH', '/var/squid/logs');
Looks like it should be defaulting to logs (plural) unless you have configured a custom location in squid.
-
In the lightsquid package code…
if (!empty($config['installedpackages']['squid']['config'][0]['log_dir'])) define('LS_SQUIDLOGPATH', $config['installedpackages']['squid']['config'][0]['log_dir']); else define('LS_SQUIDLOGPATH', '/var/squid/logs');
Looks like it should be defaulting to logs (plural) unless you have configured a custom location in squid.
Thanks Jim,
While I was waiting, I uninstalled LightSquid and killed the configuration file. Changed the (apparently new) Squid default location to "log" and re-installed LightSquid. I let it stew for 24 hours and its working fine this morning… now getting the web based reports.I say "apparently new" because I've only just started with pfSense and my install of squid defaulted the log store directory to "logs". My research looking for why I had no report functionality showed a lot of screen prints and discussions using "log". Even the LightSquid setup screen notes reference "log". So I don't know... was the default log at one time?
Your and Chris' book now resides in my bathroom and is really proving to be an interesting daily read (yes, I have a sick and now somewhat damaged mind) ;D
Rick
-
The default paths did change, but it's been so long since it happened I don't even remember when that took place.
Nothing wrong with reading the book there. :-)
There's another book coming for 2.1, should be done in the near future to coincide with the 2.1 release -
Nothing wrong with reading the book there. :-)
There's another book coming for 2.1, should be done in the near future to coincide with the 2.1 releaseJim, can the book be pre-ordered somewhere? Be nice to have it in hand when the update goes live
Rick
-
Not yet, should be in the near future. Only have a few more chapters left to edit, and 2.1 is about to hit RC1.