Squid SAR i Webalizer greška

Ako vam MySAR (program za analizu protoka i saobraćaja kroz Squid Proxy) ne uvlači redovno podatke u bazu, a kad probate ručno da ga pokrenete, javlja se ovako nešto :

# /var/www/html/mysar/bin/mysar-importer.php
PHP Warning: mktime(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/Berlin’ for ‘CEST/2.0/DST’ instead in /var/www/html/mysar/bin/mysar-importer.php on line 107

Samo u /etc/php.ini fajlu treba odhešovati i izmeniti sledeću liniju, tako da izgleda ovako :
date.timezone = “Europe/Belgrade”
Da bi se ovo primenilo, može se desiti da se mora resetovati ceo server…..

Spisak vremenskih zona : link.

Ako vam se pri pokušaju pristupa Webalizer analizatoru Squid protoka, javi sledeća greška :
You have no right to access this page
Pogledajte konfiguracioni fajl /etc/httpd/confd/webalizer.conf jer se tu često (automatski) zabrani prostup relevantnom folderu (za webalizer je to obično /var/www/usage folder) bilo kojoj IP adresi osim 127.0.0.1

Paziti kod Webalizer-a, on pravi GOMILE sitnih fajlova i može se desiti da to “pojede” sve inodove, i zaustavi ceo server.
Provera stanja inodova po particijama :
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg_proxy2012-lv_root
3276800 181375 3095425 6% /
tmpfs 1007617 5 1007612 1% /dev/shm
/dev/sda1 128016 53 127963 1% /boot
/dev/mapper/vg_proxy2012-lv_var
13901824 222925 13678899 2% /var

This entry was posted in Linux and tagged , , , . Bookmark the permalink.

Comments are closed.