File: install.txt

package info (click to toggle)
lightsquid 1.8-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 532 kB
  • sloc: perl: 2,320; sh: 13; makefile: 2
file content (80 lines) | stat: -rw-r--r-- 1,830 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Installation Instructions:

Required software:

   1. Perl
   2. Apache
   3. Squid
   4. Cron

   or equivalent

1. Extract lightsquid.tgz into any folder 

   cd /var/www/htdocs/
   mkdir lightsquid
   cd lightsquid
   tar -xzf lightsquid.tgz
   chmod +x *.cgi
   chmod +x *.pl
   
   chown -R apache:apache *
   (where apache = httpd user)

2. Configure your Apache server to allow override control
    if disable gloabal override is defined in httpd.conf;

    <Directory "/var/www/html/lightsquid">
       AddHandler cgi-script .cgi
       AllowOverride All
    </Directory>

    Restart apache

3. Edit lightsquid.cfg 

4. Edit group.cfg file if you want group user

   format: 
  # anyword      digit          anyword
    userid	groupnum	groupname

5. Edit realname.cfg file if you want group user

   format: 
  # anyword     anyword
    userid	Real Name

6. if you want graphics report check graph.txt
    
7. run check-setup.pl
   if all done try next step
   else check config file.
  
8. Try run lightparser.pl
     if everything is ok no messages will be produced

     parse old statistic
     ./lightparser.pl access.log.1.{gz|bz2}
     ./lightparser.pl access.log.2.{gz|bz2}
     ./lightparser.pl access.log.3.{gz|bz2}
     ...
     
9. Try to use lightsquid
 
      Using your favorite browser enter http://<host where we live>/lightsquid/

10. Setup crontab to run lightparser once per hour

      crontab -e
      This example will execute parser at 55 minutes after every hour:

      */55 * * * * /var/www/htdocs/lightsquid/lightparser.pl today
      
      if you have small log and fast machine, you may run lightparser with smaller delay
      !!!warning!!! not set interval less 10 min !!!!!
      
11. All done!

12. If you have problems, define $debug variable in lightsquid.cfg and rerun lightparser.